SerialSession Class

NI-VisaNS .NET Class Library Help for Visual Studio 2010

Edition Date: August 2012

Part Number: 370627F-01

»View Product Info
Download Help (Windows Only)

Members See Also

Provides access to serial functionality available in VISA.

Namespace: NationalInstruments.VisaNS

Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version:


Visual Basic (Declaration)
Public Class SerialSession _
	Inherits MessageBasedSession

public class SerialSession : MessageBasedSession


Use SerialSession when you are opening a VISA session to a Serial INSTR resource type and need specific serial functionality that is unavailable in RegisterBasedSession. For code interchangeability purposes, avoid instantiating this class directly. Instead, use the Open method. To open a session with the ability to configure attributes to values specified by an external configuration utility, such as National Instruments Measurement & Automation Explorer (MAX), set the access mode to LoadConfig.
Note: In the .NET interface to NI-VISA, a VISA session opens when Session or one of its subclasses is instantiated. A VISA session closes when Session or one of its subclasses is disposed by calling the Dispose method. Ensure that you call Dispose when you are finished with a session.

Inheritance Hierarchy


Thread Safety

All members of this type are safe for multithreaded operations.

See Also


SerialSession Members

NationalInstruments.VisaNS Namespace


Not Helpful