Data Header Variables

The VSA can save trace data or recordings to a file for later recall into the VSA or for sharing with another program such as MATLAB or Excel. Saved recordings and trace data are very similar in that they can be saved to mostly the same file formats and they can both be recalled into the VSA as either a recording or as a trace (with some exceptions).

You can also read Trace Data Header variables using the .NET API 1) Access Preamble Indicator, or 2) Application Programming Interface. To do this, you will need to get access to the MeasurementData object for the Trace that contains the data you want to read (through the Trace.MeasurementData property).

For example, to read the trace title Data Header, here is the syntax you might use:

string title = app.Display.Traces[0].MeasurementData.State["TrcTtl"];

The main difference between saved trace data and recordings is that while recordings can contain only time waveform data, traces can also contain symbol data, summary data, etc. Another difference is that saved trace data contains information about how the data was shown in the trace.

When you save a trace or recording, the VSA adds a data header to the file. The data header contains a list of key-value pairs that describe the measurement data. These key-value pairs provide information about how the VSA was set up for the measurement (for example, input range, number of averages, window type). Other key-value pairs provide information about the measurement data itself (for example, if overloads occurred). The T_ variables provide information about how the data was shown in a trace.

When you save a trace and want to recall it again with the same appearance as when it was saved, you must save the trace with the data header.

The measurement data is denoted by the following data headers:

For real data (baseband), there is one value per line. For complex data (zoom), there are two values per line, the first being the real value and the second being the imaginary value of the data point.

To recall a recording, there are two key variables that should be in the data header: one of the Y headers listed above and XDelta (delta time, default of 1.0).

Other useful variables include XStart (Trigger Delay, default of 0.0), InputRange (used for default scaling, default of 0.0), InputRefImped (used for watts/dBm deciBels referenced to a milliWatt: dB relative to 1 milliwatt dissipated in the nominal input impedance of the analyzer units, default is 50 ohms), FreqValidMin and FreqValidMax (default is no frequency blanking).

For Zoom recordings, two additional variables that should be included are InputCenter and InputZoom.

Recording data header variables

FreqValidMax

FreqValidMin

InputCenter

InputRange

InputRange1

InputRange2

InputRange3

InputRange4

InputRefImped

InputZoom

SegCount, SegCountN

SegmentOffsets, SegmentOffsetsN

SegmensStart, SegmentStartN

SegVersion

Timestamp

TimestampSource

TimeString

TimeUtcString

XStart

XDelta

XDomain

XUnit

Y - single channel

Y1, Y2 - two channels

Y1_m, Y2_m, ..., Yn_m - m channels

YScale - Only for N5106A/N5110A files

YUnit

Trace data header variables

The data header may contain any of the following variables. The variables stored in the data header depend on the type of data contained in the trace.

The T_ variables provide information about how the trace display was set up to view the measurement results.

AliasedData

AnDemodCarrierFreq

AverageType

Avg2DCount

Avg2DType

ChannelNum

Connect

CurrentNumAverages

DataBitOrder

DataIgnore

DataOverload

DataQuestionable

DataRealTime

DataValid

DataXferFunc

Demod3GActBaseClass

Demod3GActChans

Demod3GCDComposite

Demod3GChanErrInfo

Demod3GChipRate

Demod3GCodeOrder

Demod3GCompErrInfo

DemodAttrib

DemodBaudRate

DemodBitsPerSymbol

DemodDSSSChipRate

DemodErrors

DemodErrTbl

DemodLTECodeLength

DemodLTENoVerticalLine

DemodLTEPolarCoordShifted

DemodLTERBSlotTraces

DemodLTERBSlTraces

DemodLTEXAxisSubframeTraces

DemodModStatus

DemodOFDMErrInfo

DemodOFDMSubcarDelt

DemodOFDMSubcarStrt

DemodOFDMSubcarType

DemodOutputPtsPerSymbol

DemodSlotStartIndex

DemodStatePos

DemodSymbolRate

DemodSymStat

DemodSyncLength

DemodSyncOffset

