Posted Tue, 16 Jan 2024 21:44:29 GMT by King, Robert

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

Posted Tue, 16 Jan 2024 21:47:07 GMT by King, Robert
Shoot, looks like I screwed up the formatting when I tried to edit my question...

attempted to fix - but if mods could take it back to v1 before I ever edited it, the formatting was much better...
Posted Tue, 16 Jan 2024 22:59:26 GMT by Teles, Afonso
Hi,

I think that's almost correct, only thing is that you should use the MEASUrement:ADDNew command instead of ADDMeas (which is also a valid command but won't let you set the index).
Apart from that, I think your code should work for what you want. Do note that you didn't set the edge types (rising or falling), so they will be set to their defaults.
Posted Wed, 17 Jan 2024 20:32:13 GMT by King, Robert
Thank you for the response.

Can you confirm that the to/from numbering is backwards between the <x> in MEASU:MEAS1:SOUrce<x> and MEASU:MEAS1:DELay:EDGE<x> ?

e.g. to configure a delay from CH5_D0 rising edge to CH1 falling edge:
MEASU:ADDN "MEAS1"
MEASU:MEAS1:TYPE DELAY

MEASU:MEAS1:SOU1 CH5_D0
MEASU:MEAS1:DEL:EDGE2 RISE

MEASU:MEAS1:SOU2 CH1
MEASU:MEAS1:DEL:EDGE1 FALL

or is one of these backwards?
Posted Fri, 19 Jan 2024 21:19:04 GMT by King, Robert
Confirmed on my MSO56 that the following works as expected for delay measurement between rising edge of CH6_D0 and falling edge of CH4:
MEASU:ADDN "MEAS1"
MEASU:MEAS1:TYPE DELAY
MEASU:MEAS1:SOU1 CH6_D0
MEASU:MEAS1:DEL:EDGE1 RISE
MEASU:MEAS1:SOU2 CH4
MEASU:MEAS1:DEL:EDGE2 FALL

You must be signed in to post in this forum.