GetSession(string, string, out bool)
- Updated2025-10-13
- 1 minute(s) read
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
| Name | Type | Description |
|---|---|---|
| resourceName | string | Specifies the resource name of the device to initialize. |
| optionString | string | 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. |
| isNewSession | out bool |
Returns
Returns an object of type RFmxInstrMX.