# :FUNCtion:PARameters:MTRend:MEASurement:LOCation

One-Input Measurement Trend Parameters Commands

- :FUNCtion:PARameters:MTRend:MEASurement:LOCation

## Command Syntax

    :FUNCtionN:PARameters:MTRend:MEASurement:LOCation <index>

Where N identifies one of up to 64 possible operators {1:64} that can be defined as part of a math function. The operators are numbered in the order that they were originally added to the function.

The argument is an index number that specifies the measurement to select. The active measurement list is indexed starting at 1. As a result, the first (top most) measurement in the list is identified as 1, the second measurement from the top is identified as 2, and so forth. To get the index value for a specific measurement, use the `:LOCation?` child command for the targeted measurement. For example, use `:MEASure:HORizontal:FTIMe:LOCation?`.

## Query Syntax

    :FUNCtionN:PARameters:MTRend:MEASurement:LOCation?

## Description

This command lets you select the measurement you wish to trend in the one-input "meas trend" function. It specifies the numerical location of the measurement in the result list.

The N suffix in ":FUNCtion:PARameters" must be the same as the ":FUNCtion" suffix. For example, if FUNC4 is a MTRend operator and you have only one measurement in the list (and it is has Measure All selected), you set the measurement of FUNC4 with ":FUNCtion4:PARameters:MTRend:MEASurement:LOCation 1".

The measurement you select must be one that is made on one input source and that can be made multiple times in a single acquisition when Measure All is selected. Also, the measurement you select must have the same input source as the input source specified by the math function operand.

## Example

This example shows how to set up the one-input measurement trend function on a period measurement.

    :SYSTem:DEFault
    :CHANnel1:DISPlay ON

    // Add the measurement
    :MEASure:HORizontal:PERiod:SOURce CHANnel1
    :MEASure:HORizontal:PERiod

    // Add the one-input measurement trend operator.
    :FUNCtion1:FOPerator MTRend
    :FUNCtion1:OPERand CHANnel1
    :FUNCtion1:COLor TCOLor8
    :FUNCtion1:DISPlay ON

    // Select the measurement for the trend function.
    :FUNCtion1:PARameters:MTRend:MEASurement:LOCation 1