• General
  • API Documentation
  • SCPI
    • General
    • Command Reference
    • Starting Server

    Show / Hide Table of Contents
    • General commands
      • :ABORt
      • *CLS
      • *ESE
      • *ESR
      • *IDN
      • *OPC
      • *OPC?
      • *RST
      • *SRE
      • *STB
      • *TRG
      • *TST
      • *WAI
    • Calculate subsystem
      • :CALCulate:PARameter:DEFine
      • :CALCulate[:SELected]:DATA:SDATa
      • :CALCulate[:SELected]:FORMat
      • :CALCulate[:SELected]:ZPARameter:DEFine
    • Format subsystem
      • :FORMat[:DATA]
    • Initiate subsystem
      • :INITiate[:IMMediate]
      • :INITiate:CONTinuous
    • Input subsystem
      • :INPut:ATTenuation:CH1
      • :INPut:ATTenuation:CH2
      • :INPut:ATTenuation:R
      • :INPut:ATTenuation:T
      • :INPut:GAIN:CH1
      • :INPut:GAIN:CH2
      • :INPut:GAIN:R
      • :INPut:GAIN:T
      • :INPut:IMPedance:CH1
      • :INPut:IMPedance:CH2
      • :INPut:IMPedance:R
      • :INPut:IMPedance:T
    • Mass Memory subsystem
      • :MMEMory:STORe:CORRection
      • :MMEMory:LOAD:CORRection:FULLrange
      • :MMEMory:LOAD:CORRection:USERrange
    • Output subsystem
      • :OUTPut:AOFF
    • Sense subsystem
      • :SENSe:AVERage[:STATe]
      • :SENSe:AVERage:CLEar
      • :SENSe:AVERage:COUNt
      • :SENSe:BANDwidth[:RESolution]
      • :SENSe:BWIDth[:RESolution]
      • :SENSe:CORRection:FULLrange:ACTive
      • :SENSe:CORRection:FULLrange:AVAIlable
      • :SENSe:CORRection:FULLrange:ENABle
      • :SENSe:CORRection:FULLrange:EXTPolated
      • :SENSe:CORRection:FULLrange:MULTimode
      • :SENSe:CORRection:FULLrange:LOAD[:EXEcute]
      • :SENSe:CORRection:FULLrange:OPEN[:EXEcute]
      • :SENSe:CORRection:FULLrange:SHORt[:EXEcute]
      • :SENSe:CORRection:FULLrange:THRU[:EXEcute]
      • :SENSe:CORRection:IMPedance[:INPut][:MAGNitude]
      • :SENSe:CORRection:LOAD
      • :SENSe:CORRection:SDELaytime
      • :SENSe:CORRection:USERrange:ACTive
      • :SENSe:CORRection:USERrange:AVAIlable
      • :SENSe:CORRection:USERrange:ENABle
      • :SENSe:CORRection:USERrange:MULTimode
      • :SENSe:CORRection:USERrange:LOAD[:EXEcute]
      • :SENSe:CORRection:USERrange:OPEN[:EXEcute]
      • :SENSe:CORRection:USERrange:SHORt[:EXEcute]
      • :SENSe:CORRection:USERrange:THRU[:EXEcute]
      • :SENSe:FREQuency:CENTer
      • :SENSe:FREQuency:DATA
      • :SENSe:FREQuency:SPAN
      • :SENSe:FREQuency:STARt
      • :SENSe:FREQuency:STOP
      • :SENSe:SWEep:DWELl
      • :SENSe:SWEep:POINts
      • :SENSe:SWEep:TIME[:DATA]?
      • :SENSe:SWEep:TYPE
      • :SENSe:Z:METHod
    • Service subsystem
      • :SERVice:SWEep:FREQuency:MAXimum
      • :SERVice:SWEep:FREQuency:MINimum
    • Source subsystem
      • :SOURce:POWer[:LEVel][:IMMediate][:AMPLitude]
    • Status subsystem
      • :STATus:OPERation[:EVENt]
      • :STATus:OPERation:CONDition
      • :STATus:OPERation:ENABle
      • :STATus:OPERation:NTRansition
      • :STATus:OPERation:PTRansition
      • :STATus:PRESet
      • :STATus:QUEStionable[:EVENt]
      • :STATus:QUEStionable:CONDition
      • :STATus:QUEStionable:ENABle
      • :STATus:QUEStionable:NTRansition
      • :STATus:QUEStionable:PTRansition
    • System subsystem
      • :SYSTem:ERRor[:NEXT]
      • :SYSTem:ERRor:COUNt
      • :SYSTem:PRESet
      • :SYSTem:VERSion
    • Trigger subsystem
      • :TRIGger[:SEQuence][:IMMediate]
      • :TRIGger[:SEQuence]:SINGle
      • :TRIGger[:SEQuence]:SOURce

    :CALCulate[:SELected]:FORMat

    Description

    This command selects the format of the results data.

    • Command
    • Query
    Syntax Parameter
    :CALCulate<ch>[:SELected]:FORMat { GDELay | IMAGinary | MLINear | MLOGarithmic | PHASe | REAL | UPHase | SWR | SMITh | SLINear | SLOGarithmic | SCOMplex | SADMittance}
    Parameters accepted format allowed suffixes possible Errors description
    <ch> { 1 | empty } none Undefined header Currently only one channel is supported. Empty means 1 is used as default.
    { GDELay | IMAGinary | MLINear | MLOGarithmic | PHASe | REAL | UPHase | SWR | SMITh | SLINear | SLOGarithmic | SCOMplex | SADMittance } exactly the given options none Illegal parameter value The results format
    Syntax Response
    :CALCulate<ch>[:SELected]:FORMat? { GDELay | IMAGinary | MLINear | MLOGarithmic | PHASe | REAL | SMITh | SLIN | SLOG | SCOM | SADM | UPHase }
    Parameters accepted format description
    <ch> { 1 | empty } Currently only one channel is supported. Empty means 1 is used as default.

    Options

    Options Description
    GDELay group delay
    IMAGinary imaginary part
    MLINear linear magnitude
    MLOGarithmic logarithmic magnitude
    PHASe phase (in degrees)
    REAL real part
    SWR standing wave ratio
    UPHase unwrapped phase
    SLINear linear magnitude + phase (deg)
    SLOGarithmic logarithmic magnitude + phase (deg)
    SCOMplex real part + imaginary part
    SMITh R + jX - (resistance + reactance)
    SADMittance G + jB - (conductance + susceptance)
    Important

    Smith data types are only supported for S11, S21 or Z measurements. The S21 measurement does NOT support SMIT or SADM. If the selected format is not supported, a Settings Conflict error is raised.

    Note

    SLIN, SLOG and SCOM return the reflection / transmission coefficient, while SMIT and SADM return impedance / admittance values.

    Note

    The format selection DOES NOT influence the result, when performing an absolute measurement (CH1, CH2, R, T). The only interesting value to obtain from an absolute measurement is the VRMS and therefore the VRMS value is returned, regardless of the format settings.

    Presets

    default value
    { GDELay | IMAGinary | MLINear | MLOGarithmic | PHASe | REAL | UPHase | SWR | SMITh | SLINear | SLOGarithmic | SCOMplex | SADMittance} MLINear

    Sample usage

    Configure and start an S21 measurement and get the logarithmic magnitude.

    • C#
    • Python
    var visaSession = new TcpipSocket(VISA_RESOURCENAME);
    visaSession.RawIO.Write(":SENS:FREQ:STAR 5kHz;STOP 50kHz\n");
    visaSession.RawIO.Write(":CALC:PAR:DEF S21\n");
    visaSession.RawIO.Write(":CALC:FORM MLOG\n");
    visaSession.RawIO.Write(":TRIG:SING\n");
    // wait for the measurement to finish
    visaSession.RawIO.Write("*OPC?\n");
    visaSession.RawIO.ReadString();
    visaSession.RawIO.Write(":SENS:FREQ:DATA?\n");
    var frequencyValues = visaSession.RawIO.ReadString();
    visaSession.RawIO.Write(":CALC:DATA:SDAT?\n");
    var measurementValues = visaSession.RawIO.ReadString();
    

    Input:

    visaSession.write(':SENS:FREQ:STAR 5kHz;STOP 50kHz\n')
    visaSession.write(':CALC:PAR:DEF S21\n')
    visaSession.write(':CALC:FORM MLOG\n')
    visaSession.write(':TRIG:SING\n')
    visaSession.query('*OPC?\n')
    frequencyValues = visaSession.query(':SENS:FREQ:DATA?\n')
    measurementValues = visaSession.query(':CALC:DATA:SDAT?\n')
    

    Related commands in the Automation Interface

    GroupDelayTg()

    Phase(AngleUnit)

    UnwrappedPhase(AngleUnit)

    Real()

    Magnitude(MagnitudeUnit)

    VSWR()

    Lp()

    Cp()

    Rp()

    Ls()

    Cs()

    Rs()

    Q()

    QTg()

    Back to top Generated by DocFX