Write-only

WriteUncertaintyFile Method


Description

Saves uncertainty data for the specified ports in three different formats.

VB Syntax

data = uncert.WriteUncertaintyFile ports, filename

Variable

(Type) - Description

data

(Variant) array to store the data.

uncert

An Uncertainty (object)

ports

(Variant Array) One dimensional array containing a list of port numbers for which data is requested.

filename

(string) - Path, filename, and suffix of location to store the uncertainty data, enclosed in quotes.  The suffix is not checked for accuracy.

  • (*.u*p) S-parameter Uncertainty File - If saving 2 ports, specify "filename.u2p"; If saving 4 ports, specify "filename.u4p.", and so forth.

  • (*.dsd) S-parameter Data Standard Definition file - Data for ONLY one or two ports is allowed.

  • (*.sdatcv) METAS S-parameter Covariance File.

Return Type

Not Applicable

Default

Not Applicable

Examples

'This VBScript example can be pasted into a notepad file and run on the PNA as a macro. Learn how.

Dim app As AgilentPNA835x.Application
Set app = CreateObject("AgilentPNA835x.Application", <analyzerName>)

Dim oUncert as Uncertainty
Set oUncert = app.ActiveMeasurement.Uncertainty

'List the port numbers for required data

ports = Array(1,2)

'specify where to save the data and data suffix

'remove comment for one of the following:

filename="C:/Program Files/Keysight/Network Analyzer/Documents/MyData.u2p"

'filename="C:/Program Files/Keysight/Network Analyzer/Documents/MyData.dsd"

'filename="C:/Program Files/Keysight/Network Analyzer/Documents/MyData.sdatcv"

OUncert.WriteUncertaintyFile ports,filename

 

C++ Syntax

HRESULT WriteUncertaintyFile(VARIANT portsToMeasure,BSTR filename);

Interface

IUncertainty


Last modified:

17-November-2014

New topic