Write-only
About User Preset

UserPresetLoadFile Method


Description

Loads an existing instrument state file (.sta or .cst) to be used for User Preset. Subsequent execution of app.UserPreset will cause the PNA to assume this instrument state.

Regardless of the state of the User Preset Enable checkbox, the app.Preset command will always preset the PNA to the factory preset settings, and app.UserPreset will always perform a User Preset.

 VB Syntax

app.UserPresetLoadFile (file)

Variable

(Type) - Description

app

An Application (object)

file

(String)  Full path, name, and extension of the file to be loaded.

Return Type

Not Applicable

Default

Not Applicable

Examples

app.UserPresetLoadFile ("C:/Program Files/Keysight/Network Analyzer/Documents/10MHzto20GHz.sta")

C++ Syntax

HRESULT UserPresetLoadFile (BSTR bstrFile)

Interface

IApplication6