Keysight VISA.NET Help
BeginRead(Int32,VisaAsyncCallback,Object) Method



The maximum number of bytes to read.
The method to call when the operation is complete.
Information about the state of this particular asynchronous operation that is attached to the Async Results.

A reference to an object that contains arbitrary information of interest to the calling program, and related to the asynchronous operation. This allows the asynchronous operation to provide the reference back to the calling program (as context) when the operation is complete. This is particularly useful when callbacks are used. Note that the object is not used by the asynchronous operation.
Read count bytes asynchronously and store them in the Async Results Buffer/>. When done, notify the calling program via the callback provided.
Syntax
'Declaration
 
Overloads Function BeginRead( _
   ByVal count As Integer, _
   ByVal callback As VisaAsyncCallback, _
   ByVal state As Object _
) As IVisaAsyncResult
'Usage
 
Dim instance As IMessageBasedRawIO
Dim count As Integer
Dim callback As VisaAsyncCallback
Dim state As Object
Dim value As IVisaAsyncResult
 
value = instance.BeginRead(count, callback, state)

Parameters

count
The maximum number of bytes to read.
callback
The method to call when the operation is complete.
state
Information about the state of this particular asynchronous operation that is attached to the Async Results.

A reference to an object that contains arbitrary information of interest to the calling program, and related to the asynchronous operation. This allows the asynchronous operation to provide the reference back to the calling program (as context) when the operation is complete. This is particularly useful when callbacks are used. Note that the object is not used by the asynchronous operation.

Return Value

Information about the progress and results of the asynchronous operation that is specific to, and identifies, that particular operation.
Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025