Property (Read-Write)
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
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.
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.
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. |
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
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
Analysis > Limit Test > Edit Limit Line
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?
{numeric 1}, ... ,{numeric 1+(N*5)}<newline><^END>
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