How can I set up a delay measurement between 2 channels using SCPI commands?
In the programming manual I see the following relevant commands:
MEASUrement:ADDMEAS
MEASU:MEAS<x>:TYPe DELAY
MEASUrement:MEAS:SOUrce<x>
MEASUrement:MEAS:DELay:EDGE<x>
Since a delay must be taken between 2 sources, am I to assume that the <x> in SOUrce<x> should correspond to the "from" and "to" source channels? SOUrce1 and SOUrce2 respectively? or maybe vice versa matching EDGE<x>:
"This command sets or queries the 'to edge' type when EDGE is EDGE1 and the 'from edge' type when EDGE is EDG2, for the measurement when the measurement type is DELAY. Measurements are specified by x."
As an example, I am trying to get the delay between a digital channel and analog channel as a propagation delay measurement. Let's say the digital channel (delay 'from') is CH5_D0 and the analog channel (delay 'to') is CH1. Would the following work? or do I have SOU1/SOU2 reversed maybe?
MEASU:ADDMEAS MEAS1
MEASU:MEAS1:TYPE DELAY
MEASU:MEAS1:SOU1 CH5_D0
MEASU:MEAS1:SOU2 CH1
Thanks