SCPI.SENSe(Ch).SEGMent.DATA

Object type

Property (Read-Write)

Syntax

SCPI.SENSe(Ch).SEGMent.DATA = Data

Data = SCPI.SENSe(Ch).SEGMent.DATA

Description

This command creates the segment sweep table of selected channel (Ch).

Variable

Parameter

Data

Description

Indicates the array data arranged in the following order (for the segment sweep table); where N is the number of segments (specified with <segm>) and n is an integer between 1 and N.

Data = {<buf>,<stim>,<ifbw>,<pow>,<del>,<swp>,<time>,<segm>, <star 1>,<stop 1>,<nop 1>,<ifbw 1>,<pow 1>,<del 1>,<swp 1>,<time 1>,...  , <star n>,<stop n>,<nop n>,<ifbw n>,<pow n>,<del n>,<swp n>,<time n>,.... , <star N>,<stop N>,<nop N>,<ifbw N>,<pow N>,<del N>,<swp N>,<time N>}

Each parameter in the above array data is detailed below:

  • <buf>: Always specify 5 or 6. You have to specify 6 if you need to set up the sweep mode setting for each segment.

  • <stim>: Stimulus setting mode
     0: Specifies with start/stop values
     1: Specifies with center/span values

  • <ifbw>: ON/OFF of the IF bandwidth setting for each segment
    0: OFF, 1: ON

  • <pow>: ON/OFF of the power setting for each segment
     0: OFF, 1: ON

  • <del>: ON/OFF of the sweep delay time setting for each segment
     0: OFF, 1: ON

  • <swp>: ON/OFF of the sweep mode setting for each segment
     0: OFF, 1: ON
    Not necessary when <buf> is 5.

  • <time>: ON/OFF of the sweep time setting for each segment
     0: OFF, 1: ON

  • <segm>: Number of segments
    Specify an integer ranging 1 to 201.

  • <star n>: Start value/center value of the n-th segment

  • <stop n>: Stop value/span value of the n-th segment

  • <nop n>: Number of measurement points of the n-th segment

  • <ifbw n>: IF bandwidth of the n-th segment Not necessary when the IF bandwidth setting for each segment is OFF (<ifbw>:0).

  • <pow n>: Power of the n-th segment Not necessary when the power setting for each segment is OFF (<pow>:0).

  • <del n>: Sweep delay time of the n-th segment Not necessary when the sweep delay time setting for each segment is OFF (<del>:0).

  • <swp n> : Sweep mode of the n-th segment
    0: Stepped mode
    1: Swept mode
    2: Stepped mode
    3: Swept mode
    Not necessary when <buf> is 5 or the sweep mode setting for each segment is OFF (<del>:0).  2 or 3 can be acceptable for compatibility with E5071C.

  • <time n>

  • Sweep time of the n-th segment is not necessary when the sweep time setting for each segment is OFF (<time>:0).

Data type

Variant type (Variant)

Note

If the necessary amount of array data for the specified number of segments is not available while setting the segment sweep table, an error occurs when executed and the object is ignored.

For <stim>, <ifbw>, <pow>, <del>, <swp>, and <time>, if the specified value is not the allowable integer, an error occurs when executed.

For <star n>, <stop n>, <nop n>, <ifbw n>, <pow n>, <del n>, and <time n> 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 SegmData As Variant
SCPI.SENSe(1).SEGMent.DATA = Array(5,0,0,1,0,0,2, _
100E6,1E9,31,0,2E9,3E9,51,-10)
SegmData = SCPI.SENSe(1).SEGMent.DATA

Dim SegmData(14) As Variant
Dim Ref As Variant
SegmData(0) = 5
SegmData(1) = 0
SegmData(2) = 0
SegmData(3) = 1
SegmData(4) = 0
SegmData(5) = 0
SegmData(6) = 2
SegmData(7) = 100E6
SegmData(8) = 1E9
SegmData(9) = 31
SegmData(10) = 0
SegmData(11) = 2E9
SegmData(12) = 3E9
SegmData(13) = 51
SegmData(14) = -10
SCPI.SENSe(1).SEGMent.DATA = SegmData
Ref = SCPI.SENSe(1).SEGMent.DATA

Related objects

SCPI.SENSe(Ch).SWEep.TYPE

Equivalent key

Sweep Setup > Edit Segment Table

Equivalent SCPI command

Syntax

:SENSe{[1]-160}:SEGMent:DATA 5,<mode>,<ifbw>,<pow>,<del>,<time>,<segm>,
<star 1>,<stop 1>,<nop 1>,<ifbw 1>,<pow 1>,<del 1>,<time 1>,?E/span> ,
<star n>,<stop n>,<nop n>,<ifbw n>,<pow n>,<del n>,<time n>,?E/span> ,
<star N>,<stop N>,<nop N>,<ifbw N>,<pow N>,<del N>,<time N>

:SENSe{[1]-160}:SEGMent:DATA 6,<mode>,<ifbw>,<pow>,<del>,<swp>,<time>,<segm>,
<star 1>,<stop 1>,<nop 1>,<ifbw 1>,<pow 1>,<del 1>,<swp 1>,<time 1>,?E/span> ,
<star n>,<stop n>,<nop n>,<ifbw n>,<pow n>,<del n>,<swp n>,<time n>,?E/span> ,
<star N>,<stop N>,<nop N>,<ifbw N>,<pow N>,<del N>,<swp N>,<time N>

:SENSe{[1]-160}:SEGMent:DATA?

Where N is the number of segments (specified with <segm>) and n is an integer between 1 and N.

Query response

When the sweep mode setting for each segment is OFF:

5,{mode},{ifbw},{pow},{del},{time},{segm},
{star 1},{stop 1},{nop 1},{pow 1},{del 1},{time 1},?E/span> ,
{star n},{stop n},{nop n},{pow n},{del n},{time n},?E/span> ,
{star N},{stop N},{nop N},{pow N},{del N},{time N}<newline><^END>

When the sweep mode setting for each segment is ON:

6,{mode},{ifbw},{pow},{del},{swp},{time},{segm},
{star 1},{stop 1},{nop 1},{pow 1},{del 1},{swp 1},{time 1},?E/span> ,
{star n},{stop n},{nop n},{pow n},{del n},{swp n},{time n},?E/span> ,
{star N},{stop N},{nop N},{pow N},{del N},{swp N},{time N}<newline><^END>

Example of use

10 DIM H(1:3,1:4)
20 OUTPUT 717;":SENS1:SEGM:DATA 5,0,1,0,0,0,3,";
30 OUTPUT 717;"1E9,3E9,11,70e3,";
40 OUTPUT 717;"3E9,4E9,51,7e3,";
50 OUTPUT 717;"4E9,6E9,11,70e3"
60 OUTPUT 717;":SENS1:SEGM:DATA?"
70 ENTER 717;A,B,C,D,E,F,G,H(*)

10 DIM I(1:3,1:5)
20 OUTPUT 717;":SENS1:SEGM:DATA 6,0,1,0,0,1,0,3,";
30 OUTPUT 717;"1E9,3E9,11,70e3,3,";
40 OUTPUT 717;"3E9,4E9,51,7e3,2,";
50 OUTPUT 717;"4E9,6E9,11,70e3,3"
60 OUTPUT 717;":SENS1:SEGM:DATA?"
70 ENTER 717;A,B,C,D,E,F,G,H, I(*)