:CALCulate[:SELected]:DATA:SDATa
Description
Gets the formatted result data. The data type can be specified with :CALCulate:PARameter:DEFine and :CALCulate:[:SELected]:FORMat.
Important
You need to perform a measurement first.
Otherwise, no result data is available. If you have NOT performed a measurement before calling this command
a Query error
is added to the Error Event Queue and NO result will be returned resulting in a query timeout. Remember that after calling :CALCulate:PARameter:DEFine all previously calculated data is discarded.
Important
Not all setting combinations are valid. If an invalid combination of measurement parameter, z parameter and
data format is found a Settings conflict
error is added to the Error Event Queue and NO result will be returned resulting in a query timeout.
E.g. there is no option to get the PHASE
of a serial Capacitance (Cs
).
Syntax | Response | possible Errors |
---|---|---|
:CALCulate<ch>[:SELected]:DATA:SDATa? |
<numeric array 1 >,<numeric array 2 > |
Settings conflict , Query error |
Parameters | accepted format | description |
---|---|---|
<ch > |
{ 1 | empty } |
Currently only one channel is supported. Empty means 1 is used as default. |
Response value | description |
---|---|
<numeric array 1 > |
list of primary measurement data separated by a comma (, ) (the amount of elements is equal to the number of points set by :SENSe:SWEep:POINts) |
<numeric array 2 > |
list of secondary measurement data separated by a comma (, ) (the amount of elements is equal to the number of points set by :SENSe:SWEep:POINts) (e.g. imaginary part in Smith Chart) - 0 ,0 , ... ,0 if not needed by the given settings |
Result format
:CALC:PAR:DEF | :CALC:SEL:ZPAR:DEF | Result format |
---|---|---|
CH1 (R ) |
- | VRMS for channel 1 as defined in :CALC:PAR:DEF |
CH2 (T ) |
- | VRMS for channel 2 as defined in :CALC:PAR:DEF |
S11 |
- | Reflection, represented as defined in :CALC:SEL:FORM |
GAINphase |
- | Transmission, represented as defined in :CALC:SEL:FORM |
S21 |
- | Transmission, represented as defined in :CALC:SEL:FORM |
Z |
Z |
Impedance, represented as defined in :CALC:SEL:FORM |
Z |
Y |
Admittance, represented as defined in :CALC:SEL:FORM |
Z |
Cp |
Cp as defined in :CALC:SEL:ZPAR:DEF |
Z |
Cs |
Cs as defined in :CALC:SEL:ZPAR:DEF |
Z |
Lp |
Lp as defined in :CALC:SEL:ZPAR:DEF |
Z |
Ls |
Ls as defined in :CALC:SEL:ZPAR:DEF |
Z |
Rp |
Rp as defined in :CALC:SEL:ZPAR:DEF |
Z |
Rs |
Rs as defined in :CALC:SEL:ZPAR:DEF |
Z |
Q |
Q as defined in :CALC:SEL:ZPAR:DEF |
Z |
QTg |
QTg as defined in :CALC:SEL:ZPAR:DEF |
Z |
D |
D as defined in :CALC:SEL:ZPAR:DEF |
Sample usage
Configure and start an S21
measurement.
var visaSession = new TcpipSocket(VISA_RESOURCENAME); visaSession.RawIO.Write(":TRIG:SOUR BUS\n"); visaSession.RawIO.Write(":SENS:FREQ:STAR 5kHz;STOP 50kHz\n"); visaSession.RawIO.Write(":CALC:PAR:DEF S21\n"); visaSession.RawIO.Write(":INIT\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();