RFmx Instr DotNET

Table of Contents

RFmxInstrMX.GetSessionFromNIRfsaHandle Method

  • Updated2024-07-17
  • 2 minute(s) read
RFmxInstrMX.GetSessionFromNIRfsaHandle Method

RFmxInstrMXGetSessionFromNIRfsaHandle Method

Gets a session, if it exists for given NIRfsa instrument handle; else, returns a new one.
Note  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.


Namespace: NationalInstruments.RFmx.InstrMX
Assembly: NationalInstruments.RFmx.InstrMX.Fx40 (in NationalInstruments.RFmx.InstrMX.Fx40.dll) Version: 24.5.0.49285 (24.5.0.49285)

Syntax

public static RFmxInstrMX GetSessionFromNIRfsaHandle(
	IntPtr niRfsaHandle
)
Public Shared Function GetSessionFromNIRfsaHandle ( 
	niRfsaHandle As IntPtr
) As RFmxInstrMX

Parameters

niRfsaHandle  IntPtr
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.

Return Value

RFmxInstrMX
Returns an object of type RFmxInstrMX.

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.

See Also

Log in to get a better experience