:MEASure Commands 24
Keysight InfiniiVision 4000 X-Series Oscilloscopes Programmer's Guide 625
dblChan1Edge2 = myScope.ReadNumber
' Calculate period of ch 1.
dblPeriod = dblChan1Edge2 - dblChan1Edge1
' Calculate phase difference between ch1 and ch2.
dblPhase = (dblDelay / dblPeriod) * 360
MsgBox "Phase = " + vbCrLf + CStr(dblPhase)
See complete example programs at: Chapter 44, “Programming Examples,”
starting on page 1619
See Also • "Introduction to :MEASure Commands" on page 568
• ":MEASure:TVALue" on page 626
• ":MEASure:VTIMe" on page 1531