Keysight VISA.NET Help
UsbSession Class Members
Properties  Methods  Events


The following tables list the members exposed by UsbSession.

Public Constructors
 NameDescription
Public ConstructorUsbSession ConstructorOverloaded.   
Top
Public Properties
 NameDescription
Public PropertyEventQueueCapacity The maximum number of events that can be queued at any time on this session. The default is 50. (Inherited from Keysight.Visa.VisaSession)
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. (Inherited from Keysight.Visa.VisaSession)
Public PropertyFormattedIO A reference to the Formatted I/O interface. Keysight VISA.NET uses the standard Formatted I/O implementation provided by the IVI Foundation in the VISA.NET Shared Components. (Inherited from Keysight.Visa.MessageBasedSession)
Public PropertyHardwareInterfaceName A human-readable description of the hardware interface associated with this session. (Inherited from Keysight.Visa.VisaSession)
Public PropertyHardwareInterfaceNumber The board number of the hardware interface associated with this session. (Inherited from Keysight.Visa.VisaSession)
Public PropertyHardwareInterfaceType The type (GPIB, ASRL, etc.) of the hardware interface associated with this session. (Inherited from Keysight.Visa.VisaSession)
Public PropertyInternalHandle The VISA C handle to the underlying VISA C session. (Inherited from Keysight.Visa.VisaSession)
Public PropertyIOProtocol The protocol type for I/O communication with the device. This property applies to this session only (VISA local scope). (Inherited from Keysight.Visa.MessageBasedSession)
Public PropertyIs4882Compliant If true, the device is IEEE 488.2 compliant.  
Public PropertyManufacturerId The USB vendor identification number of the hardware vendor for this device.  
Public PropertyManufacturerName The name of the hardware vendor that corresponds to the ManufacturerId property.  
Public PropertyMaximumInterruptSize Specifies the maximum number of bytes that this USB device will send on the interrupt IN pipe.  
Public PropertyModelCode The vendor-specific model number for this USB device.  
Public PropertyModelName The name of this device (corresponds to the ModelCode property).  
Public PropertyRawIO A reference to the raw (no formatting) I/O interface. (Inherited from Keysight.Visa.MessageBasedSession)
Public PropertyResourceClass The resource class of the currently open resource. Possible values are INSTR, INTFC, MEMMAC, SOCKET, and BACKPLANE. (Inherited from Keysight.Visa.VisaSession)
Public PropertyResourceImplementationVersion The version of this Keysight VISA.NET implementation. (Inherited from Keysight.Visa.VisaSession)
Public PropertyResourceLockState The state of the resource-wide lock on the currently open resource. (Inherited from Keysight.Visa.VisaSession)
Public PropertyResourceManagerA private instance of the ResourceManager created when this session was instantiated, and available until this session is disposed. (Inherited from Keysight.Visa.VisaSession)
Public PropertyResourceManufacturerId The VXI manufacturer ID of the software vendor of this VISA.NET implementation - '4095'. (Inherited from Keysight.Visa.VisaSession)
Public PropertyResourceManufacturerName The name of the software vendor that corresponds to the ResourceManufacturerId property - 'Keysight Technologies, Inc.'. (Inherited from Keysight.Visa.VisaSession)
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. (Inherited from Keysight.Visa.VisaSession)
Public PropertyResourceSpecificationVersion The version of the VISA.NET specification that describes the functionality provided by this session class. (Inherited from Keysight.Visa.VisaSession)
Public PropertySendEndEnabled Enables/disables sending the END signal on the last byte of a write. This property applies to this session only (VISA local scope). (Inherited from Keysight.Visa.MessageBasedSession)
Public PropertySessionType The type of the current session. (Inherited from Keysight.Visa.VisaSession)
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). (Inherited from Keysight.Visa.VisaSession)
Public PropertyTerminationCharacterThe ASCII character used to end reading. This property applies to this session only (VISA local scope). (Inherited from Keysight.Visa.MessageBasedSession)
Public PropertyTerminationCharacterEnabledIf true, read operations end when a termination character is received. This property applies to this session only (VISA local scope). (Inherited from Keysight.Visa.MessageBasedSession)
Public PropertyTimeoutMilliseconds The I/O timeout in milliseconds for I/O communication on this resource session. (Inherited from Keysight.Visa.VisaSession)
Public PropertyUsbInterfaceNumber The USB interface number of the interface to which the USB device is connected.  
Public PropertyUsbProtocol The USB protocol number.  
Public PropertyUsbSerialNumber The serial number of the USB device.  
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). (Inherited from Keysight.Visa.VisaSession)
Top
Public Methods
 NameDescription
Public MethodAssertTrigger Asserts a software or hardware trigger, depending on the default trigger protocol for the session type. (Inherited from Keysight.Visa.MessageBasedSession)
Public MethodClear Performs an IEEE 488.1-style clear of the device and clears the input and output buffer (both raw and formatted I/O buffers). It also may terminate ending operations on the device. (Inherited from Keysight.Visa.MessageBasedSession)
Public MethodControlIn Requests arbitrary data from a USB device on the default control port.  
Public MethodControlOutOverloaded.  Sends arbitrary data to a USB device on the default control port.  
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). (Inherited from Keysight.Visa.VisaSession)
Public MethodDiscardEventsDiscards events of the type specified by the eventType argument from the queue for that event type. (Inherited from Keysight.Visa.VisaSession)
Public MethodDisposeOverloaded.  Performs tasks associated with freeing, releasing, or resetting unmanaged VISA resources used by this session. (Inherited from Keysight.Visa.VisaSession)
Public MethodEnableEventEnables a calling program's ability to receive events of the type specified by the eventType argument using a WaitOnEvent method. (Inherited from Keysight.Visa.VisaSession)
Public MethodLockResourceOverloaded.  Acquires a lock on the resource for this session. (Inherited from Keysight.Visa.VisaSession)
Public MethodReadStatusByte Reads the status from the device. For 488.2 instruments, this is the 488.2 status byte. (Inherited from Keysight.Visa.MessageBasedSession)
Public MethodSendRemoteLocalCommand Controls the state of the USB REN interface line and, optionally, the remote/local state of the device.  
Public MethodUnlockResource Unlocks the resource. (Inherited from Keysight.Visa.VisaSession)
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. (Inherited from Keysight.Visa.VisaSession)
Top
Protected Methods
 NameDescription
Protected MethodFinalize Performs tasks associated with freeing, releasing, or resetting unmanaged VISA resources used by this session. (Inherited from Keysight.Visa.VisaSession)
Top
Public Events
 NameDescription
Public EventInterrupt Occurs when a vendor-specific USB interrupt is received from the device.  
Public EventServiceRequest Occurs when a service request is received from the device. (Inherited from Keysight.Visa.MessageBasedSession)
Top
See Also

Reference

UsbSession Class
Keysight.Visa Namespace

 

 


© Keysight Technologies 2015-2025