:MEASure:TDR:TEDGe

Meas. mode:
TDR
Flex Apps:
FlexDCA

Command Syntax

:MEASure:TDR:TEDGe

Query Syntax

:MEASure:TDR:TEDGe?

Description

Performs a Time-at-Edge measurement on the selected waveform and shows the measurement at the top of the Results table. If the measurement listing is already in shown in the Results table, the listing is moved to the top of the table. To select the waveform, use the :SOURce child command. Time-at-Edge is the measure of the time at which the specified waveform edge occurs on the displayed waveform. To specify the edge, use the NUMBer child command. Specify a rising or falling edge with the DIRection child command. Specify the edge threshold with the THReshold child command.

The query form of the command returns the measured value.

Requires FlexDCA revision A.04.00 and above.

Measurement Ready?

To confirm that the measurement is ready to read, you can query the measurement's status:

if ('CORR' in Flex.query(':MEASure:TDR:TEDGe:STATus?')):
	measurement = Flex.query(':MEASure:TDR:TEDGe?')

If averaging is turned on (:ACQuire:AVERaging), you can also confirm if the measurement result is ready by comparing the number of specified averages (:ACQuire:ECOunt?) versus the number of measurement sweeps that have occurred (:MEASure:TDR:TEDGe:COUNt?). The technique uses the :COUNt? common measurement query. For example,

if (Flex.query(':MEASure:TDR:TEDGe:COUNt?') >= Flex.query(':ACQuire:ECOUNt?')):
	measurement = Flex.query(':MEASure:TDR:TEDGe?')

You can also use an acquisition limit lest to test that a number of waveform samples, or pattern acquisitions have completed before returning a measurement. Refer to the :LTESt:ACQuire:CTYPe command.

Common Measurement Child Queries

This command supports the use of the following common measurement queries: :LOCation?, :COUNt?, :MAXimum?, :MINimum?, :MEAN?, and :SDEViation?.

Measurement Identification

Avoid subtle programming errors! To ensure that the correct measurement is installed or queried, always explicitly identify a measurement when installing a measurement or querying a measured value, status, or detail. To identify a measurement, specify the measurement's source waveform (:SOURce child command). With some measurements, you may also need to specify other identifying values. Generally, when selecting a measurement using FlexDCA's GUI, if a dialog appears prompting you to select values, you should explicitly specify these values when remotely identifying the measurement. More information.

For example, to return the status of the measurement, :MEASure:TDR:TEDGe:

flex.write(':MEASure:TDR:TEDGe:SOURce CHAN1A')
if flex.query(':MEASure:TDR:TEDGe:STATus?') == 'CORR';
    measurement = flex.query(':MEASure:TDR:TEDGe?')
else:
	details = flex.query(':MEASure:TDR:TEDGe:STATus:DETails?')
	reason = flex.query(':MEASure:TDR:TEDGe:STATus:REASon?')

Child commands for measurement identification:

  • :MEASure:TDR:TEDGe:SOURce
  • :MEASure:TDR:TEDGe:REGion

Example Command Sequence

:SYSTem:MODE TDR
:MEASure:TDR:TEDGe:SOURce TRACe4
:MEASure:TDR:TEDGe:DIRection RISing
:MEASure:TDR:TEDGe:NUMBer 2
:MEASure:TDR:TEDGe:THReshold MIDDle
:MEASure:TDR:TEDGe
:MEASure:TDR:TEDGe?