Creating a Session

NI-RFmx TDSCDMA 2.5 Help

Edition Date: June 2018

Part Number: 375760F-01

»View Product Info
Download Help (Windows Only)

NI-RFmx exposes a constructor and two static methods to create a session. Use either the constructor or one of the methods to create a session. You must invoke the constructor only once per resource name, whereas you can call the static method GetSession any number of times on the same resource name. The GetSession method returns the same session if the session exists for a given resource name.

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

C#

RFmxInstrMX instrSession1 = new RFmxInstrMX("Rfsa", "");
RFmxInstrMX instrSession2 = RFmxInstrMX.GetSession("Rfsa", string.Empty);
bool isNewSession;
RFmxInstrMX instrSession3 = RFmxInstrMX.GetSession("Rfsa", string.Empty, out isNewSession);

VB

Dim instrSession1 As RFmxInstrMX = New RFmxInstrMX("Rfsa", "")
Dim instrSession2 As RFmxInstrMX = RFmxInstrMX.GetSession("Rfsa", String.Empty)
Dim isNewSession As Boolean
Dim instrSession3 As RFmxInstrMX = RFmxInstrMX.GetSession("Rfsa", String.Empty, isNewSession)

WAS THIS ARTICLE HELPFUL?

Not Helpful