RegisterBasedSession 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 the register-based functionality, such as moving data in and out, available in VISA.

Namespace: NationalInstruments.VisaNS

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

Syntax

Visual Basic (Declaration)
Public Class RegisterBasedSession _
	Inherits Session _
	Implements IRegisterBasedSession

C#
public class RegisterBasedSession : Session, 
	IRegisterBasedSession

Remarks

This class provides access to the register-based functionality, such as moving data in and out, that is available in VISA. This class can be instantiated directly, but it is recommended that you use the Open method to instantiate sessions. Instantiating sessions this way gives you functionality specific to the resource type that you are using, but keeps the rest of your code generic. Refer to Open for more information.
Note: In the .NET interface to NI-VISA, a VISA session is opened when Session or one of its subclasses is instantiated. A VISA session is closed when Session or one of its subclasses is disposed by calling the Dispose method. Ensure that the Dispose method is called when you are finished with Session.

Inheritance Hierarchy

System.Object
    System.MarshalByRefObject
        NationalInstruments.VisaNS.Session
            NationalInstruments.VisaNS.RegisterBasedSession
                NationalInstruments.VisaNS.FirewireSession
                NationalInstruments.VisaNS.PxiMemory
                NationalInstruments.VisaNS.PxiSession
                NationalInstruments.VisaNS.VxiMemory

Thread Safety

All members of this type are safe for multithreaded operations.

See Also

Reference

RegisterBasedSession Members

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful