Loads calset from a calset file (*.ncst), either to the default calset of the specified signal or to a named calset accessible across all signals.

Syntax

Namespace: NationalInstruments.RFmx.VnaMX

public int CalsetLoadFromFile(string selectorString, string calsetName, string calsetFilePath)

Remarks

Behaviors for different combinations of Calset Name and Signal Name strings are as follows:
  • Calset Name is "" (empty string): RFmx loads calset from file to the default calset of the signal instance specified in the Selector String and selects the default calset as active calset for the signal. If you do not specify a Signal Name, then default RFmxVNA signal instance is used.

  • Calset Name is non-empty string: If you do not specify a Signal Name, then RFmx loads calset from file to a named calset. RFmx returns an error if you specify both Calset Name and Signal Name as non-empty strings.


This method will overwrite the contents of the calset if it already exists.

Parameters

NameTypeDescription
selectorStringstring

Pass an empty string. The signal name that is passed when creating the signal configuration is used.

calsetNamestring

Specifies the name of the calset.

calsetFilePathstring

Specifies the complete path to the file with .ncst extension from which the calset is to be loaded.

Returns

Returns the status code of this method. The status code either indicates success or describes a warning condition.