DemodSyncPilotPos

DemodType

FreqValidMax

FreqValidMin

Graph

GraphDelay

GraphEvm

GraphGain

GraphPoly

GraphPolyScaleFactor

GraphRespPower

GraphStimPower

IdxInLogicalChan

InputBlockSize

InputCenter

InputConnector

InputImpedance

InputMixerLevel

InputRange

InputRange1

InputRange2

InputRange3

InputRange4

InputRefImped

InputSpan

InputZoom

IQ

Lim*Connect

Lim*Display

Lim*Draw

Lim*Enable

Lim*Fail

Lim*Name

Lim*TstLimCount

Lim*X

Lim*XDomain

Lim*XRef

Lim*Y

Lim*YFormat

Lim*YMargin

Lim*YRef

Lim*YRefTrace

Lim*YRefUser

Lim*YSide

Lim*YUnit

LogicalChanNum

MathAttrib

OverlapAverageMaxPercentage

PdfRangeError

PdfRmsLevel

PdfUnit

PowerData

ResBW

S_TimeSec

SegCapture

SegCount, SegCountN

SegmentOffsets, SegmentOffsetsN

SegmensStart, SegmentStartN

SegmentStart

SegmentXDelta

SegmentXUnit

SweepOverload 

SwpTime 

T_Aperture

T_DemodCodeOrder

T_DemodFreqUnit

T_DemodShow2DAvgLine

T_DemodStateShape

T_DemodStateSize

T_DemodSymbolShape

T_DemodTblBitOrder

T_DemodTblFormat

T_DemodTimeUnit

T_PhsOffset

T_TrigRefLineVis

T_UnwrapRef

T_VectXCtr

T_XAxisCoordinate

T_XAxisLeft

T_XAxisRefPos

T_XEyeLength

T_XLeft

T_XLog

T_XRight

T_XScaleAuto

T_YAxisCoordinate

T_YBottom

T_YCoordinate

T_YRefPos

T_YRefTrackRange

T_YRefVisible

T_YTop

T_YUnit

TestPass

TimeSec

Timestamp

TimestampSource

TimeString

TimeUtcString

TotalPdfPoints

TrcLedBits

TrcLedBold

TrcLedReason

TrcLedStr

TrcTtl

TriggerChannel

TriggerDelay

TriggerIQ

TriggerLevel

TriggerType

TstLimCount

TstLim*Display

TstLim*Draw

TstLim*Fail

TstLim*Name

TstLim*Reason

TstLim*Result

TstLim*ResultPoints

TstLim*X

TstLim*XDelta

TstLim*XStart

TstLim*Y

TstLim*YSide

TS_ColorCount

TS_ColorMap

TS_Enhance

TS_First

TS_FirstAuto

TS_Height

TS_HeightAuto

TS_SumDataEncoded

TS_SumDataHeight

TS_SumDataWidth

TS_SumScaleBottom

TS_SumScaleLeft

TS_SumScaleRight

TS_SumScaleTop

TS_Threshold

TS_Visible

WindowApplied

WindowType

XCenterHackDisable

XDelta

XDomain

XGapStart

XGapWidth

XOffset

XPtsPerSymbol

XSegmentDelta

XSegmentDomain

XSegmentDraw

XSegmentLen

XSegmentNames

XSegmentOffset

XSegmentStart

XSegmentUnit

XStart

XUnit

XValidMax

XValidMin

Y

Y1

Y2

YImagName

YImagUnit

YName

Yn_m

YScale

YUnit

YUnitRelCarrier

ZeroPadding

Segmented Recordings

To recall a segmented recording, there are two key variables that should be in the data header: one of the Y headers listed above and XDelta (delta time, default of 1.0)

Other useful variables include XStart (Trigger Delay, default of 0.0), InputRange (used for default scaling, default of 0.0), InputRefImped (used for watts/dBm units, default is 50 ohms), FreqValidMin and FreqValidMax (default is no frequency blanking).

For Zoom recordings, two additional variables that should be included are InputCenter and InputZoom.