|Download Help (Windows Only)|
Handles the end of an asynchronous read and returns the ASCII-encoded read string.
Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version: 184.108.40.206
|Visual Basic (Declaration)|
Public Function EndReadString ( _ asyncResult As IAsyncResult _ ) As String
public string EndReadString( IAsyncResult asyncResult )
A string that contains the read data.
|VisaException||The NI-VISA driver returned an error as a result of calling this method.|
asyncResult has already ended.
asyncResult is not a read.
asyncResult did not originate from VisaNS.
|ArgumentNullException||asyncResult is null (Nothing in Visual Basic).|
|DllNotFoundException||The NI-VISA driver library cannot be found.|
|EntryPointNotFoundException||A required operation in the NI-VISA driver library cannot be found.|
|ObjectDisposedException||This member is called after the Dispose method is called directly from code or indirectly through a finalizer.|
|Note: In order to free resources associated with the read, you must always call EndReadByteArray after you call BeginRead, whether in the callback given to BeginRead or in the same thread of execution where BeginRead was called.or|