This Programming Manual contains information on remote control over pair of
PLANAR R54 Vector Reflectometer and its data communication by means of user
programs written with COM/DCOM technology.
COM technology is used when a user program runs together with an external
measurement instrument program on one PC. DCOM technology is used when a user
program runs on a PC connected with the measurement instrument by LAN.
Methods and techniques for writing of user programs are same for the both
technologies. The only difference between the technologies is that the DCOM
technology requires additional LAN setting performed by the LAN administrator.
Before reading this Manual, familiarize yourself with PLANAR R54 Operating Manual.
6
PLANAR R54x2 COM/DCOM Programming manual
1 COM Technology Overview
COM stands for Component Object Model. This programming technology was
developed by Microsoft for two purposes:
the model provides the specification for interaction of binary
modules created in different programming languages;
the model defines the interfacing between a client application and a
server application running either on the same PC or on two different
PCs. In the latter case, the technology has DCOM abbreviation –
Distributed COM.
2 Automation Server
The PlanarR54x2.exe application contains a built-in COM server that enables other
programs to access its functionality. The PlanarR54x2.exe application COM server was
developed in conformity with the COM automation specification. COM automation is a
technology allowing control over the COM server by the programs written in both
traditional compiling programming languages and interpreting programming languages,
such as VBScript. This enables the server applications to make their functionality
accessible to many more clients.
To register the COM-server of PlanarR54x2.exe application in the system registry, start
the PlanarR54x2.exe application with /regserver key in command line during
installation. You can also register the COM-server in the similar manner manually.
To delete the COM-server registration from the system registry, start the
PlanarR54x2.exe application with /unregserver key in command line.
3 Automation Controllers
Automationcontrollers are client programs, which use internal functionality of COM
servers. Automation controller programs are developed by users for writing their own
add-ons for the system.
User programs can be written in different languages:
programming languages with built-in COM support, such as Visual
Basic®, Delphi, Java;
universal programming languages, such as C, C++;
Microsoft Excel and Word office applications as they include built-in
programming language Visual Basic for Applications®;
program generators, such as National Instruments LabView®, or
HP–VEE.
7
PLANAR R54x2 COM/DCOM Programming manual
Examples represented in this Manual are written in Visual Basic (VB). Appendix 3
contains examples written in VB, and C++ languages.
Examples\COM\VBA folder contains source codes for examples written in Visual Basic
for Applications® (Microsoft Excel files).
Examples\COM\CPP folder contains source codes for the C++ language examples.
4 Local and Remote Server
PlanarR54x2.exe application can function either as a local server or as a remote server
of COM automation.
Localserver runs on the same PC with the automation controller and each of the
programs is executed as an individual application in a separate window. COM
technology is used in this case (Figure 1).
Remote server and the automation controller run on different PCs connected by LAN.
DCOM (Distributed COM) technology is used in this case (Figure 2). When using
DCOM it is necessary to configure the local network by means of DCOM Windows
tools.
COM technology is normally used to control pair of PLANAR R54.
The same automation controller is used for the both COM and DCOM technology.
Some changes to the user program may be required in operators, which establish
connection with the server. Moreover, DCOM technology requires additional settings of
the LAN performed by the LAN administrator.
8
PLANAR R54x2 COM/DCOM Programming manual
COM
USB
Planar
R54X2
.exe
DCOM
Planar
R54X2
.exe
LAN
USB
User
Program
Planar R54
Planar R54
Figure 1. COM technology
Planar R54
Planar R54
Figure 2. DCOM technology
User Program
9
PLANAR R54x2 COM/DCOM Programming manual
5 Structure of COM Objects
COM server contains several objects, which provide different functionality of the
server. The COM objects of the PlanarR54x2.exe application are organized in a
hierarchical structure. Figure 3 shows the main COM objects, which comprise the first
three levels of the hierarchical structure of the PlanarR54x2.exe application COM
objects. COM objects provide various methods and properties, which allow access to
the server functions; besides, they allow access to the objects of the lower levels, which
are not shown in Figure 3.
Application
CALCulate
SCPI
DISPlay
SENSe
TRIGer
OUTPut HCOPy SERVice
Figure 3. The structure of COM objects
INITiate IEEE4882
SOURce MMEMory
SYSTem
The Object Application of the PlanarR54x2.exe application is in the top of the
hierarchy. Access to the lower level objects is implemented via higher level objects.
10
PLANAR R54x2 COM/DCOM Programming manual
Note
The hierarchy of COM objects is organized in accordance with
the standard and syntax of the SCPI programming language.
Operators in SCPI have hierarchical chain structure, for
example:
SCPI:CALCulate:SELected:FORMat SWR
The same COM command written in VB programming
language is as follows:
app.SCPI.CALCulate.SELected.FORMat = "SWR"
6 Accessing the Application Object
To establish connection with the COM server application, create an object reference in
the client program. In COM programming the object reference needs to be acquired
preliminarily, to be used later to access the object functionality. To define an object in
Visual Basic perform the following:
1) Declare a variable as an object.
2) Assign the object to this variable.
To declare a variable, use Dim operator or other declaration statement (Public, Private
or Static). The variables used for references should of the types Variant,Object, or a
type of a specific object. For example, the following three operators declare app
variable:
Dim app
Dim app as Object
Dim app as R54x2.Application
Use Set operator and CreateObject (ObjectName, HostName) function to assign a
specific object to a variable.
ObjectName Automation object name is always equal to “R54x2.Applcation”
HostName Network name of the PC hosting the PlanarR54x2 COM server. This
parameter is not specified in case of a local server.
11
PLANAR R54x2 COM/DCOM Programming manual
For example, the following operators create Application object and assign it to app
variable:
Set app = CreateObject("R54x2.Applcation")
Set app = CreateObject("R54x2.Applcation", "Network_Name")
Note
The first form of the operator is used to create the reference to
the local COM server, the second one is used to create the
reference to the remote DCOM server.
To allow access to the objects of a lower level of the hierarchy, these objects are
specified after the reference to the higher level object and separated from it by a dot. For
example:
Dim SystObj
Set SystObj = app.SCPI.SYSTem
COM objects can have indices. For example, CALCulate, INITiate, SENSe, SOURce
objects represent various aspects of the 4 measurement channels of the Analyzer.
Therefore, it is necessary to write the channel index from 1 to 4 to acquire the data of
these objects. For example:
Set SensObj1 = app.SCPI.SENSe(1)
Set SensObj2 = app.SCPI.SENSe(2)
Visual Basic allows omitting of such indices; in this case the indices are considered as
equal to 1. For example, the following VB operators are equivalent:
Set SensObj = app.SCPI.SENSe(1)
Set SensObj = app.SCPI.SENSe
12
PLANAR R54x2 COM/DCOM Programming manual
7 Object Methods
Objects have methods. Methods are actions that can be applied to objects. The object
methods are specified after the object name and separated from it by a dot.
The following example shows the PRESet method of SYSTem object. This method
performs setting of the Analyzer to the preset condition:
app.SCPI.SYSTem.PRESet
8 Object Properties
Along with methods, objects have properties. Properties are object characteristics that
can be set or read out. The object properties are specified after the object name and
separated from it by a dot.
To modify an object characteristic, write the value of the corresponding property. To
define an object characteristic, read out the value of its property. The following example
show the setting of the POINts property of SWEep object, i.e. the number of sweep
points:
app.SCPI.SENSe.SWEp.POINts = 201
Note
Some object properties cannot be written, and some object
properties cannot be read. In such cases, the properties are
indicated as “read only” or “write only”.
13
PLANAR R54x2 COM/DCOM Programming manual
9 Error Handling
You can use different approaches to error handling in VB program:
check the value of Err.Number variable after execution of VB
operator, which contains the call to R54x2 object;
use On Error goto VB operator.
These approaches are represented in the examples below. The following operator causes
an error in VB program as "S13" value of the DEFine property is incorrect.
app.SCPI.PARameter.DEFine = "S13"
In the first example, the value of the Err.Number variable is checked after execution of
the VB operator, which contains the call to R54x2 object. On Error Resume Next
directive instructs VB not to interrupt the program execution when the error is detected
but to pass control to the next operator in natural order.
Dim app
Public Sub HandleError1()
Set app = CreateObject("R54x2.Application")
On Error Resume Next
app.SCPI.PARameter.DEFine = "S13"
If Err.Number <> 0 Then
Msg = "Error # " & Str(Err.Number) & " was generated by " &_
Err.Source & Chr(13) & Err.Description
MsgBox Msg,,"Error"
End If
...
End Sub
14
PLANAR R54x2 COM/DCOM Programming manual
In the second example, On Error GoTo ErrHandler directive instructs VB to interrupt
the program execution when the error is detected and to pass control to ErrHandler
label.
Dim app
Public Sub HandleError2()
Set app = CreateObject("R54x2.Applcation")
On Error GoTo ErrHandler
app.SCPI.PARameter.DEFine = "S13"
...
Exit Sub
ErrHandler:
Msg = "Error # " & Str(Err.Number) & " was generated by " &_
Err.Source & Chr(13) & Err.Description
MsgBox Msg,,"Error"
End Sub
15
PLANAR R54x2 COM/DCOM Programming manual
precision floating point, value range from
10 COM Automation Data Types
In COM automation, there are the following data types, which can be used for client-toserver communication:
Long
Double
Boolean
String
Variant
32-bit signed integer, value range from –2147483648 to 2147483647
64-bit double–1.79769313486232E308 to –4.94065645841247E–324 for negative
values, and from 4.94065645841247E–324 to 1.79769313486232E308
for positive values
16-bit integer, two values 0 – False, 1 – True
Variable-length string
Can be either a value of arbitrary type or an array of values of arbitrary
type. In this case, the term “arbitrary type” means any allowed type of
COM automation. A variable contains information about its type and
array size (if it is an array). It is used for communication of data arrays
between a client and a server.
16
PLANAR R54x2 COM/DCOM Programming manual
11 Measurement Data Arrays
Measurement data can be either complex values or real values. This depends on the
format selected by the user. For example, the data is real in logarithmic magnitude
format and the data is complex in polar format.
The measurement data is transferred in a Variant type variable, which represents an
array of Double type. To transfer one complex measurement, two adjacent array cells
are used. To transfer one real measurement two adjacent array cells are used as well but
the second cell is always equal to 0. Thus, measurement data array size is a double
number of the measurement points.
Measurement 1 Measurement 2
Real Imag Real Imag
Figure 4. Array of complex measurements
Measurement 1 Measurement 2
Value 0 Value 0
Figure 5. Array of real measurements
…
…
Measurement N
Real Imag
Measurement N
Value 0
17
PLANAR R54x2 COM/DCOM Programming manual
12 COM Server Commands
NAME
Object Type
Data Type
Description
Range
Syntax
Equivalent Softkeys
Property (read only)
String
Instrument information string. String format: manufacturer, model, serial
number, number of firmware version and number of software version.
up to 40 characters
Dim ID As String
ID = app.NAME
None
18
PLANAR R54x2 COM/DCOM Programming manual
Ready(Pt)
Object Type
Data Type
Target
Description
Syntax
Equivalent Softkeys
Property (read only)
Boolean
Port Pt: port number 1-2 (see Table 2 on page 22)
Ready state of the instruments. Reads out the True value after successful
completion of the boot process (about 10 sec). The pair of PLANAR R54
must be connected to PC by a USB cable.
Dim State as Boolean
State = app.Ready(2)
None
19
PLANAR R54x2 COM/DCOM Programming manual
SCPI.ABORt
Object Type
Description
Syntax
Equivalent Softkeys
Method
Aborts the sweep. Switches trigger mode from Single to Hold, or from
Continuous to waiting for a trigger. If the trigger source is set to Internal,
starts a new sweep.
Ch: channel number 1–4 (see Table 1 on page 22)
Pt: port number 1-2 (see Table 2 on page 22)
De-embedding function file name (*.s2p). The file contains the circuit S–
parameters in Touchstone format.
up to 256 characters
""
Dim File As String
File =
app.SCPI.CALCulate(Ch).FSIMulator.SENDed.DEEMbed.PORT(Pt).USER.FILename
app.SCPI.CALCulate(Ch).FSIMulator.SENDed.DEEMbed.PORT(Pt).USER.FILename
=
"network.s2p"
Notes
Equivalent Softkeys
If the full path to the file is not specified, the \FixtureSim subdirectory of the
main directory will be searched for the file.
Ch: channel number 1–4 (see Table 1 on page 22)
Pt: port number 1-2 (see Table 2 on page 22)
Embedding function file name (*.s2p). The file contains the circuit S–
parameters in Touchstone format.
up to 256 characters
""
Dim File As String
File =
app.SCPI.CALCulate(Ch).FSIMulator.SENDed.PMCircuit.PORT(Pt).USER.FILename
app.SCPI.CALCulate(Ch).FSIMulator.SENDed.PMCircuit.PORT(Pt).USER.FILename
=
"network.s2p"
Notes
Equivalent Softkeys
If the full path to the file is not specified, the \FixtureSim subdirectory of the
main directory will be searched for the file.
Dim Meas As String
Meas = app.SCPI.CALCulate(Ch).PARameter(Tr).DEFine
app.SCPI.CALCulate(Ch).PARameter(Tr).DEFine = "S11"
None
30
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).PARameter(Tr).SELect
Object Type
Target
Description
Syntax
Notes
Equivalent Softkeys
Method
Trace Tr of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
Tr: trace number 1–4 (see Table 3 on page 29)
Sets the active channel and trace.
app.SCPI.CALCulate(Ch).PARameter(Tr).SELect
If the channel number is greater than the number of the channels displayed,
an error occurs and the command is ignored. If the trace number is greater
than the number of the traces displayed in the channel, an error occurs and
the command is ignored.
Channels > Active Channel
31
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.CONVersion.FUNCtion
Object Type
Data Type
Target
Description
Range
Notes
Property (read/write)
String
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The S–parameter conversion function type.
"IMPedance" : Reflection or Transmission equivalent impedance
according to the trace measurement S-parameter
"ADMittance" : Reflection or Transmission equivalent admittance
according to the trace measurement S-parameter
"INVersion" : Inverse S–parameter
"CONJugation" : S–parameter conjugate
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
Out of Range
Preset Value
Syntax
Equivalent Softkeys
An error occurs. Error code: 217.
"IMP"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.CONVersion.FUNCtion
app.SCPI.CALCulate(Ch).SELected.CONVersion.FUNCtion = "INV"
Analysis > Conversion > Function > Impedance Z | AdmittanceY | Inverse 1/S |
Conjugation
32
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.CONVersion.STATe
Object Type
Data Type
Target
Description
Allowable Values
Preset Value
Syntax
Property (read/write)
Boolean
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The ON/OFF state of the S-parameter conversion function.
True: S–parameter conversion function ON
False: S–parameter conversion function OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.CONVersion.STATe
app.SCPI.CALCulate(Ch).SELected.CONVersion.STATe = True
The formatted data array. The array elements contain measurements in the
current format, for example, in logarithmic magnitude format (Log Mag).
Also, see section “Measurement Data Arrays” on page 17.
The array size is 2N, where N is the number of measurement points.
For the n–th point, where n from 1 to N:
Data(2n–2) real number in rectangular format, real part in polar
and Smith chart formats;
Data(2n–1) 0 in rectangular format, imaginary part in polar and
Smith chart formats.
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.DATA.FDATa
Equivalent Softkeys
None
36
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.DATA.FMEMory
Object Type
Data Type
Target
Description
Syntax
Property (read only)
Variant (Double array)
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The formatted memory array. The array elements contain saved
measurements in the current format, for example, in logarithmic magnitude
format (Log Mag). Also, see section “Measurement Data Arrays” on page
17.
The array size is 2N, where N is the number of measurement points.
For the n–th point, where n from 1 to N:
Data(2n–2) real number in rectangular format, real part in polar
and Smith chart formats;
Data(2n–1) 0 in rectangular format, imaginary part in polar and
Smith chart formats.
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.DATA.FMEMory
Equivalent Softkeys
None
37
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.DATA.SDATa
Object Type
Data Type
Target
Description
Syntax
Property (read only)
Variant (Double array)
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The corrected data array. The corrected measurements are complex
numbers. Also, see section “Measurement Data Arrays” on page 17.
The array size is 2N, where N is the number of measurement points.
For the n–th point, where n from 1 to N:
Data(2n–2) the real part of corrected measurement;
Data(2n–1) the imaginary part of corrected measurement.
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.DATA.SDATa
Equivalent Softkeys
None
38
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.DATA.SMEMory
Object Type
Data Type
Target
Description
Syntax
Property (read only)
Variant (Double array)
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The corrected memory array. The corrected measurements are complex
numbers. Also, see section “Measurement Data Arrays” on page 17.
The array size is 2N, where N is the number of measurement points.
For the n–th point, where n from 1 to N:
Data(2n–2) the real part of corrected measurement memory;
Data(2n–1) the imaginary part of corrected measurement memory.
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.DATA.SMEMory
"MAXimum" : Maximum shape
"WIDE" : Wide shape
"NORMal" : Normal shape
"MINimum" : Minimum shape
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
Out of Range
Preset Value
Syntax
Equivalent Softkeys
An error occurs. Error code: 218.
"NORM"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.SHAPe
app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.SHAPe = "MAX"
DTF Settings > Gating > Shape > Maximum | Wide | Normal | Minimum
41
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.SPAN
Object Type
Data Type
Target
Description
Range
Out of Range
Preset Value
Unit
Property (read/write)
Double
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The gate span value of the gating function.
Varies depending on the frequency span and the number of points.
Sets the value of the limit, which is closer to the specified value.
2e–8
s (second), m (metre), ft (feet)
Dim Value As Double
Syntax
Equivalent Softkeys
Value = app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.SPAN
app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.SPAN = 1e
True: Gating function ON
False: Gating function OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.STATe
app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.STATe = Status
Equivalent Softkeys
DTF Settings > Gating > Gating
44
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.STOP
Object Type
Data Type
Target
Description
Range
Out of Range
Preset Value
Unit
Property (read/write)
Double
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The gate stop value of the gating function.
Varies depending on the frequency span and the number of points.
Sets the value of the limit, which is closer to the specified value.
1e–8
s (second), m (metre), ft (feet)
Dim Value As Double
Syntax
Equivalent Softkeys
Value = app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.STOP
app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.STOP = 1e–7
DTF Settings > Gating > Stop
45
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.TYPE
Object Type
Data Type
Target
Description
Range
Notes
Out of Range
Property (read/write)
String
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The gate type of the gating function.
"BPASs" : Bandpass type
"NOTCh" : Notch type
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
An error occurs. Error code: 219.
Preset Value
Syntax
Equivalent Softkeys
"BPAS"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.TYPE
app.SCPI.CALCulate(Ch).SELected.FILTer.GATE.TIME.TYPE = "NOTC"
DTF Settings > Gating > Type
46
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.FORMat
Object Type
Data Type
Target
Description
Range
Property (read/write)
String
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
Data format.
"RLOSs" : Logarithmic magnitude –
"SWR" : Voltage standing wave ratio –
"PHASe" : Phase –
Phase
"GDELay" : Group delay time –
"SMITh" : Smith chart format (R + jX) –
"MLINear" : Linear magnitude –
"UPHase" : Expanded phase –
Expand Phase
"CLOSs" : Logarithmic magnitude –
Return Loss
SWR
Group Delay
Smith Chart
Lin Magnitude
Cable Loss
"DSWR" : Voltage standing wave ratio DFT –
"DRLOss" : Logarithmic magnitude DFT –
DTF Return Loss
DTF SWR
Notes
Out of Range
Preset Value
Syntax
Equivalent Softkeys
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
An error occurs. Error code: 209.
"RLOSs"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.FORMat
app.SCPI.CALCulate(Ch).SELected.FORMat = "PHAS"
Measurement > Return Loss | SWR | Phase | Expand Phase | Group Delay | Lin
Magnitude | Cable Loss | Smith Chart | DTF SWR | DTF Return Loss
47
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.FUNCtion.DATA
Object Type
Data Type
Target
Description
Syntax
Property (read only)
Variant (Double array)
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The data array of analysis executed by the
SCPI.CALCulate(Ch).SELected.FUNCtion.EXECute
method.
The array size is 2N, where N is the number of points defined by the
SCPI.CALCulate(Ch).SELected.FUNCtion.POINts
property.
For the n–th point, where n from 1 to N:
Data(2n–2) the response value in the n–th measurement point;
Data(2n–1) the stimulus value in the n–th measurement point.
Always set to 0 for the analysis of mean value,
standard deviation, and peak–to–peak value.
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.FUNCtion.DATA
he number of points (data pairs) of the analysis result by the
SCPI.CALCulate(Ch).SELected.FUNCtion.POINts
Object Type
Data Type
Target
Description
Syntax
Equivalent Softkeys
Property (read only)
Long
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
T
SCPI.CALCulate(Ch).SELected.FUNCtion.EXECute
method.
Always equal to 1, when the search is executed for the maximum, minimum,
mean, standard deviation, peak, and peak–to–peak values. The actual
number of points is read out, when the search is executed for all peaks or all
targets.
Dim Value As Long
Value = app.SCPI.CALCulate(Ch).SELected.FUNCtion.POINts
None
55
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.FUNCtion.PPOLarity
Object Type
Data Type
Target
Description
Range
Notes
Out of Range
Property (read/write)
String
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The polarity selection when performing the peak search by the
SCPI.CALCulate(Ch).SELected.FUNCtion.EXECute
method.
"POSitive" : Positive peaks
"NEGative" : Negative peaks
"BOTH" : Both positive peaks and negative peaks
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
The value is ignored.
Preset Value
Syntax
Equivalent Softkeys
"POS"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.FUNCtion.PPOLarity
app.SCPI.CALCulate(Ch).SELected.FUNCtion.PPOLarity = "NEG"
None
56
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.FUNCtion.TARGet
Object Type
Data Type
Target
Description
Range
Out of Range
Preset Value
Unit
Syntax
Property (read/write)
Double
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The target level when performing the search for the trace and the target level
crosspoints by the
SCPI.CALCulate(Ch).SELected.FUNCtion.EXECute
method.
Varies depending on the trace format.
No limitation
0
dB (decibel) | ° (degree) | s (second)
Dim Value As Double
Value = app.SCPI.CALCulate(Ch).SELected.FUNCtion.TARGet
The transition type selection when performing the search for the trace and
the target level crosspoints by the
SCPI.CALCulate(Ch).SELected.FUNCtion.EXECute
method.
"POSitive" : Positive peaks
"NEGative" : Negative peaks
"BOTH" : Both positive peaks and negative peaks
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
Out of Range
Preset Value
Syntax
Equivalent Softkeys
The value is ignored.
"POS"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.FUNCtion.TTRansition
app.SCPI.CALCulate(Ch).SELected.FUNCtion.TTRansition = "BOTH"
None
58
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.FUNCtion.TYPE
Object Type
Data Type
Target
Description
Range
Property (read/write)
String
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The selection of the type of analysis executed by the
SCPI.CALCulate(Ch).SELected.FUNCtion.EXECute
method.
"PTPeak" : Peak–to–peak (difference between the maximum value
and the minimum value)
"STDEV" : Standard deviation
"MEAN" : Mean value
"MAXimum" : Maximum value
"MINimum" : Minimum value
"PEAK" : Search for the peak
"APEak" : Search for all the peaks
Notes
Out of Range
Preset Value
Syntax
Equivalent Softkeys
"ATARget" : Search for all targets
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
The value is ignored.
"PTP"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.FUNCtion.TYPE
app.SCPI.CALCulate(Ch).SELected.FUNCtion.TYPE = "STDEV"
None
59
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.LIMit.DATA
Object Type
Data Type
Target
Description
Property (read/write)
Variant (Double array)
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The data array, which is the limit line in the limit test function. The array
size is 1 + 5N, where N is the number of measuring points.
For the n–th point, where n from 1 to N:
Data(0)
T
he number of limit line segments N is from 0 to 100.
Setting 0 clears the limit line;
Data(5n–4) type of the n–th limit line segment;
0: OFF
1: Upper limit
2: Lower limit
Data(5n–3) the stimulus value in the start point of the n–th
segment;
Notes
Syntax
Equivalent Softkeys
Data(5n–2) the stimulus value in the end point of the n–th segment;
Data(5n–1) the response value in the start point of the n–th
segment;
Data(5n–0) the response value in the end point of the n–th
segment.
If the array size is not 1 + 5N, where N is Data(0), an error occurs (error
code 214). If Data(5n – 4) is less than 0 or more than 2, an error occurs
(error code 214). When Data(5n–3), Data(5n–2), Data(5n–1) and Data(5n–
0) elements are out of allowable range, the value is set to the limit, which is
closer to the specified value.
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.LIMit.DATA
app.SCPI.CALCulate(Ch).SELected.LIMit.DATA = Array(1,2,800,900,–10,–
10)
Analysis > Limit Test > Edit Limit Line
60
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.LIMit.DISPlay.STATe
Object Type
Data Type
Target
Description
Allowable Values
Preset Value
Syntax
Equivalent Softkeys
Property (read/write)
Boolean
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The ON/OFF state of the limit line display of the limit test function.
True: Limit line display ON
False: Limit line display OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.LIMit.DISPlay.STATe
app.SCPI.CALCulate(Ch).SELected.LIMit.DISPlay.STATe = True
Analysis > Limit Test > Limit Line
61
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.LIMit.FAIL
Object Type
Data Type
Target
Description
Allowable Values
Syntax
Equivalent Softkeys
Property (read only)
Boolean
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The limit test result.
True: Fail
False: Pass
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.LIMit.FAIL
The data array, which is the limit test results. The array size is 4N, where N is
the number of measurement points.
For the n–th point, where n from 1 to N:
Data(4n–3)
the stimulus value in the n–th point
Data(4n–2) the limit test result in the n–th point
–1: No limit
0: Fail
1: Pass
Data(4n–1) the upper limit value in the n–th point (0 – if there is no
limit)
Data(4n–0) the lower limit value in the n–th point (0 – if there is no
limit)
Syntax
Equivalent Softkeys
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.LIMit.REPort.ALL
None
65
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.LIMit.REPort.DATA
Object Type
Data Type
Target
Description
Syntax
Equivalent Softkeys
Property (read only)
Variant (Double array)
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The data array, which is the stimulus values at all the measurement points that
failed the limit test. The array size is defined by the
SCPI.CALCulate(Ch).SELected.LIMit.REPort.POINts
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.LIMit.REPort.DATA
None
property
.
66
PLANAR R54x2 COM/DCOM Programming manual
the
SCPI.CALCulate(Ch).SELected.LIMit.REPort.POINts
Object Type
Data Type
Target
Description
Syntax
Equivalent Softkeys
Property (read only)
Long
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The number of the measurement points that failed the limit test.
The array of stimulus values of the points can be read out by
SCPI.CALCulate(Ch).SELected.LIMit.REPort.DATA
Dim Cnt As Long
Cnt = app.SCPI.CALCulate(Ch).SELected.LIMit.REPort.POINts
None
property.
67
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.LIMit.STATe
Object Type
Data Type
Target
Description
Allowable Values
Preset Value
Syntax
Equivalent Softkeys
Property (read/write)
Boolean
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The ON/OFF state of the limit test function.
True: Limit test function ON
False: Limit test function OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.LIMit.STATe
app.SCPI.CALCulate(Ch).SELected.LIMit.STATe = True
Analysis > Limit Test > Limit Test
68
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MARKer(Mk).ACTivate
Object Type
Target
Description
Syntax
Equivalent Softkeys
Method
Marker Mk of the active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
Mk: marker number 1–15, or reference marker number 16 (see
Table 4 on page 61)
Sets the active marker. If a marker is OFF this function will turn it ON.
Turning ON a marker with the number from 1 to 15 will turn ON all the
markers of smaller numbers. Turning ON the reference marker with number
16 does not turn ON the markers with the numbers from 1 to 15, but
switches these markers to the relative measurement mode.
Ch: channel number 1–4 (see Table 1 on page 22)
Mk: marker number 1–15, or reference marker number 16(see
Table 4 on page 61)
The bandwidth search result. The bandwidth search can be performed
relatively to the marker Mk, or relatively to the absolute maximum value of
the trace (in this case the marker number is ignored), what is set by the
If the bandwidth search is impossible, all the read out values are 0. If the
search is performed relatively to a maker, which is OFF, an error occurs
(error code 204).
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).BWIDth.DATA
The selection of the reference point for the bandwidth search function:
reference marker or absolute maximum value of the trace.
"MARKer" : Bandwidth search relative to the reference marker
"MAXimum" : Bandwidth search relative to the absolute maximum of the
trace
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
Out of Range
Preset Value
Syntax
Equivalent Softkeys
The value is ignored.
"MAX"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.MARKer.BWIDth.REFerence
app.SCPI.CALCulate(Ch).SELected.MARKer.BWIDth.REFerence =
"marker"
Marker > Math > Bandwidth Search > Search Ref To
71
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MARKer.BWIDth.STATe
Object Type
Data Type
Target
Description
Allowable Values
Preset Value
Syntax
Equivalent Softkeys
Property (read/write)
Boolean
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The ON/OFF state of the bandwidth search function.
True: Bandwidth search function ON
False: Bandwidth search function OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.MARKer.BWIDth.STATe
app.SCPI.CALCulate(Ch).SELected.MARKer.BWIDth.STATe = True
Marker > Math > Bandwidth Search > Bandwidth Search
Marker > Math > Bandwidth Search > Bandwidth Value
–
73
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MARKer.BWIDth.TYPE
Object Type
Data Type
Target
Description
Range
Notes
Out of Range
Preset Value
Property (read/write)
String
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The type of the bandwidth search function.
"BPASs" : Bandpass
"NOTCh" : Notch
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
The value is ignored.
"BPAS"
Syntax
Equivalent Softkeys
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.MARKer.BWIDth.TYPE
app.SCPI.CALCulate(Ch).SELected.MARKer.BWIDth.TYPE = "NOTC"
Marker > Math > Bandwidth Search > Type
74
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MARKer.COUPle
Object Type
Data Type
Target
Description
Allowable Values
Preset Value
Syntax
Property (read/write)
Boolean
All traces of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The ON/OFF state of the marker coupling function.
True: Marker coupling ON
False: Marker coupling OFF
True
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.MARKer.COUPle
app.SCPI.CALCulate(Ch).SELected.MARKer.COUPle = false
From the stimulus current start value to the stimulus current stop value.
No limitation
85e6
Hz (Hertz) | s (second) | m (metre) | ft (feet)
Syntax
Equivalent Softkeys
Dim Value As Double
Value = app.SCPI.CALCulate(Ch).SELected.MARKer.FUNCtion.DOMain.STARt
app.SCPI.CALCulate(Ch).SELected.MARKer.FUNCtion.DOMain.STARt = 100e6
property), the active trace of channel Ch (if otherwise),
Ch: channel number 1–4 (see Table 1 on page 22)
The ON/OFF state of the arbitrary range when executing the marker search.
True: Marker search range ON
False: Marker search range OFF (entire sweep range)
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.MARKer.FUNCtion.DOMain.STATe
app.SCPI.CALCulate(Ch).SELected.MARKer.FUNCtion.DOMain.STATe = True
property), the active trace of channel Ch (if otherwise),
Ch: channel number 1–4 (see Table 1 on page 22)
The stop value of the marker search range.
From the stimulus current start value to the stimulus current stop value.
No limitation
5.4e9
Hz (Hertz) | s (second) | m (metre) | ft (feet)
Syntax
Equivalent Softkeys
Dim Value As Double
Value = app.SCPI.CALCulate(Ch).SELected.MARKer.FUNCtion.DOMain.STOP
app.SCPI.CALCulate(Ch).SELected.MARKer.FUNCtion.DOMain.STOP = 3.1e9
dB (decibel) | ° (degree) | s (second) | m (metre) | ft (feet)
Syntax
Equivalent Softkeys
Dim Value As Double
Value = app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).FUNCtion.PEXCursion
app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).FUNCtion.PEXCursion = 3.0
"POSitive" : Positive polarity
"NEGative" : Negative polarity
"BOTH" : Both positive polarity and negative polarity
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
Out of Range
Preset Value
Syntax
Equivalent Softkeys
The value is ignored.
"POS"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).FUNCtion.PPOLarity
app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).FUNCtion.PPOLarity = "neg"
"POSitive" : Positive target transition
"NEGative" : Negative target transition
"BOTH" : Both positive target transition and negative target transition
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
Out of Range
Preset Value
Syntax
Equivalent Softkeys
The value is ignored.
"POS"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).FUNCtion.TTRansition
app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).FUNCtion.TTRansition = "NEG"
"MAXimum" : Maximum value search
"MINimum" : Minimum value search
"PEAK" : Peak search
"LPEak" : Peak search to the left from the marker
"RPEak" : Peak search to the right from the marker
"TARGet" : Target search
"LTARget" : Target search to the left from the marker
"RTARget" : Target search to the right from the marker
Notes
Out of Range
Preset Value
Syntax
Equivalent Softkeys
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
The value is ignored.
"MAX"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).FUNCtion.TYPE
app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).FUNCtion.TYPE = "MIN"
Marker > Search > Maximum | Minimum
Marker > Search > Search Peak > Search Peak | Max Peak | Peak Left | Peak
Right
Marker > Search > Search Target > Search Target | Target Left | Target Right
The ON/OFF state of the reference marker. When the reference marker is
turned ON, all the values of the other markers turn to relative values.
True: Reference marker ON
False: Reference marker OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.MARKer.REFerence.STATe
app.SCPI.CALCulate(Ch).SELected.MARKer.REFerence.STATe = True
Marker > Reference Marker
86
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MARKer(Mk).STATe
Object Type
Data Type
Target
Description
Allowable Values
Preset Value
Property (read/write)
Boolean
Marker Mk of the active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
Mk: marker number 1–15, or reference marker number 16 (see
Table 4 on page 61)
The ON/OFF state of a marker. Turning ON a marker with the number from
1 to 15 will turn ON all the markers of smaller numbers. Turning OFF a
marker with the number from 1 to 15 will turn OFF all the markers of
greater numbers (except for the reference marker). Turning ON/OFF the
reference marker with number 16 does not turn ON/OFF the markers with
the numbers from 1 to 15, but switches these markers to the relative
measurement mode.
True: Marker ON
False: Marker OFF
False
Syntax
Equivalent Softkeys
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).STATe
app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).STATe = True
Mk: marker number 1–15, or reference marker number 16 (see
Table 4 on page 61)
The stimulus value of the marker.
From the stimulus current start value to the stimulus current stop value.
Sets the value of the limit, which is closer to the specified value.
Stimulus center value
Hz (Hertz) | s (second) | m (metre)
Syntax
Equivalent Softkeys
Dim Value As Double
Value = app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).X
app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).X = 1e9
None
88
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MARKer(Mk).Y
Object Type
Data Type
Target
Description
Syntax
Property (read only)
Variant (Double array)
Marker Mk of the active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
Mk: marker number 1–15, or reference marker number 16 (see
Table 4 on page 61)
The response value of the marker. If the reference marker is turned ON, the
values of the markers from 1 to 15 are read out as relative values to the
reference marker.
The array includes 2 elements:
Data(0)
real number in rectangular format, real part in polar
and Smith chart formats;
Data(1)
0 in rectangular format, imaginary part in polar and
Smith chart formats.
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.MARKer(Mk).Y
Equivalent Softkeys
None
89
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MARKer.COUNt
Object Type
Data Type
Target
Description
Range
Out of Range
Preset Value
Syntax
Property (read/write)
Long
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The number of the turned ON markers.
from 0 to 16
Sets the value of the limit, which is closer to the specified value.
0
Dim MarkerCnt As Long
MarkerCnt = app.SCPI.CALCulate(Ch).SELected.MARKer.COUNt
app.SCPI.CALCulate(Ch).SELected.MARKer.COUNt = 5
Equivalent Softkeys
None
90
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MATH.FUNCtion
Object Type
Data Type
Target
Description
Range
Notes
Property (read/write)
String
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The selection of the math operation between the measurement data and the
memory trace data. The math result replaces the data trace. If the data trace
is not saved, the command is ignored.
The short format of the parameter is indicated by upper case letters. There is
no distinction between upper and lower case letters when the property is
written. When the property is read out, the short format is indicated by upper
case letters.
Out of Range
Preset Value
Syntax
Equivalent Softkeys
An error occurs. Error code 210.
"NORM"
Dim Param As String
Param = app.SCPI.CALCulate(Ch).SELected.MATH.FUNCtion
app.SCPI.CALCulate(Ch).SELected.MATH.FUNCtion= "DIV"
Trace > Data Math > Data/Mem | Data*Mem | Data+Mem | Data–Mem | OFF
91
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MATH.MEMorize
Object Type
Target
Description
Syntax
Equivalent Softkeys
Method
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
Saves the measurement data to the memory trace. Automatically turns on
the display of the memory trace.
app.SCPI.CALCulate(Ch).SELected.MATH.MEMorize
Trace > Memorize Trace
92
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MSTatistics.DATA
Object Type
Data Type
Target
Description
Syntax
Property (read only)
Variant (Double array)
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The math statistics data array. The statistics function is applied either over
the whole range (for all the trace), or within the range specified by the
True: Statistics range ON
False: Statistics range OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected. MSTatistics.DOMain.STATe
app.SCPI.CALCulate(Ch).SELected. MSTatistics.DOMain.STATe = True
Marker > Math > Statistics > Statistics Range
96
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.MSTatistics.STATe
Object Type
Data Type
Target
Description
Allowable Values
Preset Value
Syntax
Equivalent Softkeys
Property (read/write)
Boolean
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The ON/OFF state of the math statistics display.
True: Statistics display ON
False: Statistics display OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.MSTatistics.STATe
app.SCPI.CALCulate(Ch).SELected.MSTatistics.STATe = True
Markers > Math > Statistics > Statistics
97
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected. RLIMit.DATA
Object Type
Data Type
Target
Description
Property (read/write)
Variant (Double array)
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The data array, which is the limit line for the ripple limit function. The array
size is 1 + 4N, where N is the number of limit line segments.
For the n–th point, where n from 1 to N:
Data(0)
the number of limit line segments N is the integer from
0 to 12. Setting 0 clears the limit line;
Data(4n–3) type of the n–th limit line segment;
0: Off
1: On
Data(4n–2) the stimulus value in the beginning point of the n–th
segment;
Data(4n–2) the stimulus value in the end point of the n–th segment;
Data(4n–0) the ripple limit value of the n–th segment.
Notes
Syntax
Equivalent Softkeys
If the array size is not 1 + 4N, where N is Data(0), an error occurs (error
code 214). If Data(4n – 3) is less than 0 or more than 1, an error occurs
(error code 214). When Data(4n–2), Data(4n–1), and Data(4n–0) elements
are out of allowable range, the value is set to the limit, which is closer to the
specified value.
Dim Data As Variant
Data = app.SCPI.CALCulate(Ch).SELected.RLIMit.DATA
app.SCPI.CALCulate(Ch).SELected.RLIMit.DATA = Array(1,1,800,900,10)
Analysis > Ripple Test > Edit Ripple Limit
98
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.RLIMit.DISPlay.LINE
Object Type
Data Type
Target
Description
Allowable Values
Preset Value
Syntax
Equivalent Softkeys
Property (read/write)
Boolean
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
The ON/OFF state of the ripple limit line display.
True: Ripple limit line ON
False: Ripple limit line OFF
False
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.RLIMit.DISPlay.LINE
app.SCPI.CALCulate(Ch).SELected.RLIMit.DISPlay.LINE = True
Analysis > Ripple Test > Limit Line
99
PLANAR R54x2 COM/DCOM Programming manual
SCPI.CALCulate(Ch).SELected.RLIMit.FAIL
Object Type
Data Type
Target
Description
Allowable Values
Syntax
Equivalent Softkeys
Property (read only)
Boolean
The active trace of channel Ch,
Ch: channel number 1–4 (see Table 1 on page 22)
Ripple limit test result.
True: Fail
False: Pass
Dim Status As Boolean
Status = app.SCPI.CALCulate(Ch).SELected.RLIMit.FAIL
None
100
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.