Keysight VISA.NET Help
PxiBackplaneSession Constructor(String,AccessModes,Int32)



The descriptor of the resource to which this class will be connected.
The modes by which the resource is to be accessed. ExclusiveLock is used to acquire an exclusive lock immediately upon opening a session. LoadConfig is used to configure attributes to values specified by some external configuration utility. The default in None.
If the accessMode parameter requests an exclusive lock, this parameter specifies the absolute time period (in milliseconds) that the constructor waits for a locked resource to be unlocked before throwing an exception; otherwise, this parameter is ignored. If the value is VisaConstants.ImmediateTimeout (0), operations will never wait for the lock. If the timeout is VisaConstants.InfiniteTimeout (-1), the attempt to wait for the lock will never time out. Negative values other than -1 are treated as unsigned values in the range between Int32.MaxValue and UInt32.MaxValue.
Performs the operations necessary to instantiate a PxiBackplaneSession class.
Syntax
'Declaration
 
Public Function New( _
   ByVal resourceName As String, _
   ByVal accessModes As AccessModes, _
   ByVal timeoutMilliseconds As Integer _
)
'Usage
 
Dim resourceName As String
Dim accessModes As AccessModes
Dim timeoutMilliseconds As Integer
 
Dim instance As New PxiBackplaneSession(resourceName, accessModes, timeoutMilliseconds)

Parameters

resourceName
The descriptor of the resource to which this class will be connected.
accessModes
The modes by which the resource is to be accessed. ExclusiveLock is used to acquire an exclusive lock immediately upon opening a session. LoadConfig is used to configure attributes to values specified by some external configuration utility. The default in None.
timeoutMilliseconds
If the accessMode parameter requests an exclusive lock, this parameter specifies the absolute time period (in milliseconds) that the constructor waits for a locked resource to be unlocked before throwing an exception; otherwise, this parameter is ignored. If the value is VisaConstants.ImmediateTimeout (0), operations will never wait for the lock. If the timeout is VisaConstants.InfiniteTimeout (-1), the attempt to wait for the lock will never time out. Negative values other than -1 are treated as unsigned values in the range between Int32.MaxValue and UInt32.MaxValue.
Remarks

This constructor attempts to open a connection to the specified resource with the specified access modes and timeout.

Some Keysight IO Libraries Connection Expert settings and Keysight Instrument Discovery Service policies affect the operation of this constructor. Refer to IO Libraries Suite Help for more details.

For instruments that are auto-discovered by the Discovery Service, the constructor verifies that the instrument is present.

For instruments that are manually added, Open does not verify the presence of the instrument. If the device is not present or not turned on, you will not discover this until you attempt to communicate with the instrument.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025