Gets a session, if it exists for given resource name; else, returns a new one.

Syntax

Namespace: NationalInstruments.RFmx.InstrMX

public static RFmxInstrMX GetSession(string resourceName, string optionString, out bool isNewSession)

Parameters

NameTypeDescription
resourceNamestring

Specifies the resource name of the device to initialize.

optionStringstring

Sets the initial value of certain properties for the session.The following attributes are used in this parameter: RFmxSetup,Simulate,AnalysisOnly. To simulate a device using the NI 5622 (25 MHz) digitizer, set the Digitizer field to 5622_25MHz_DDC and the Simulate field to 1 You can set the Digitizerfield to 5622_25MHz_DDC only when using the NI 5665. To use AnalysisOnly mode, specify the string as "AnalysisOnly=1". In this mode, user is responsible for waveform acquisition and RFmx driver will perform analysis on user specified IQ waveform or Spectrum. Use personality specific Analyze functions to perform measurements. To set multiple attributes, separate their assignments with a comma.

isNewSessionout bool

True if new session is created; otherwise False.

Returns

Returns an object of type RFmxInstrMX.