Gets a session, if it exists for given set of NIRfsa instrument handle; else, returns a new one.

Note

1. Do not close the NI-RFSA driver session before calling RFmx close. Closing the NI-RFSA driver session before closing RFmx session would lead to unpredictable behavior.
2. Closing the RFmx session will not close the NI-RFSA driver session.

Syntax

Namespace: NationalInstruments.RFmx.InstrMX

public static RFmxInstrMX GetSessionFromNIRfsaHandles(IntPtr[] niRfsaHandles)

Remarks

Ensure to keep the NIRfsa .NET object that encapsulates the niRfsaHandle used to get the RFmxInstr .NET object from this function alive while using the RFmxInstrMX .NET object. In case the NIRfsa .NET object that encapsulates the niRfsaHandle used to get the RFmxInstr .NET object from this function is disposed or closed the corresponding RFmxInstrMX .NET object will stop working.

Parameters

NameTypeDescription
niRfsaHandlesIntPtr[]

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.

Returns

Returns an object of type RFmxInstrMX.