User`s guide

Table Of Contents
Chapter 12 181
Sample Application Programs
Controlling Using SICL-LAN Server
12. Sample Application
Programs
ErrHandler:
MsgBox "*** Error : " & Error$
Call siclcleanup
End
End Sub
The procedure corresponding to receiving array data in communication is
EnterSiclLanArrayReal64 (Example 12-5). EnterSiclLanArrayReal64 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 outputted from the iopen function, data to be outputted, 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
For information on the variable (Status) and the variable (addr), refer to Table 12-1,
“Variable (Status),” on page 179 and Table 12-2, “Variable (addr),” on page 179,
respectively.
Each functional part of EnterSiclLanArrayReal64 is described below.
(1) retrieves the data header.
(2) stores the number of data bytes into the size variable in the header part.
(3) retrieves the formatted data array for trace 1 in channel 1, and stores it into the databuf
variable.
buf
Description Data to be outputted (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
actual
Description The number of data bytes actually read out (output)
Data type Long integer type