Property (Read-Write)
SCPI.CALCulate(Ch).SELected.LIMit.DATA = Data
Data = SCPI.CALCulate(Ch).SELected.LIMit.DATA
This command sets/gets the limit table for the limit test, for the active trace of selected channel (Ch).
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, an error occurs at execution 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 at execution. For Data(n×5-3), Data(n×5-2), Data(n×5-1), and Data(n×5) 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
Analysis > Limit Test > Edit Limit Line
:CALCulate{[1]-4}[:SELected]:LIMit:DATA <numeric 1>, ... ,<numeric 1+(N×5)>
:CALCulate{[1]-4}[:SELected]: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