Session Members

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)

Session Class Constructors Methods Fields Properties See Also


The Session type exposes the following members.

Constructors

NameDescription
Session

Overloaded. Initializes a new instance of the Session object from the specified resource name.

Methods

NameDescription
CreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
DisableEvent Disables notification of the specified event type on the specified event-handling mechanism.
DiscardEvent Discards event occurrences for the specified event type and mechanism in a session.
Dispose

Overloaded. Releases all resources used by Session.

EnableEvent Enables notification of an event.
EqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Finalizes the instance of the Session class. (Overrides Object.Finalize().)
GetAttributeBoolean Provides direct read access to the NI-VISA driver-level attributes of Boolean data type.
GetAttributeByte Provides direct read access to the NI-VISA driver-level attributes of Byte data type.
GetAttributeInt16 Provides direct read access to the NI-VISA driver-level attributes of Int16 data type.
GetAttributeInt32 Provides direct read access to the NI-VISA driver-level attributes of Int32 data type.
GetAttributeInt64 Provides direct read access to the NI-VISA driver-level attributes of Int64 data type.
GetAttributeString Provides direct read access to the NI-VISA driver-level attributes of String data type.
GetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
GetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
GetTypeGets the Type of the current instance. (Inherited from Object.)
InitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
InstallCustomEventHandler Installs a handler for a nonstandard or new event type.
LockResource

Overloaded. Establishes an exclusive lock to the specified resource using the Timeout property.

MemberwiseClone

Overloaded. Creates a shallow copy of the current Object.

SetAttributeBoolean Provides direct write access to the NI-VISA driver-level attributes of Boolean data type.
SetAttributeByte Provides direct write access to the NI-VISA driver-level attributes of Byte data type.
SetAttributeInt16 Provides direct write access to the NI-VISA driver-level attributes of Int16 data type.
SetAttributeInt32 Provides direct write access to the NI-VISA driver-level attributes of Int32 data type.
SetAttributeInt64 Provides direct write access to the NI-VISA driver-level attributes of Int64 data type.
SetAttributeString Provides direct write access to the NI-VISA driver-level attributes of String data type.
ToString Overrides ToString. (Overrides Object.ToString().)
UninstallCustomEventHandler Uninstalls a handler for a nonstandard or new event type that was installed with InstallCustomEventHandler.
UnlockResource Relinquishes a lock for the specified resource.
WaitOnEvent

Overloaded. Waits infinitely long for an occurrence of the specified event for a session.

Fields

NameDescription
ImmediateTimeout Indicates that a timeout occurs immediately if the operation does not immediately succeed.
InfiniteTimeout Indicates that the operation never times out.

Properties

NameDescription
Handle Gets access to the NI-VISA driver session handle that NI-VISA driver operations use internally.
HardwareInterfaceName Gets human-readable text that describes the current hardware interface.
HardwareInterfaceNumber Gets the board number for the current hardware interface.
HardwareInterfaceType Gets the hardware interface type of this session.
LastStatus Gets the last NI-VISA driver status code that was received when this API called a NI-VISA driver method.
ResourceClass Gets the resource class (for example, "INSTR") as defined by the canonical resource name.
ResourceImplementationVersion Gets the resource version that uniquely identifies each revision or implementation of a resource.
ResourceLockState Gets the current locking state of the resource.
ResourceManufacturerID Gets a value that corresponds to the VXI manufacturer ID of the vendor that implemented the VISA library.
ResourceManufacturerName Gets a string that corresponds to the manufacturer name of the vendor that implemented the VISA library.
ResourceName Gets the unique identifier for a resource.
ResourceSpecificationVersion Gets the resource version that uniquely identifies the VISA specification version to which the implementation is compliant.
SynchronizeCallbacks Specifies how events and callback delegates are invoked.
SynchronizingObject Obsolete. Gets or sets the object that marshals event-handler and callback calls.
Timeout Gets or sets the minimum timeout value to use in milliseconds when accessing the device associated with the session.
VisaEventQueueLength Gets or sets the maximum number of events that can be queued at any time on the session.

See Also

Reference

Session Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful