Keysight VISA.NET Help
VisaSession Class Members
Properties  Methods 


The following tables list the members exposed by VisaSession.

Public Properties
 NameDescription
Public PropertyEventQueueCapacity The maximum number of events that can be queued at any time on this session. The default is 50.  
Public PropertyExportEnabledTogether with the Keysight ResourceManager.FindExportedResourcesOnly property, determines whether the resource associated with this session instance is reported by the Keysight Find and Parse methods.  
Public PropertyHardwareInterfaceName A human-readable description of the hardware interface associated with this session.  
Public PropertyHardwareInterfaceNumber The board number of the hardware interface associated with this session.  
Public PropertyHardwareInterfaceType The type (GPIB, ASRL, etc.) of the hardware interface associated with this session.  
Public PropertyInternalHandle The VISA C handle to the underlying VISA C session.  
Public PropertyResourceClass The resource class of the currently open resource. Possible values are INSTR, INTFC, MEMMAC, SOCKET, and BACKPLANE.  
Public PropertyResourceImplementationVersion The version of this Keysight VISA.NET implementation.  
Public PropertyResourceLockState The state of the resource-wide lock on the currently open resource.  
Public PropertyResourceManagerA private instance of the ResourceManager created when this session was instantiated, and available until this session is disposed.  
Public PropertyResourceManufacturerId The VXI manufacturer ID of the software vendor of this VISA.NET implementation - '4095'.  
Public PropertyResourceManufacturerName The name of the software vendor that corresponds to the ResourceManufacturerId property - 'Keysight Technologies, Inc.'.  
Public PropertyResourceName The VISA resource name of the currently open resource. This name is the canonical version of the resource name and therefore may vary from the resourceName parameter used to instantiate the session.  
Public PropertyResourceSpecificationVersion The version of the VISA.NET specification that describes the functionality provided by this session class.  
Public PropertySessionType The type of the current session.  
Public PropertySynchronizeCallbacks Specifies whether callbacks must be performed in a specific synchronization context. If false, the implementation is allowed to execute callbacks in any context. The default value is true. This property applies to this session only (local scope).  
Public PropertyTimeoutMilliseconds The I/O timeout in milliseconds for I/O communication on this resource session.  
Public PropertyWaitForLockRelease Indicates whether methods and properties from this session instance will wait for a timeout period for a resource lock to be released (true) or not (false).  
Top
Public Methods
 NameDescription
Public MethodDisableEventDisables a calling program's ability to receive events of the type specified by the eventType argument using a VisaSession.WaitOnEvent method (any overload).  
Public MethodDiscardEventsDiscards events of the type specified by the eventType argument from the queue for that event type.  
Public MethodDisposeOverloaded.  Performs tasks associated with freeing, releasing, or resetting unmanaged VISA resources used by this session.  
Public MethodEnableEventEnables a calling program's ability to receive events of the type specified by the eventType argument using a WaitOnEvent method.  
Public MethodLockResourceOverloaded.  Acquires a lock on the resource for this session.  
Public MethodUnlockResource Unlocks the resource.  
Public MethodWaitOnEventOverloaded.  Waits for an occurrence of the specified event for this session. In particular, WaitOnEvent suspends execution of the thread on which it is called and waits for the specified event indefinitely.  
Top
Protected Methods
 NameDescription
Protected MethodFinalize Performs tasks associated with freeing, releasing, or resetting unmanaged VISA resources used by this session.  
Top
See Also

Reference

VisaSession Class
Keysight.Visa Namespace

 

 


© Keysight Technologies 2015-2025