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

Object type

Property (Read-Only)

Syntax

Data = SCPI.CALCulate(Ch).TRACe.DATA.MSData(param)

OR

Data = SCPI.CALCulate(Ch).SELected.DATA.MSData(param)

Description

This command gets the corrected data array of multiple traces (traces-n, m, .... to l) of the selected channel (Ch). This command is supported in revision A.11.20 and above.

SCPI.CALCulate(Ch).SELected.DATA.SDATa allows you to get only one corrected data with one command. On the other hand, this command allows you to get several corrected data.

For more information on the corrected data array, see Internal Data Processing

The maximum number of trace you can specify is up to the maximum number of trace.

"Out of Memory" error occurs when the total number of data exceeds the limitation. When this error occurs, reduce the number of specified trace number and divide into two commands.

Data out of range” error occurs when the specified trace number exceeds the maximum trace number.

Illegal parameter value” error occurs when the number of specified traces exceeds the maximum trace number. For example, ("1,1,2") is specified where maximum trace number is 2.

Variable

Parameter

Param

Description

Trace Number

Data type

Character string type (String)

Range

"n, m, l, ..."
where n, m, l are 1 to the maximum trace number.

Note

Use comma for separator of trace number.

 

Parameter

Data

Description

Indicates the array data (corrected data array) of NOP (number of measurement points)×2×(number of specified traces). Where n is an integer between 1 and NOP.

  • Data(n*2-2) :Real part of the data (complex number) at the n-th measurement point.

  • Data(n*2-1) :Imaginary part of the data (complex number) at the n-th measurement point.

The output trace data is listed according to the order of the specified trace number.

The index of the array starts from 0.

Data type

Variant type (Variant)

Note

If there is no array data of NOP (number of measurement point)×2 when setting a corrected data array, an error occurs when executed and the object is ignored.

Examples

Dim MSData As Variant
SCPI.CALCulate(1).PARameter.COUNt = 4
SCPI.SENSe(1).SWEep.POINts = 201
MSData = SCPI.CALCulate(1).SELected.DATA.MSData("1,2,3,4")

' You can place the order randomly. The query follows the specified order. In this case Trace 1, 4 then Trace 3 is returned.
MSData = SCPI.CALCulate(1).SELected.DATA.MSData("1,4,3")

' You can place the same trace number as long as it does not exceed the number of traces. The query follows the specified order. In this case Trace 1, 1 then Trace 3 is returned.  
MSData = SCPI.CALCulate(1).SELected.DATA.MSData("1,1,3")

Related objects

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

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

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

Equivalent key

No equivalent key is available on the front panel.

Equivalent SCPI command

Syntax

:CALCulate{[1]-160}:SELected:DATA:MSData? <string ("n, m, l...")>
:CALCulate{[1]-160}:TRACe:DATA:MSData? <string ("n, m, l...")>

Query response

{numeric 1},… ,{numeric NOP×2×(number of specified traces)}<newline><^END>

Example of use

10 DIM A(1:401,1:2,1:6)
20 OUTPUT 717;":CALC1:DATA:MSD? ""1,2,3,4,5,6"""
30 ENTER 717;A(*)