• General
    • Automated Measurements Overview
    • System Requirements
    • Measurement Modes and Default Settings
  • Bode Automation Interface
    • Documentation
    • Command Reference
    • Changelog
  • SCPI
    • Documentation
    • Command Reference
    • Error Handling
    • Changelog

    Show / Hide Table of Contents
    • General commands
      • :ABORt
      • *CLS
      • *ESE
      • *ESR
      • *IDN
      • *OPC
      • *OPC?
      • *RST
      • *SRE
      • *STB
      • *TRG
      • *TST
      • *WAI
    • Calculate subsystem
      • :CALCulate:PARameter:COUNt
      • :CALCulate:PARameter:DEFine
      • :CALCulate:PARameter:SELect
      • :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:CATalog:CORRection
      • :MMEMory:DELete:CORRection
      • :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:DATA:FREQuencies
      • :SENSe:CORRection:FULLrange:DATA:LOAD
      • :SENSe:CORRection:FULLrange:DATA:OPEN
      • :SENSe:CORRection:FULLrange:DATA:SHORt
      • :SENSe:CORRection:FULLrange:DATA:THRU
      • :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:DATA:FREQuencies
      • :SENSe:CORRection:USERrange:DATA:LOAD
      • :SENSe:CORRection:USERrange:DATA:OPEN
      • :SENSe:CORRection:USERrange:DATA:SHORt
      • :SENSe:CORRection:USERrange:DATA:THRU
      • :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:PSSTime
      • :SENSe:SWEep:TIME[:DATA]?
      • :SENSe:SWEep:TYPE
      • :SENSe:Z:METHod
    • Service subsystem
      • :SERVice:SWEep:FREQuency:MAXimum
      • :SERVice:SWEep:FREQuency:MINimum
      • :SERVice:SWEep:POINts
      • :SERVice:SWEep:POWer:MAXimum
      • :SERVice:SWEep:POWer: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:ALL
      • :SYSTem:ERRor[:NEXT]
      • :SYSTem:ERRor:COUNt
      • :SYSTem:LOCK:OWNer
      • :SYSTem:LOCK:RELease
      • :SYSTem:LOCK:REQuest
      • :SYSTem:PRESet
      • :SYSTem:TEMPerature:SENSors
      • :SYSTem:VERSion
    • Trigger subsystem
      • :TRIGger[:SEQuence][:IMMediate]
      • :TRIGger[:SEQuence]:SINGle
      • :TRIGger[:SEQuence]:SOURce

    :CALCulate:PARameter:DEFine

    Description

    This command selects the measurement type, which should be performed. For more details about the different measurement types please refer to the general info page about measurements (Measurement Types).

    Important

    The standard behaviour of this method is that the input parameters (gain, attenuation, termination, ...) are kept. The optional DEFault parameter allows to apply measurement relevant default (preset) settings.

    • Command
    • Query
    Syntax Parameter
    :CALCulate<ch>:PARameter<tr>:DEFine { S11 | S21 | GAINphase | CH1 | CH2 | Z | R | T }[,DEFault]
    Parameters accepted format allowed suffixes possible Errors description
    <ch> { 1 | empty } none Invalid channel index Currently only one channel is supported. Empty means 1 is used as default.
    <tr> { 1 | empty } none Invalid trace index Currently only one trace is supported. Empty means 1 is used as default.
    { S11 | S21 | GAINphase | CH1 | CH2 | Z | R | T } exactly the given options none Illegal parameter value The measurement to perform
    [optional] DEFault exactly the given options none Illegal parameter value If applied the input parameters (gain, attenuation, termination, ...) are ALWAYS set to the default values; otherwise the settings from the previous measurement will be kept.
    Syntax Response
    :CALCulate<ch>:PARameter<tr>:DEFine? { S11 | S21 | GAINphase | CH1 | CH2 | Z | R | T }
    Parameters accepted format description
    <ch> { 1 | empty } Currently only one channel is supported. Empty means 1 is used as default.
    <tr> { 1 | empty } Currently only one trace is supported. Empty means 1 is used as default.
    Response value description
    { S11 | S21 | GAINphase | CH1 | CH2 | Z | R | T } The measurement type.

    Options

    Options Description
    CH1 Absolute measurement on channel 1. (VRMS)
    CH2 Absolute measurement on channel 2. (VRMS)
    GAINphase Gain - phase measurement.
    R Absolute measurement on channel R (Ch1). (VRMS)
    S11 S11 measurement.
    S21 S21 measurement.
    T Absolute measurement on channel T (Ch2). (VRMS)
    Z Impedance measurement (Series Thru, Shunt Thru, Port 1 Reflection, External Coupler, External Bridge, Impedance Adapter and Voltage Current Gain as defined in: :SENSe:Z:METHod)

    Presets

    default value
    { S11 | S21 | GAINphase | CH1 | CH2 | Z | R | T } S11

    Sample usage

    Configure and start a S21 measurement.

    • 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(":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(':TRIG:SING\n')
    visaSession.query('*OPC?\n')
    frequencyValues = visaSession.query(':SENS:FREQ:DATA?\n')
    measurementValues = visaSession.query(':CALC:DATA:SDAT?\n')
    

    Related commands

    :CALCulate:PARameter:COUNt

    :CALCulate:PARameter:SELect

    :SENSe:FREQuency:STARt

    :SENSe:FREQuency:STOP

    Related commands in the Automation Interface

    CreateOnePortMeasurement()

    CreateShuntThruMeasurement()

    CreateSeriesThruMeasurement()

    CreateS11OnePortMeasurement()

    CreateS21Measurement()

    CreateGainMeasurement()

    Back to top Generated by DocFX