SCPI.CALCulate(Ch).SELected.LIMit.DATA

Object type

Property (Read-Write)

Syntax

All revision:

SCPI.CALCulate(Ch).SELected.LIMit.DATA = Data

Data = SCPI.CALCulate(Ch).SELected.LIMit.DATA

 

In revision A.9.60 and above, the following syntax is also supported:

SCPI.CALCulate(Ch).TRACe(Tr).LIMit.DATA = Data

Data = SCPI.CALCulate(Ch).TRACe(Tr).LIMit.DATA

Description

This command sets/gets the limit table for the limit test, for the active trace of selected channel (Ch).

 

In revision A.9.60 and above, you can select the trace and set/get the limit table for the limit test for the trace just by executing the above TRACe(Tr) command. You do not need to execute SCPI.CALCulate(Ch).PARameter(Tr).SELect.

Variable

Parameter

Data

Description

Indicates the array data (for limit line) of 1 + Num (number of limit lines)*5. Where n is an integer between 1 and Num.

  • Data(0) :The number of limit lines you want to set. Specify an integer ranging 0 to 100. When the number of limit lines is set to 0 (clears the limit table), the variable Data is only required with Data(0).

  • Data(n*5-4) :The type of the n-th line.
    Specify an integer 0 to 2 as follows.
    0: OFF
    1: Upper limit line
    2: Lower limit line

  • Data(n*5-3) :The value on the horizontal axis (frequency/power/time) of the start point of the n-th line.

  • Data(n*5-2) :The value on the horizontal axis (frequency/power/time) of the end point of the n-th line.

  • Data(n*5-1) :The value on the vertical axis of the start point of the n-th line.

  • Data(n*5) :The value on the vertical axis of the end point of the n-th line.

The index of the array starts from 0.

Data type

Variant type (Variant)

Note

If there is no array data of 1+Num (number of set lines))*5 when setting a formatted memory array, an error occurs when executed and the object is ignored. For Data(n*5-4) in the array data, if you specify an integer other than 0, 1 or 2, an error occurs when executed. For Data(n*5-3), Data(n*5-2), Data(n*5-1), and Data(n85) in the array data, if the specified value is out of the allowable setup range, the minimum value (if the lower limit of the range is not reached) or the maximum value (if the upper limit of the range is exceeded) is set.

Examples

Dim LimData As Variant
SCPI.CALCulate(1).PARameter(1).SELect
SCPI.CALCulate(1).SELected.LIMit.DATA = Array(1,1,1e6,1e9,0,0)
LimData = SCPI.CALCulate(1).SELected.LIMit.DATA

SCPI.CALCulate(1).PARameter(1).SELect
SCPI.CALCulate(1).SELected.LIMit.DATA = Array(0) 'Clear Limit Table

 

Dim LimData(5) As Variant
Dim Ref As Variant
LimData(0) = 1
LimData(1) = 1
LimData(2) = 1e6
LimData(3) = 1e9
LimData(4) = 0
LimData(5) = 0
SCPI.CALCulate(1).PARameter(1).SELect
SCPI.CALCulate(1).SELected.LIMit.DATA = LimData
Ref = SCPI.CALCulate(1).SELected.LIMit.DATA

Dim LimData(0) As Variant
LimData(0) = 0
SCPI.CALCulate(1).PARameter(1).SELect
SCPI.CALCulate(1).SELected.LIMit.DATA = LimData 'Clear Limit Table

Related objects

SCPI.CALCulate(Ch).PARameter(Tr).SELect

SCPI.CALCulate(Ch).SELected.LIMit.STATe

SCPI.CALCulate(Ch).SELected.LIMit.DISPlay.STATe

SCPI.CALCulate(Ch).SELected.LIMit.FAIL

Equivalent key

Analysis > Limit Test > Edit Limit Line

Equivalent SCPI command

Syntax

All revision:

:CALCulate{[1]-160}[:SELected]:LIMit:DATA <numeric 1>, ... ,<numeric 1+(N*5)>

:CALCulate{[1]-160}[:SELected]:LIMit:DATA?

 

In revision A.9.60 and above, the following syntax is also supported:

:CALCulate{[1]-160}:TRACe{[1]-16}:LIMit:DATA <numeric 1>, ... ,<numeric 1+(N*5)>

:CALCulate{[1]-160}:TRACe{[1]-16}:LIMit:DATA?

Query response

{numeric 1}, ... ,{numeric 1+(N*5)}<newline><^END>

Example of use

10 DIM B(1:2,1:5)
20 OUTPUT 717;":CALC1:LIM:DATA 2,1,1E9,3E9,0,0,2,1E9,3E9,-3,-3"
30 OUTPUT 717;":CALC1:LIM:DATA?"
40 ENTER 717;A,B(*)

10 OUTPUT 717;":CALC1:LIM:DATA 0" ! Clear Limit Table