Programming
1283
On Error GoTo ErrHandler
Status = ivscanf(addr, "%t", res)
Query = Trim(res)
Exit Sub
ErrHandler:
MsgBox "*** Error : " & Error$
Call siclcleanup
End
End Sub
The procedure corresponding to receiving array data in communication is
EnterSiclLanArrayReal64, which uses the iread function of SICL to receive
array data in the IEEE 64-bit floating point binary transfer format and store
it into the output variable. The iread function takes the session
information output from the iopen function, the data to be output, the
number of data bytes, the condition to finish reading data, and the number
of data bytes actually read out as its parameters.
Syntax
Status = iread(addr,buf,bufsize,reason,actual)
Variable buf
Description Data to be output (output)
Data type Character string type
bufsize
Description The number of data bytes (input)
Data type Long integer type
reason
Description The condition to finish reading out data (input)
Data type Integer type