--- Select Measurement ---;;;;Select a valid measurement function;;;
RMS;RMS1(data);;RMS;Measures RMS;;Tran;0
Mean;Mean1(data);;Mean;Measures mean value;;Tran|DC;0
Maximum;MeasureMax(data);%y1%%uy1% @%x1%%ux1%;Maximum;Measures maximum value and x location;;Tran|DC|AC;0
Minimum;MeasureMin(data);%y1%%uy1% @%x1%%ux1%;Minimum;Measures minimum value and x location;;Tran|DC|AC;0
Peak To Peak;PeakToPeak(data);;Peak To Peak;Measures difference between highest and lowest value;;Tran|DC;0
Rise Time 10%-90% (manual);MeasureRise(data);;Rise Time ({FormatNumber(%y2%,2,'%%')}-{FormatNumber(1-%y2%,2,'%%')});Measures 10%-90% rise time.\nPlace cursors either side of edge;1;Tran;0
Rise Time 10%-90% (auto);MeasureRise(data,0.1,1);;Rise Time ({FormatNumber(%y2%,2,'%%')}-{FormatNumber(1-%y2%,2,'%%')});Measures 10%-90% rise time.\nAutomatically detects first rising edge in waveform using an heuristic\nalgorithm to detect the pulse flats;;Tran;0
Rise Time custom (auto);MeasureRise(data,0,1);;Rise Time ({FormatNumber(%y2%,2,'%%')}-{FormatNumber(1-%y2%,2,'%%')});Measures rise time using custom thresholds.\nAutomatically detects first rising edge in waveform using an heuristic\nalgorithm to detect the pulse flats;;Tran;0
Fall Time 10%-90% (manual);MeasureFall(data);;Fall Time ({FormatNumber(%y2%,2,'%%')}-{FormatNumber(1-%y2%,2,'%%')});Measures 10%-90% fall time.\nPlace cursors either side of edge;1;Tran;0
Fall Time 10%-90% (auto);MeasureFall(data,0.1,1);;Fall Time ({FormatNumber(%y2%,2,'%%')}-{FormatNumber(1-%y2%,2,'%%')});Measures 10%-90% fall time.\nAutomatically detects first rising edge in waveform using an heuristic\nalgorithm to detect the pulse flats;;Tran;0
Fall Time custom (auto);MeasureFall(data,0,1);;Fall Time ({FormatNumber(%y2%,2,'%%')}-{FormatNumber(1-%y2%,2,'%%')});Measures fall time using custom thresholds.\nAutomatically detects first rising edge in waveform using an heuristic\nalgorithm to detect the pulse flats;;Tran;0
Duty cycle;Duty(data);{FormatNumber(%y1%,4,'%%')};Duty cycle;Measures duty cycle.\nUses mid-point between maximum and minimum values as baseline.\nCalculates duty based on first complete pulse;;Tran;0
Overshoot (relative %);MeasureOvershoot(data,0,0);{FormatNumber(%y1%,2,'%%')}/{FormatNumber(%y2%,2,'%%')};Overshoot +/-;Measures relative overshoot in %\nPlace cursors either side of edge;1;Tran;0
Overshoot (absolute);MeasureOvershoot(data,0,1);%y1%%uy1%/%y2%%uy2%;Overshoot +/-;Measures absolute overshoot\nPlace cursors either side of edge;1;Tran;0
Overshoot auto (relative %);MeasureOvershoot(data,1,0);{FormatNumber(%y1%,2,'%%')}/{FormatNumber(%y2%,2,'%%')};Overshoot +/-;Measures relative overshoot in %\nSmart method uses heuristic algorithm to locate pulse flats;;Tran;0
Overshoot auto (absolute);MeasureOvershoot(data,1,1);%y1%%uy1%/%y2%%uy2%;Overshoot +/-;Measures absolute overshoot\nSmart method uses heuristic algorithm to locate pulse flats;;Tran;0
Settling time to 1%;MeasureSettling(data, 0.01);;Settling 1%%;Measures settling time from defined start point\nUse cursors to define start point and end of pulse;1;Tran;0
Settling time to 0.1%;MeasureSettling(data, 0.001);;Settling 0.1%%;Measures settling time from defined start point\nUse cursors to define start point and end of pulse;1;Tran;0
Settling time to 0.01%;MeasureSettling(data, 0.0001);;Settling 0.01%%;Measures settling time from defined start point\nUse cursors to define start point and end of pulse;1;Tran;0
Settling time - custom;MeasureSettling(data, 0);;Settling {FormatNumber(%y2%,2'%%')};Measures settling time from defined start point\nUse cursors to define start point and end of pulse;1;Tran;0
Frequency;Frequency(data);;Frequency;Measures frequency based on number of crossings of threshold\ncalculated from mean point of maximum and minimum values;;Tran;0
Distortion;MeasureDistortion(data);{FormatNumber(%y1%,6,'%%')};Distortion;Measures distortion of signal using Fourier transform method.\nYou must have a minimum of three cycles of signal to get a meaningful result.\nAccuracy improves with smaller time steps and tighter tolerance;;Tran;0
Distortion ('A' Weighted);MeasureDistortion(data,0,20k,'a');{FormatNumber(%y1%,6,'%%')};Distortion ('A' Weighted);Measures distortion of signal using Fourier transform method.\nYou must have a minimum of three cycles of signal to get a meaningful result.\nAccuracy improves with smaller time steps and tighter tolerance.\nAnalyzes 1.9*Fundamental to 20kHz with 'A' Weighting.;;Tran;0
Distortion ('B' Weighted);MeasureDistortion(data,0,20k,'b');{FormatNumber(%y1%,6,'%%')};Distortion ('B' Weighted);Measures distortion of signal using Fourier transform method.\nYou must have a minimum of three cycles of signal to get a meaningful result.\nAccuracy improves with smaller time steps and tighter tolerance.\nAnalyzes 1.9*Fundamental to 20kHz with 'B' Weighting.;;Tran;0
Distortion ('C' Weighted);MeasureDistortion(data,0,20k,'c');{FormatNumber(%y1%,6,'%%')};Distortion ('C' Weighted);Measures distortion of signal using Fourier transform method.\nYou must have a minimum of three cycles of signal to get a meaningful result.\nAccuracy improves with smaller time steps and tighter tolerance,\nAnalyzes 1.9*Fundamental to 20kHz with 'C' Weighting.;;Tran;0
Distortion ('D' Weighted);MeasureDistortion(data,0,20k,'d');{FormatNumber(%y1%,6,'%%')};Distortion ('D' Weighted);Measures distortion of signal using Fourier transform method.\nYou must have a minimum of three cycles of signal to get a meaningful result.\nAccuracy improves with smaller time steps and tighter tolerance.\nAnalyzes 1.9*Fundamental to 20kHz with 'D' Weighting.;;Tran;0
Lowpass -3dB (db Plot, auto);MeasureLPMinus3dB(data,1);;Lowpass -3dB;Measure -3dB point for low-pass response\nAssumes the curve being studied is a dB plot\nUses histogram method to locate pass response;;AC;0
Lowpass -3dB (magnitude Plot, auto);MeasureLPMinus3dB(db(data),1);;Lowpass -3dB;Measure -3dB point for low-pass response\nAssumes the curve being studied is a magnitude plot\nUses histogram method to locate pass response;;AC;0
Lowpass -3dB (db Plot, manual);MeasureLPMinus3dB(data,0);;Lowpass -3dB;Measure -3dB point for low-pass response\nAssumes the curve being studied is a dB plot\nMark start and end points using cursors;1;AC;0
Lowpass -3dB (magnitude Plot, manual);MeasureLPMinus3dB(db(data),0);;Lowpass -3dB;Measure -3dB point for low-pass response\nAssumes the curve being studied is a magnitude plot\nMark start and end points using cursors;1;AC;0
Lowpass +3dB (db Plot, manual);MeasureLPPlus3dB(data,1);;Lowpass +3dB;Measure +3dB point for low-pass response\nAssumes the curve being studied is a dB plot\nMark start and end points using cursors;1;AC;0
Highpass -3dB (db Plot, auto);MeasureHPMinus3dB(data,1);;Highpass -3dB;Measure -3dB point for high-pass response\nAssumes the curve being studied is a dB plot\nUses histogram method to locate pass response;;AC;0
Highpass -3dB (magnitude Plot, auto);MeasureHPMinus3dB(db(data),1);;Highpass -3dB;Measure -3dB point for high-pass response\nAssumes the curve being studied is a magnitude plot\nUses histogram method to locate pass response;;AC;0
Highpass -3dB (db Plot, manual);MeasureHPMinus3dB(data,0);;Highpass -3dB;Measure -3dB point for high-pass response\nAssumes the curve being studied is a dB plot\nMark start and end points using cursors;1;AC;0
Highpass -3dB (magnitude Plot, manual);MeasureHPMinus3dB(db(data),0);;Highpass -3dB;Measure -3dB point for high-pass response\nAssumes the curve being studied is a magnitude plot\nMark start and end points using cursors;1;AC;0
Highpass +3dB (db Plot, manual);MeasureHPPlus3dB(data,0);;Highpass +3dB;Measure +3dB point for high-pass response\nAssumes the curve being studied is a dB plot\nMark start and end points using cursors;1;AC;0
Centre Frequency (db Plot);CentreFreq(10^(data/20),3,1);;Centre Frequency;Measures mid-point between -3dB crossings\nAssumes the curve being studied is a dB plot;;AC;0
Centre Frequency (magnitude Plot);CentreFreq(data,3,1);;Centre Frequency;Measures mid-point between -3dB crossings\nAssumes the curve being studied is a magnitude plot;;AC;0
Temperature Coefficient;MeasureRelSlope(data)*1e6;{FormatNumber(%y1%,6,'noeng')}ppm;Temp. Co;Measures overall slope relative to centre point\nAnswer given in ppm. Intended for temperature coefficient but can be\nused for other applications;;Tran|DC;0
Total Noise;SumNoise(data);;Total Noise;Measures noise integrated over the specified interval\nCalculates the "Root sum of squares";;Noise;0
Gain Crossover Frequency (complex Plot);GainCrossover(data);;Gain Crossover Frequency;Measures 1st frequency where magnitude is 1.0 or 0 dB\nstarting at lowest frequency assumes the curve being studied is complex;;AC;0
Gain Margin (complex Plot);GainMargin(data);;Gain Margin;Measures the Gain at the frequency where the phase reaches 0;;AC;0
Phase Margin (complex Plot);PhaseMargin(data);;Phase Margin;Measures the Phase at the frequency where the gain reaches 1.0 or 0 dB;;AC;0
Gain Crossover Frequency (dB Plot);GainCrossover(data);%y1%Hz;Gain Crossover Frequency;Measures 1st frequency where magnitude is 1.0 or 0 dB\nstarting at lowest simulated frequency;;AC;1|StrParseGainPhase(data)
Gain Margin (dB Plot);GainMargin(data);%y1%dB;Gain Margin;Measures the gain at the frequency where the phase reaches 0 degrees;;AC;1|StrParseGainPhase(data)
Phase Margin (Phase Plot);PhaseMargin(data);%y1%degrees;Phase Margin;Measures the phase at the frequency where the gain reaches 1.0 or 0 dB;;AC;1|StrParseGainPhase(data)
First Value;FirstValue(data);%y1%%uy1% @%x1%%ux1%;First Value;Measures the first y-value and the x-axis value where this occurs;;Tran|DC|AC;
Last Value;LastValue(data);%y1%%uy1% @%x1%%ux1%;Last Value;Measures the last y-axis value and the x-axis value at which this occurs;;Tran|DC|AC;
First Value (Phase Plot);FirstValuePhase(data);%y1%%uy1% @%x1%%ux1%;First Value;Measures the first y-value and the x-axis value where this occurs;;AC;1|StrParseGainPhase(data)
Last Value (Phase Plot);LastValuePhase(data);%y1%%uy1% @%x1%%ux1%;Last Value;Measures the last y-axis value and the x-axis value at which this occurs;;AC;1|StrParseGainPhase(data)
Maximum (Phase Plot);MeasureMaxPhase(data);%y1%%uy1% @%x1%%ux1%;Maximum;Measures maximum value and x location;;AC;0
Minimum (Phase Plot);MeasureMinPhase(data);%y1%%uy1% @%x1%%ux1%;Minimum;Measures minimum value and x location;;AC;0
Vector Length (number of points);FormatNumber(Length(data),6);%y1% Points;Length;Measures the number of data points in the curve vector;;Tran|DC|AC;