Posted about a year ago 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 about a year ago 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 about a year ago 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 about a year ago 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:
  1. MEASU:ADDN "MEAS1"
  2. MEASU:MEAS1:TYPE DELAY
  3.  
  4. MEASU:MEAS1:SOU1 CH5_D0
  5. MEASU:MEAS1:DEL:EDGE2 RISE
  6.  
  7. MEASU:MEAS1:SOU2 CH1
  8. MEASU:MEAS1:DEL:EDGE1 FALL

or is one of these backwards?
Posted about a year ago 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:
  1. MEASU:ADDN "MEAS1"
  2. MEASU:MEAS1:TYPE DELAY
  3. MEASU:MEAS1:SOU1 CH6_D0
  4. MEASU:MEAS1:DEL:EDGE1 RISE
  5. MEASU:MEAS1:SOU2 CH4
  6. MEASU:MEAS1:DEL:EDGE2 FALL

You must be signed in to post in this forum.