Keysight VISA.NET Help
LockResource(TimeSpan) Method



The timeout period for obtaining the lock. If the timeout is TimeSpan.Zero, the operation will not block. If the timeout is TimeSpan.MaxValue, the operation will not timeout.
Locks the resource for this session with an exclusive lock, with the specified timeput period.
Syntax
'Declaration
 
Overloads Sub LockResource( _
   ByVal timeout As TimeSpan _
) 
'Usage
 
Dim instance As IVisaSession
Dim timeout As TimeSpan
 
instance.LockResource(timeout)
void LockResource( 
   TimeSpan timeout
)
void LockResource( 
   TimeSpan timeout
) 

Parameters

timeout
The timeout period for obtaining the lock. If the timeout is TimeSpan.Zero, the operation will not block. If the timeout is TimeSpan.MaxValue, the operation will not timeout.
Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025