# # Template for generating aSub records which accumulate # a history of the specified PV over the specified time period. # # Macros: # PV - Name of PV to track # PERIOD - Time period over which to retain history, in seconds # If zero, each sample gets shifted into the buffer # PUBLISH - Publish period for updating output array, in seconds # If zero, publish on each update # N_SAMPLES - Number of samples to keep, Output waveform's NELEM # Defaults to 300 # EGU - EGU for sample data, defaults to "" # X_EGU - Units to display on the time axis # S_PER_X_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:AACT_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:AACT_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:AACT_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:AACT_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_1HR PP" ) } record( waveform, "ACCL:GUNB:455:AACT_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_6HR PP" ) } record( waveform, "ACCL:GUNB:455:AACT_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_24HR PP" ) } record( waveform, "ACCL:GUNB:455:AACT_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:AACT_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT 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, "ACCL:GUNB:455:AACT_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:AACT_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:AACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:AACT_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, "ACCL:GUNB:455:AACT_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:AACT_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:AACT_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:AACT_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:AACT_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:AACT_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:AACT_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:AACT_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:AACT_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:AACT_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) 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( "ACCL:GUNB:455:AACT_LAST_N_AVG", "ACCL:GUNB:455:AACT_AVG" ) alias( "ACCL:GUNB:455:AACT_LAST_N_MAX", "ACCL:GUNB:455:AACT_MAX" ) alias( "ACCL:GUNB:455:AACT_LAST_N_MIN", "ACCL:GUNB:455:AACT_MIN" ) alias( "ACCL:GUNB:455:AACT_LAST_N_RMS", "ACCL:GUNB:455:AACT_RMS" ) alias( "ACCL:GUNB:455:AACT_LAST_N_STD", "ACCL:GUNB:455:AACT_STD" ) alias( "ACCL:GUNB:455:AACT_LAST_N_SLOPE", "ACCL:GUNB:455:AACT_SLOPE" ) alias( "ACCL:GUNB:455:AACT_LAST_N_OFFSET", "ACCL:GUNB:455:AACT_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV1:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN 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, "ACCL:GUNB:455:CAV1:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:AMEAN_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, "ACCL:GUNB:455:CAV1:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) 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( "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:CAV1:AMEAN_AVG" ) alias( "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:CAV1:AMEAN_MAX" ) alias( "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:CAV1:AMEAN_MIN" ) alias( "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:CAV1:AMEAN_RMS" ) alias( "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_STD", "ACCL:GUNB:455:CAV1:AMEAN_STD" ) alias( "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV1:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:CAV1:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV1:AMEAN_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW 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, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_BW_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, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_BW_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_AVG", "ACCL:GUNB:455:CAV1:DECAY_BW_AVG" ) alias( "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_MAX", "ACCL:GUNB:455:CAV1:DECAY_BW_MAX" ) alias( "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_MIN", "ACCL:GUNB:455:CAV1:DECAY_BW_MIN" ) alias( "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_RMS", "ACCL:GUNB:455:CAV1:DECAY_BW_RMS" ) alias( "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_STD", "ACCL:GUNB:455:CAV1:DECAY_BW_STD" ) alias( "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_SLOPE", "ACCL:GUNB:455:CAV1:DECAY_BW_SLOPE" ) alias( "ACCL:GUNB:455:CAV1:DECAY_BW_LAST_N_OFFSET", "ACCL:GUNB:455:CAV1:DECAY_BW_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_AVG", "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_AVG" ) alias( "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_MAX", "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_MAX" ) alias( "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_MIN", "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_MIN" ) alias( "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_RMS", "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_RMS" ) alias( "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_STD", "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_STD" ) alias( "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_SLOPE", "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_SLOPE" ) alias( "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_LAST_N_OFFSET", "ACCL:GUNB:455:CAV1:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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( "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_AVG", "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_AVG" ) alias( "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_MAX", "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_MAX" ) alias( "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_MIN", "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_MIN" ) alias( "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_RMS", "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_RMS" ) alias( "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_STD", "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_STD" ) alias( "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_SLOPE", "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_SLOPE" ) alias( "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_LAST_N_OFFSET", "ACCL:GUNB:455:CAV1:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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( "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_AVG", "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_AVG" ) alias( "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_MAX", "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_MAX" ) alias( "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_MIN", "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_MIN" ) alias( "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_RMS", "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_RMS" ) alias( "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_STD", "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_STD" ) alias( "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_SLOPE", "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_SLOPE" ) alias( "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_LAST_N_OFFSET", "ACCL:GUNB:455:CAV1:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN 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, "ACCL:GUNB:455:CAV1:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV1:PMEAN_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, "ACCL:GUNB:455:CAV1:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV1:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:CAV1:PMEAN_AVG" ) alias( "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:CAV1:PMEAN_MAX" ) alias( "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:CAV1:PMEAN_MIN" ) alias( "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:CAV1:PMEAN_RMS" ) alias( "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_STD", "ACCL:GUNB:455:CAV1:PMEAN_STD" ) alias( "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV1:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:CAV1:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV1:PMEAN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV2:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN 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, "ACCL:GUNB:455:CAV2:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:AMEAN_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, "ACCL:GUNB:455:CAV2:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) 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( "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:CAV2:AMEAN_AVG" ) alias( "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:CAV2:AMEAN_MAX" ) alias( "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:CAV2:AMEAN_MIN" ) alias( "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:CAV2:AMEAN_RMS" ) alias( "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_STD", "ACCL:GUNB:455:CAV2:AMEAN_STD" ) alias( "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV2:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:CAV2:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV2:AMEAN_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW 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, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_BW_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, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_BW_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_AVG", "ACCL:GUNB:455:CAV2:DECAY_BW_AVG" ) alias( "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_MAX", "ACCL:GUNB:455:CAV2:DECAY_BW_MAX" ) alias( "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_MIN", "ACCL:GUNB:455:CAV2:DECAY_BW_MIN" ) alias( "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_RMS", "ACCL:GUNB:455:CAV2:DECAY_BW_RMS" ) alias( "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_STD", "ACCL:GUNB:455:CAV2:DECAY_BW_STD" ) alias( "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_SLOPE", "ACCL:GUNB:455:CAV2:DECAY_BW_SLOPE" ) alias( "ACCL:GUNB:455:CAV2:DECAY_BW_LAST_N_OFFSET", "ACCL:GUNB:455:CAV2:DECAY_BW_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_AVG", "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_AVG" ) alias( "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_MAX", "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_MAX" ) alias( "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_MIN", "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_MIN" ) alias( "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_RMS", "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_RMS" ) alias( "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_STD", "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_STD" ) alias( "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_SLOPE", "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_SLOPE" ) alias( "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_LAST_N_OFFSET", "ACCL:GUNB:455:CAV2:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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( "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_AVG", "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_AVG" ) alias( "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_MAX", "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_MAX" ) alias( "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_MIN", "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_MIN" ) alias( "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_RMS", "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_RMS" ) alias( "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_STD", "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_STD" ) alias( "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_SLOPE", "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_SLOPE" ) alias( "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_LAST_N_OFFSET", "ACCL:GUNB:455:CAV2:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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( "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_AVG", "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_AVG" ) alias( "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_MAX", "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_MAX" ) alias( "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_MIN", "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_MIN" ) alias( "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_RMS", "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_RMS" ) alias( "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_STD", "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_STD" ) alias( "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_SLOPE", "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_SLOPE" ) alias( "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_LAST_N_OFFSET", "ACCL:GUNB:455:CAV2:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN 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, "ACCL:GUNB:455:CAV2:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV2:PMEAN_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, "ACCL:GUNB:455:CAV2:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV2:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:CAV2:PMEAN_AVG" ) alias( "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:CAV2:PMEAN_MAX" ) alias( "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:CAV2:PMEAN_MIN" ) alias( "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:CAV2:PMEAN_RMS" ) alias( "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_STD", "ACCL:GUNB:455:CAV2:PMEAN_STD" ) alias( "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV2:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:CAV2:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV2:PMEAN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV3:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN 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, "ACCL:GUNB:455:CAV3:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:AMEAN_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, "ACCL:GUNB:455:CAV3:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) 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( "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:CAV3:AMEAN_AVG" ) alias( "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:CAV3:AMEAN_MAX" ) alias( "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:CAV3:AMEAN_MIN" ) alias( "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:CAV3:AMEAN_RMS" ) alias( "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_STD", "ACCL:GUNB:455:CAV3:AMEAN_STD" ) alias( "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV3:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:CAV3:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV3:AMEAN_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW 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, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_BW_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, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_BW_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_AVG", "ACCL:GUNB:455:CAV3:DECAY_BW_AVG" ) alias( "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_MAX", "ACCL:GUNB:455:CAV3:DECAY_BW_MAX" ) alias( "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_MIN", "ACCL:GUNB:455:CAV3:DECAY_BW_MIN" ) alias( "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_RMS", "ACCL:GUNB:455:CAV3:DECAY_BW_RMS" ) alias( "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_STD", "ACCL:GUNB:455:CAV3:DECAY_BW_STD" ) alias( "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_SLOPE", "ACCL:GUNB:455:CAV3:DECAY_BW_SLOPE" ) alias( "ACCL:GUNB:455:CAV3:DECAY_BW_LAST_N_OFFSET", "ACCL:GUNB:455:CAV3:DECAY_BW_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_AVG", "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_AVG" ) alias( "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_MAX", "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_MAX" ) alias( "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_MIN", "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_MIN" ) alias( "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_RMS", "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_RMS" ) alias( "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_STD", "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_STD" ) alias( "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_SLOPE", "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_SLOPE" ) alias( "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_LAST_N_OFFSET", "ACCL:GUNB:455:CAV3:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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( "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_AVG", "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_AVG" ) alias( "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_MAX", "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_MAX" ) alias( "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_MIN", "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_MIN" ) alias( "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_RMS", "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_RMS" ) alias( "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_STD", "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_STD" ) alias( "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_SLOPE", "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_SLOPE" ) alias( "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_LAST_N_OFFSET", "ACCL:GUNB:455:CAV3:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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( "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_AVG", "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_AVG" ) alias( "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_MAX", "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_MAX" ) alias( "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_MIN", "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_MIN" ) alias( "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_RMS", "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_RMS" ) alias( "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_STD", "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_STD" ) alias( "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_SLOPE", "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_SLOPE" ) alias( "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_LAST_N_OFFSET", "ACCL:GUNB:455:CAV3:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN 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, "ACCL:GUNB:455:CAV3:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV3:PMEAN_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, "ACCL:GUNB:455:CAV3:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV3:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:CAV3:PMEAN_AVG" ) alias( "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:CAV3:PMEAN_MAX" ) alias( "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:CAV3:PMEAN_MIN" ) alias( "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:CAV3:PMEAN_RMS" ) alias( "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_STD", "ACCL:GUNB:455:CAV3:PMEAN_STD" ) alias( "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV3:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:CAV3:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV3:PMEAN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV4:ADC_MAX-MIN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN 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, "ACCL:GUNB:455:CAV4:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "MV" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:AMEAN_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, "ACCL:GUNB:455:CAV4:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "MV" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "MV" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "MV/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "MV" ) 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( "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:CAV4:AMEAN_AVG" ) alias( "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:CAV4:AMEAN_MAX" ) alias( "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:CAV4:AMEAN_MIN" ) alias( "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:CAV4:AMEAN_RMS" ) alias( "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_STD", "ACCL:GUNB:455:CAV4:AMEAN_STD" ) alias( "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV4:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:CAV4:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV4:AMEAN_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW 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, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_BW_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, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_BW_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_AVG", "ACCL:GUNB:455:CAV4:DECAY_BW_AVG" ) alias( "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_MAX", "ACCL:GUNB:455:CAV4:DECAY_BW_MAX" ) alias( "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_MIN", "ACCL:GUNB:455:CAV4:DECAY_BW_MIN" ) alias( "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_RMS", "ACCL:GUNB:455:CAV4:DECAY_BW_RMS" ) alias( "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_STD", "ACCL:GUNB:455:CAV4:DECAY_BW_STD" ) alias( "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_SLOPE", "ACCL:GUNB:455:CAV4:DECAY_BW_SLOPE" ) alias( "ACCL:GUNB:455:CAV4:DECAY_BW_LAST_N_OFFSET", "ACCL:GUNB:455:CAV4:DECAY_BW_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_AVG", "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_AVG" ) alias( "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_MAX", "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_MAX" ) alias( "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_MIN", "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_MIN" ) alias( "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_RMS", "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_RMS" ) alias( "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_STD", "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_STD" ) alias( "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_SLOPE", "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_SLOPE" ) alias( "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_LAST_N_OFFSET", "ACCL:GUNB:455:CAV4:DECAY_CONSTANT_B_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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( "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_AVG", "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_AVG" ) alias( "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_MAX", "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_MAX" ) alias( "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_MIN", "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_MIN" ) alias( "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_RMS", "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_RMS" ) alias( "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_STD", "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_STD" ) alias( "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_SLOPE", "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_SLOPE" ) alias( "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_LAST_N_OFFSET", "ACCL:GUNB:455:CAV4:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH 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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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, "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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( "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_AVG", "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_AVG" ) alias( "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_MAX", "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_MAX" ) alias( "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_MIN", "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_MIN" ) alias( "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_RMS", "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_RMS" ) alias( "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_STD", "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_STD" ) alias( "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_SLOPE", "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_SLOPE" ) alias( "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_LAST_N_OFFSET", "ACCL:GUNB:455:CAV4:DECAY_STRENGTH_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN 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, "ACCL:GUNB:455:CAV4:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CAV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CAV4:PMEAN_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, "ACCL:GUNB:455:CAV4:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CAV4:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:CAV4:PMEAN_AVG" ) alias( "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:CAV4:PMEAN_MAX" ) alias( "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:CAV4:PMEAN_MIN" ) alias( "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:CAV4:PMEAN_RMS" ) alias( "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_STD", "ACCL:GUNB:455:CAV4:PMEAN_STD" ) alias( "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:CAV4:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:CAV4:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:CAV4:PMEAN_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_1HR PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_6HR PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_24HR PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE 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, "ACCL:GUNB:455:CW_DETUNE_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:CW_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:CW_DETUNE_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, "ACCL:GUNB:455:CW_DETUNE_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:CW_DETUNE_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:CW_DETUNE_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:CW_DETUNE_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:CW_DETUNE_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:CW_DETUNE_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:CW_DETUNE_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:CW_DETUNE_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:CW_DETUNE_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:CW_DETUNE_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:CW_DETUNE_LAST_N_AVG", "ACCL:GUNB:455:CW_DETUNE_AVG" ) alias( "ACCL:GUNB:455:CW_DETUNE_LAST_N_MAX", "ACCL:GUNB:455:CW_DETUNE_MAX" ) alias( "ACCL:GUNB:455:CW_DETUNE_LAST_N_MIN", "ACCL:GUNB:455:CW_DETUNE_MIN" ) alias( "ACCL:GUNB:455:CW_DETUNE_LAST_N_RMS", "ACCL:GUNB:455:CW_DETUNE_RMS" ) alias( "ACCL:GUNB:455:CW_DETUNE_LAST_N_STD", "ACCL:GUNB:455:CW_DETUNE_STD" ) alias( "ACCL:GUNB:455:CW_DETUNE_LAST_N_SLOPE", "ACCL:GUNB:455:CW_DETUNE_SLOPE" ) alias( "ACCL:GUNB:455:CW_DETUNE_LAST_N_OFFSET", "ACCL:GUNB:455:CW_DETUNE_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW 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, "ACCL:GUNB:455:DECAY_BW_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_BW.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_BW_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_BW_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_BW_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_BW_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_BW_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_BW_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_BW_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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, "ACCL:GUNB:455:DECAY_BW_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( "ACCL:GUNB:455:DECAY_BW_LAST_N_AVG", "ACCL:GUNB:455:DECAY_BW_AVG" ) alias( "ACCL:GUNB:455:DECAY_BW_LAST_N_MAX", "ACCL:GUNB:455:DECAY_BW_MAX" ) alias( "ACCL:GUNB:455:DECAY_BW_LAST_N_MIN", "ACCL:GUNB:455:DECAY_BW_MIN" ) alias( "ACCL:GUNB:455:DECAY_BW_LAST_N_RMS", "ACCL:GUNB:455:DECAY_BW_RMS" ) alias( "ACCL:GUNB:455:DECAY_BW_LAST_N_STD", "ACCL:GUNB:455:DECAY_BW_STD" ) alias( "ACCL:GUNB:455:DECAY_BW_LAST_N_SLOPE", "ACCL:GUNB:455:DECAY_BW_SLOPE" ) alias( "ACCL:GUNB:455:DECAY_BW_LAST_N_OFFSET", "ACCL:GUNB:455:DECAY_BW_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B 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, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_CONSTANT_B.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_CONSTANT_B_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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, "ACCL:GUNB:455:DECAY_CONSTANT_B_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( "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_AVG", "ACCL:GUNB:455:DECAY_CONSTANT_B_AVG" ) alias( "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_MAX", "ACCL:GUNB:455:DECAY_CONSTANT_B_MAX" ) alias( "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_MIN", "ACCL:GUNB:455:DECAY_CONSTANT_B_MIN" ) alias( "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_RMS", "ACCL:GUNB:455:DECAY_CONSTANT_B_RMS" ) alias( "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_STD", "ACCL:GUNB:455:DECAY_CONSTANT_B_STD" ) alias( "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_SLOPE", "ACCL:GUNB:455:DECAY_CONSTANT_B_SLOPE" ) alias( "ACCL:GUNB:455:DECAY_CONSTANT_B_LAST_N_OFFSET", "ACCL:GUNB:455:DECAY_CONSTANT_B_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV 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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_FIT_STDDEV.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_FIT_STDDEV_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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, "ACCL:GUNB:455:DECAY_FIT_STDDEV_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( "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_AVG", "ACCL:GUNB:455:DECAY_FIT_STDDEV_AVG" ) alias( "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_MAX", "ACCL:GUNB:455:DECAY_FIT_STDDEV_MAX" ) alias( "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_MIN", "ACCL:GUNB:455:DECAY_FIT_STDDEV_MIN" ) alias( "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_RMS", "ACCL:GUNB:455:DECAY_FIT_STDDEV_RMS" ) alias( "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_STD", "ACCL:GUNB:455:DECAY_FIT_STDDEV_STD" ) alias( "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_SLOPE", "ACCL:GUNB:455:DECAY_FIT_STDDEV_SLOPE" ) alias( "ACCL:GUNB:455:DECAY_FIT_STDDEV_LAST_N_OFFSET", "ACCL:GUNB:455:DECAY_FIT_STDDEV_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH 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, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DECAY_STRENGTH.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DECAY_STRENGTH_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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, "ACCL:GUNB:455:DECAY_STRENGTH_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( "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_AVG", "ACCL:GUNB:455:DECAY_STRENGTH_AVG" ) alias( "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_MAX", "ACCL:GUNB:455:DECAY_STRENGTH_MAX" ) alias( "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_MIN", "ACCL:GUNB:455:DECAY_STRENGTH_MIN" ) alias( "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_RMS", "ACCL:GUNB:455:DECAY_STRENGTH_RMS" ) alias( "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_STD", "ACCL:GUNB:455:DECAY_STRENGTH_STD" ) alias( "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_SLOPE", "ACCL:GUNB:455:DECAY_STRENGTH_SLOPE" ) alias( "ACCL:GUNB:455:DECAY_STRENGTH_LAST_N_OFFSET", "ACCL:GUNB:455:DECAY_STRENGTH_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV1:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN 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, "ACCL:GUNB:455:DRV1:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:AMEAN_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, "ACCL:GUNB:455:DRV1:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:DRV1:AMEAN_AVG" ) alias( "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:DRV1:AMEAN_MAX" ) alias( "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:DRV1:AMEAN_MIN" ) alias( "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:DRV1:AMEAN_RMS" ) alias( "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_STD", "ACCL:GUNB:455:DRV1:AMEAN_STD" ) alias( "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV1:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:DRV1:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV1:AMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN 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, "ACCL:GUNB:455:DRV1:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV1:PMEAN_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, "ACCL:GUNB:455:DRV1:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV1:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:DRV1:PMEAN_AVG" ) alias( "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:DRV1:PMEAN_MAX" ) alias( "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:DRV1:PMEAN_MIN" ) alias( "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:DRV1:PMEAN_RMS" ) alias( "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_STD", "ACCL:GUNB:455:DRV1:PMEAN_STD" ) alias( "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV1:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:DRV1:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV1:PMEAN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV2:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN 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, "ACCL:GUNB:455:DRV2:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:AMEAN_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, "ACCL:GUNB:455:DRV2:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:DRV2:AMEAN_AVG" ) alias( "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:DRV2:AMEAN_MAX" ) alias( "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:DRV2:AMEAN_MIN" ) alias( "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:DRV2:AMEAN_RMS" ) alias( "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_STD", "ACCL:GUNB:455:DRV2:AMEAN_STD" ) alias( "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV2:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:DRV2:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV2:AMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN 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, "ACCL:GUNB:455:DRV2:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV2:PMEAN_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, "ACCL:GUNB:455:DRV2:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV2:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:DRV2:PMEAN_AVG" ) alias( "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:DRV2:PMEAN_MAX" ) alias( "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:DRV2:PMEAN_MIN" ) alias( "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:DRV2:PMEAN_RMS" ) alias( "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_STD", "ACCL:GUNB:455:DRV2:PMEAN_STD" ) alias( "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV2:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:DRV2:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV2:PMEAN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV3:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN 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, "ACCL:GUNB:455:DRV3:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:AMEAN_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, "ACCL:GUNB:455:DRV3:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:DRV3:AMEAN_AVG" ) alias( "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:DRV3:AMEAN_MAX" ) alias( "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:DRV3:AMEAN_MIN" ) alias( "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:DRV3:AMEAN_RMS" ) alias( "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_STD", "ACCL:GUNB:455:DRV3:AMEAN_STD" ) alias( "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV3:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:DRV3:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV3:AMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN 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, "ACCL:GUNB:455:DRV3:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV3:PMEAN_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, "ACCL:GUNB:455:DRV3:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV3:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:DRV3:PMEAN_AVG" ) alias( "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:DRV3:PMEAN_MAX" ) alias( "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:DRV3:PMEAN_MIN" ) alias( "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:DRV3:PMEAN_RMS" ) alias( "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_STD", "ACCL:GUNB:455:DRV3:PMEAN_STD" ) alias( "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV3:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:DRV3:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV3:PMEAN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV4:ADC_MAX-MIN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN 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, "ACCL:GUNB:455:DRV4:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:AMEAN_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, "ACCL:GUNB:455:DRV4:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:DRV4:AMEAN_AVG" ) alias( "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:DRV4:AMEAN_MAX" ) alias( "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:DRV4:AMEAN_MIN" ) alias( "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:DRV4:AMEAN_RMS" ) alias( "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_STD", "ACCL:GUNB:455:DRV4:AMEAN_STD" ) alias( "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV4:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:DRV4:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV4:AMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN 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, "ACCL:GUNB:455:DRV4:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:DRV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:DRV4:PMEAN_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, "ACCL:GUNB:455:DRV4:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:DRV4:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:DRV4:PMEAN_AVG" ) alias( "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:DRV4:PMEAN_MAX" ) alias( "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:DRV4:PMEAN_MIN" ) alias( "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:DRV4:PMEAN_RMS" ) alias( "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_STD", "ACCL:GUNB:455:DRV4:PMEAN_STD" ) alias( "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:DRV4:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:DRV4:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:DRV4:PMEAN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD1:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN 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, "ACCL:GUNB:455:FWD1:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:AMEAN_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, "ACCL:GUNB:455:FWD1:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD1:AMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD1:AMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD1:AMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD1:AMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD1:AMEAN_STD" ) alias( "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD1:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD1:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD1:AMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN 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, "ACCL:GUNB:455:FWD1:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD1:PMEAN_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, "ACCL:GUNB:455:FWD1:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD1:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD1:PMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD1:PMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD1:PMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD1:PMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD1:PMEAN_STD" ) alias( "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD1:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD1:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD1:PMEAN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD2:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN 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, "ACCL:GUNB:455:FWD2:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:AMEAN_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, "ACCL:GUNB:455:FWD2:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD2:AMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD2:AMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD2:AMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD2:AMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD2:AMEAN_STD" ) alias( "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD2:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD2:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD2:AMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN 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, "ACCL:GUNB:455:FWD2:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD2:PMEAN_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, "ACCL:GUNB:455:FWD2:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD2:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD2:PMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD2:PMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD2:PMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD2:PMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD2:PMEAN_STD" ) alias( "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD2:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD2:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD2:PMEAN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD3:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN 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, "ACCL:GUNB:455:FWD3:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:AMEAN_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, "ACCL:GUNB:455:FWD3:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD3:AMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD3:AMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD3:AMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD3:AMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD3:AMEAN_STD" ) alias( "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD3:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD3:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD3:AMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN 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, "ACCL:GUNB:455:FWD3:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD3:PMEAN_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, "ACCL:GUNB:455:FWD3:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD3:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD3:PMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD3:PMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD3:PMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD3:PMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD3:PMEAN_STD" ) alias( "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD3:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD3:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD3:PMEAN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN 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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD4:ADC_MAX-MIN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN 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, "ACCL:GUNB:455:FWD4:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:AMEAN_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, "ACCL:GUNB:455:FWD4:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD4:AMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD4:AMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD4:AMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD4:AMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD4:AMEAN_STD" ) alias( "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD4:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD4:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD4:AMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN 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, "ACCL:GUNB:455:FWD4:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD4:PMEAN_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, "ACCL:GUNB:455:FWD4:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD4:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD4:PMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD4:PMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD4:PMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD4:PMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD4:PMEAN_STD" ) alias( "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD4:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD4:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD4:PMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN 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, "ACCL:GUNB:455:FWD:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:AMEAN_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, "ACCL:GUNB:455:FWD:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:FWD:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD:AMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD:AMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD:AMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD:AMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD:AMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD:AMEAN_STD" ) alias( "ACCL:GUNB:455:FWD:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD:AMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN 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, "ACCL:GUNB:455:FWD:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:FWD:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:FWD:PMEAN_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, "ACCL:GUNB:455:FWD:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:FWD:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:FWD:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:FWD:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:FWD:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:FWD:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:FWD:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:FWD:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:FWD:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:FWD:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:FWD:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:FWD:PMEAN_AVG" ) alias( "ACCL:GUNB:455:FWD:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:FWD:PMEAN_MAX" ) alias( "ACCL:GUNB:455:FWD:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:FWD:PMEAN_MIN" ) alias( "ACCL:GUNB:455:FWD:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:FWD:PMEAN_RMS" ) alias( "ACCL:GUNB:455:FWD:PMEAN_LAST_N_STD", "ACCL:GUNB:455:FWD:PMEAN_STD" ) alias( "ACCL:GUNB:455:FWD:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:FWD:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:FWD:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:FWD:PMEAN_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PACT_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PACT_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PACT_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PACT_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PACT_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PACT_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PACT_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PACT_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT 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, "ACCL:GUNB:455:PACT_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PACT_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PACT.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PACT_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, "ACCL:GUNB:455:PACT_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PACT_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PACT_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PACT_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PACT_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PACT_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PACT_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PACT_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PACT_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PACT_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:PACT_LAST_N_AVG", "ACCL:GUNB:455:PACT_AVG" ) alias( "ACCL:GUNB:455:PACT_LAST_N_MAX", "ACCL:GUNB:455:PACT_MAX" ) alias( "ACCL:GUNB:455:PACT_LAST_N_MIN", "ACCL:GUNB:455:PACT_MIN" ) alias( "ACCL:GUNB:455:PACT_LAST_N_RMS", "ACCL:GUNB:455:PACT_RMS" ) alias( "ACCL:GUNB:455:PACT_LAST_N_STD", "ACCL:GUNB:455:PACT_STD" ) alias( "ACCL:GUNB:455:PACT_LAST_N_SLOPE", "ACCL:GUNB:455:PACT_SLOPE" ) alias( "ACCL:GUNB:455:PACT_LAST_N_OFFSET", "ACCL:GUNB:455:PACT_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN 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, "ACCL:GUNB:455:PH2_4_MEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PH2_4_MEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PH2_4_MEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PH2_4_MEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PH2_4_MEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PH2_4_MEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PH2_4_MEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PH2_4_MEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PH2_4_MEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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, "ACCL:GUNB:455:PH2_4_MEAN_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( "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_AVG", "ACCL:GUNB:455:PH2_4_MEAN_AVG" ) alias( "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_MAX", "ACCL:GUNB:455:PH2_4_MEAN_MAX" ) alias( "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_MIN", "ACCL:GUNB:455:PH2_4_MEAN_MIN" ) alias( "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_RMS", "ACCL:GUNB:455:PH2_4_MEAN_RMS" ) alias( "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_STD", "ACCL:GUNB:455:PH2_4_MEAN_STD" ) alias( "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PH2_4_MEAN_SLOPE" ) alias( "ACCL:GUNB:455:PH2_4_MEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PH2_4_MEAN_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE 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, "ACCL:GUNB:455:PM_DETUNE_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "Hz" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PM_DETUNE.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PM_DETUNE_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, "ACCL:GUNB:455:PM_DETUNE_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PM_DETUNE_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PM_DETUNE_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PM_DETUNE_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PM_DETUNE_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PM_DETUNE_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PM_DETUNE_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PM_DETUNE_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PM_DETUNE_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "Hz" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "Hz" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "Hz/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PM_DETUNE_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "Hz" ) 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( "ACCL:GUNB:455:PM_DETUNE_LAST_N_AVG", "ACCL:GUNB:455:PM_DETUNE_AVG" ) alias( "ACCL:GUNB:455:PM_DETUNE_LAST_N_MAX", "ACCL:GUNB:455:PM_DETUNE_MAX" ) alias( "ACCL:GUNB:455:PM_DETUNE_LAST_N_MIN", "ACCL:GUNB:455:PM_DETUNE_MIN" ) alias( "ACCL:GUNB:455:PM_DETUNE_LAST_N_RMS", "ACCL:GUNB:455:PM_DETUNE_RMS" ) alias( "ACCL:GUNB:455:PM_DETUNE_LAST_N_STD", "ACCL:GUNB:455:PM_DETUNE_STD" ) alias( "ACCL:GUNB:455:PM_DETUNE_LAST_N_SLOPE", "ACCL:GUNB:455:PM_DETUNE_SLOPE" ) alias( "ACCL:GUNB:455:PM_DETUNE_LAST_N_OFFSET", "ACCL:GUNB:455:PM_DETUNE_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS1A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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( "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS1A:AMEAN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS1A:AMEAN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS1A:AMEAN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS1A:AMEAN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS1A:AMEAN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS1A:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS1A:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS1A:AMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1A:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS1A:PMEAN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS1A:PMEAN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS1A:PMEAN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS1A:PMEAN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS1A:PMEAN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS1A:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS1A:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS1A:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS1B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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( "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS1B:AMEAN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS1B:AMEAN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS1B:AMEAN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS1B:AMEAN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS1B:AMEAN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS1B:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS1B:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS1B:AMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS1B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS1B:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS1B:PMEAN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS1B:PMEAN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS1B:PMEAN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS1B:PMEAN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS1B:PMEAN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS1B:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS1B:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS1B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS2A:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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( "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS2A:AMEAN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS2A:AMEAN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS2A:AMEAN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS2A:AMEAN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS2A:AMEAN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS2A:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS2A:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS2A:AMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2A:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2A:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS2A:PMEAN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS2A:PMEAN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS2A:PMEAN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS2A:PMEAN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS2A:PMEAN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS2A:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS2A:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS2A:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS2B:ADC_MAX-MIN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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( "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS2B:AMEAN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS2B:AMEAN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS2B:AMEAN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS2B:AMEAN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS2B:AMEAN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS2B:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS2B:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS2B:AMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN 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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRC:RFS2B:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRC:RFS2B:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:PRC:RFS2B:PMEAN_AVG" ) alias( "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:PRC:RFS2B:PMEAN_MAX" ) alias( "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:PRC:RFS2B:PMEAN_MIN" ) alias( "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:PRC:RFS2B:PMEAN_RMS" ) alias( "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_STD", "ACCL:GUNB:455:PRC:RFS2B:PMEAN_STD" ) alias( "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:PRC:RFS2B:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:PRC:RFS2B:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:PRC:RFS2B:PMEAN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:PRLFWD:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN 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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:PRLREV:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:REV1:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:REV1:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:REV1:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:REV1:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:REV1:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:REV1:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:REV1:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:REV1:ADC_MAX-MIN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN 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, "ACCL:GUNB:455:REV1:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:AMEAN_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, "ACCL:GUNB:455:REV1:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:REV1:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV1:AMEAN_AVG" ) alias( "ACCL:GUNB:455:REV1:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV1:AMEAN_MAX" ) alias( "ACCL:GUNB:455:REV1:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV1:AMEAN_MIN" ) alias( "ACCL:GUNB:455:REV1:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV1:AMEAN_RMS" ) alias( "ACCL:GUNB:455:REV1:AMEAN_LAST_N_STD", "ACCL:GUNB:455:REV1:AMEAN_STD" ) alias( "ACCL:GUNB:455:REV1:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV1:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV1:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV1:AMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN 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, "ACCL:GUNB:455:REV1:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV1:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV1:PMEAN_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, "ACCL:GUNB:455:REV1:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV1:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV1:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV1:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV1:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV1:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV1:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV1:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV1:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV1:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:REV1:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV1:PMEAN_AVG" ) alias( "ACCL:GUNB:455:REV1:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV1:PMEAN_MAX" ) alias( "ACCL:GUNB:455:REV1:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV1:PMEAN_MIN" ) alias( "ACCL:GUNB:455:REV1:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV1:PMEAN_RMS" ) alias( "ACCL:GUNB:455:REV1:PMEAN_LAST_N_STD", "ACCL:GUNB:455:REV1:PMEAN_STD" ) alias( "ACCL:GUNB:455:REV1:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV1:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV1:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV1:PMEAN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:REV2:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:REV2:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:REV2:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:REV2:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:REV2:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:REV2:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:REV2:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:REV2:ADC_MAX-MIN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN 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, "ACCL:GUNB:455:REV2:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:AMEAN_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, "ACCL:GUNB:455:REV2:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:REV2:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV2:AMEAN_AVG" ) alias( "ACCL:GUNB:455:REV2:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV2:AMEAN_MAX" ) alias( "ACCL:GUNB:455:REV2:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV2:AMEAN_MIN" ) alias( "ACCL:GUNB:455:REV2:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV2:AMEAN_RMS" ) alias( "ACCL:GUNB:455:REV2:AMEAN_LAST_N_STD", "ACCL:GUNB:455:REV2:AMEAN_STD" ) alias( "ACCL:GUNB:455:REV2:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV2:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV2:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV2:AMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN 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, "ACCL:GUNB:455:REV2:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV2:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV2:PMEAN_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, "ACCL:GUNB:455:REV2:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV2:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV2:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV2:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV2:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV2:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV2:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV2:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV2:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV2:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:REV2:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV2:PMEAN_AVG" ) alias( "ACCL:GUNB:455:REV2:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV2:PMEAN_MAX" ) alias( "ACCL:GUNB:455:REV2:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV2:PMEAN_MIN" ) alias( "ACCL:GUNB:455:REV2:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV2:PMEAN_RMS" ) alias( "ACCL:GUNB:455:REV2:PMEAN_LAST_N_STD", "ACCL:GUNB:455:REV2:PMEAN_STD" ) alias( "ACCL:GUNB:455:REV2:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV2:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV2:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV2:PMEAN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:REV3:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:REV3:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:REV3:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:REV3:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:REV3:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:REV3:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:REV3:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:REV3:ADC_MAX-MIN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN 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, "ACCL:GUNB:455:REV3:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:AMEAN_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, "ACCL:GUNB:455:REV3:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:REV3:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV3:AMEAN_AVG" ) alias( "ACCL:GUNB:455:REV3:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV3:AMEAN_MAX" ) alias( "ACCL:GUNB:455:REV3:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV3:AMEAN_MIN" ) alias( "ACCL:GUNB:455:REV3:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV3:AMEAN_RMS" ) alias( "ACCL:GUNB:455:REV3:AMEAN_LAST_N_STD", "ACCL:GUNB:455:REV3:AMEAN_STD" ) alias( "ACCL:GUNB:455:REV3:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV3:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV3:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV3:AMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN 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, "ACCL:GUNB:455:REV3:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV3:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV3:PMEAN_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, "ACCL:GUNB:455:REV3:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV3:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV3:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV3:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV3:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV3:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV3:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV3:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV3:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV3:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:REV3:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV3:PMEAN_AVG" ) alias( "ACCL:GUNB:455:REV3:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV3:PMEAN_MAX" ) alias( "ACCL:GUNB:455:REV3:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV3:PMEAN_MIN" ) alias( "ACCL:GUNB:455:REV3:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV3:PMEAN_RMS" ) alias( "ACCL:GUNB:455:REV3:PMEAN_LAST_N_STD", "ACCL:GUNB:455:REV3:PMEAN_STD" ) alias( "ACCL:GUNB:455:REV3:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV3:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV3:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV3:PMEAN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN 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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:REV4:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:REV4:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:REV4:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:REV4:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:REV4:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:REV4:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:REV4:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:REV4:ADC_MAX-MIN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN 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, "ACCL:GUNB:455:REV4:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:AMEAN_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, "ACCL:GUNB:455:REV4:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:REV4:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV4:AMEAN_AVG" ) alias( "ACCL:GUNB:455:REV4:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV4:AMEAN_MAX" ) alias( "ACCL:GUNB:455:REV4:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV4:AMEAN_MIN" ) alias( "ACCL:GUNB:455:REV4:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV4:AMEAN_RMS" ) alias( "ACCL:GUNB:455:REV4:AMEAN_LAST_N_STD", "ACCL:GUNB:455:REV4:AMEAN_STD" ) alias( "ACCL:GUNB:455:REV4:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV4:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV4:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV4:AMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN 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, "ACCL:GUNB:455:REV4:PMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "deg" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV4:PMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV4:PMEAN_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, "ACCL:GUNB:455:REV4:PMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV4:PMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV4:PMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV4:PMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV4:PMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV4:PMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV4:PMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV4:PMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV4:PMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "deg" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "deg" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "deg/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV4:PMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "deg" ) 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( "ACCL:GUNB:455:REV4:PMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV4:PMEAN_AVG" ) alias( "ACCL:GUNB:455:REV4:PMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV4:PMEAN_MAX" ) alias( "ACCL:GUNB:455:REV4:PMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV4:PMEAN_MIN" ) alias( "ACCL:GUNB:455:REV4:PMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV4:PMEAN_RMS" ) alias( "ACCL:GUNB:455:REV4:PMEAN_LAST_N_STD", "ACCL:GUNB:455:REV4:PMEAN_STD" ) alias( "ACCL:GUNB:455:REV4:PMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV4:PMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV4:PMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV4:PMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN 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, "ACCL:GUNB:455:REV:AMEAN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "sqrt(W)" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:REV:AMEAN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:REV:AMEAN_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, "ACCL:GUNB:455:REV:AMEAN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:REV:AMEAN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:REV:AMEAN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:REV:AMEAN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:REV:AMEAN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:REV:AMEAN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:REV:AMEAN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:REV:AMEAN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:REV:AMEAN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "sqrt(W)" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "sqrt(W)/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:REV:AMEAN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "sqrt(W)" ) 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( "ACCL:GUNB:455:REV:AMEAN_LAST_N_AVG", "ACCL:GUNB:455:REV:AMEAN_AVG" ) alias( "ACCL:GUNB:455:REV:AMEAN_LAST_N_MAX", "ACCL:GUNB:455:REV:AMEAN_MAX" ) alias( "ACCL:GUNB:455:REV:AMEAN_LAST_N_MIN", "ACCL:GUNB:455:REV:AMEAN_MIN" ) alias( "ACCL:GUNB:455:REV:AMEAN_LAST_N_RMS", "ACCL:GUNB:455:REV:AMEAN_RMS" ) alias( "ACCL:GUNB:455:REV:AMEAN_LAST_N_STD", "ACCL:GUNB:455:REV:AMEAN_STD" ) alias( "ACCL:GUNB:455:REV:AMEAN_LAST_N_SLOPE", "ACCL:GUNB:455:REV:AMEAN_SLOPE" ) alias( "ACCL:GUNB:455:REV:AMEAN_LAST_N_OFFSET", "ACCL:GUNB:455:REV:AMEAN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:RFS1:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:RFS1:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:RFS2:DAC1:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N" ) { field( DESC, "LAST_N Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN" ) { field( DESC, "1MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN" ) { field( DESC, "6MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN" ) { field( DESC, "30MIN Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR" ) { field( DESC, "1HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR" ) { field( DESC, "6HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR" ) { field( DESC, "24HR Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY" ) { field( DESC, "3DAY Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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 ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN 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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK" ) { field( DESC, "WEEK Hist" ) field( FTVL, "DOUBLE" ) field( EGU, "counts" ) field( NELM, 300 ) field( TSEL, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN.TIME" ) info( autosaveFields, "EGU" ) } # Create an array of time coordinates in the specified units record( acalcout, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK:X-AXIS PP" ) } record( waveform, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_30MIN_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_1HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_6HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_24HR_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_3DAY_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } # EPICS Template for waveform processing # # This template is used to process waveform records # and write the results as new waveforms and scalar PV's # # Required Macro Definitions # WAVE - Waveform name, for example AMO_KB1_WAV_01 # # Optional macros # NELM - Number of elements per history array (default 300) # EGU - Engineering units: fs, C, mm, etc. (default "") # RMS_LOLO - Low, low, limit (default "0") # RMS_LOW - Low limit (default "0") # RMS_HIGH - High limit (default "0") # RMS_HIHI - High, high, limit (default "0") # RMS asub # Processing this PV computes the RMS value for the input array # generating FitTime and Charge PV's for each cavity # # Inputs # INPA: Waveform PV, Type DOUBLE, any length # # Outputs # OUTA: RMS - ai PV - RMS over all samples # OUTB: MIN - ai PV - Min of all samples # OUTC: MAX - ai PV - Max of all samples # OUTD: AVG - ai PV - Average sample value # OUTE: STD - ai PV - Std deviation # OUTF: SLOPE - ai PV - Slope of linear least squares fit # OUTG: OFFSET - ai PV - Offset of linear least squares fit record( aSub, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_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, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK CPP NMS" ) field( FTVA, "DOUBLE" ) field( NOVA, 1 ) field( OUTA, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_RMS PP" ) field( FTVB, "DOUBLE" ) field( NOVB, 1 ) field( OUTB, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_MAX PP" ) field( FTVC, "DOUBLE" ) field( NOVC, 1 ) field( OUTC, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_MIN PP" ) field( FTVD, "DOUBLE" ) field( NOVD, 1 ) field( OUTD, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_AVG PP" ) field( FTVE, "DOUBLE" ) field( NOVE, 1 ) field( OUTE, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_STD PP" ) field( FTVF, "DOUBLE" ) field( NOVF, 1 ) field( OUTF, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_SLOPE PP" ) field( FTVG, "DOUBLE" ) field( NOVG, 1 ) field( OUTG, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_OFFSET PP" ) } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_MAX" ) { field( DESC, "MAX for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_AVG" ) { field( DESC, "AVG of waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_MIN" ) { field( DESC, "MIN for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_RMS" ) { field( DESC, "RMS for waveform" ) field( LOLO, "0" ) field( LOW, "0" ) field( HIGH, "0" ) field( HIHI, "0" ) field( EGU, "counts" ) field( PREC, "4" ) field( LLSV, "MAJOR" ) field( LSV, "MINOR" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_STD" ) { field( DESC, "StdDev for waveform" ) field( EGU, "counts" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_SLOPE" ) { field( DESC, "Best fit linear slope" ) field( EGU, "counts/s" ) field( PREC, "4" ) info(autosaveFields, "HHSV HIGH HIHI HSV LLSV LOLO LOW LSV PREC") } record( ai, "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_WEEK_OFFSET" ) { field( DESC, "Offset of least squares fit" ) field( EGU, "counts" ) 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( "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_AVG", "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_AVG" ) alias( "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_MAX", "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_MAX" ) alias( "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_MIN", "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_MIN" ) alias( "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_RMS", "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_RMS" ) alias( "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_STD", "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_STD" ) alias( "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_SLOPE", "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_SLOPE" ) alias( "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_LAST_N_OFFSET", "ACCL:GUNB:455:RFS2:DAC2:ADC_MAX-MIN_OFFSET" )