514
Keysight InfiniiVision M9241/42/43A PXIe Oscilloscopes SCPI Programmer's Guide
21
:MEASure Commands
When the :MEASure:TEDGe query is sent, the displayed signal is searched for the
specified transition.
The time interval between the trigger event and the edge occurrence is returned.
If the specified crossing cannot be found, the oscilloscope r9.9E+37. This
value is returned if the waveform does not cross the specified vertical value, or if
the waveform does not cross the specified vertical value for the specific number of
times in the direction specified.
Return Format
<value><NL>
<value> ::= time in seconds of the specified transition in NR3 format
:MEASure:TEDGe
Code
You can use multiple :MEASure:TEDGe? measurements to form delay and phase
measurements:
Delay = time at the Nth rising or falling edge of the channel - time at the same
edge of another channel
Phase = (delay between channels / period of channel) x 360
For example:
' Make a delay measurement between channel 1 and 2.
Dim dblChan1Edge1 As Double
Dim dblChan2Edge1 As Double
Dim dblChan1Edge2 As Double
Dim dblDelay As Double
Dim dblPeriod As Double
Dim dblPhase As Double
' Query time at 1st rising edge on ch1.
myScope.WriteString ":MEASURE:TEDGE? +1, CHAN1"
' Read time at edge 1 on ch 1.
dblChan1Edge1 = myScope.ReadNumber
' Query time at 1st rising edge on ch2.
myScope.WriteString ":MEASURE:TEDGE? +1, CHAN2"
' Read time at edge 1 on ch 2.
dblChan2Edge1 = myScope.ReadNumber
' Calculate delay time between ch1 and ch2.
dblDelay = dblChan2Edge1 - dblChan1Edge1
' Write calculated delay time to screen.
MsgBox "Delay = " + CStr(dblDelay)
' Make a phase difference measurement between channel 1 and 2.
' Query time at 1st rising edge on ch1.
myScope.WriteString ":MEASURE:TEDGE? +2, CHAN1"
' Read time at edge 2 on ch 1.
dblChan1Edge2 = myScope.ReadNumber