User`s guide

Table Of Contents
Chapter 12 179
Sample Application Programs
Controlling Using SICL-LAN Server
12. Sample Application
Programs
Call itimeout(OpenSession, 10000)
Exit Function
ErrHandler:
MsgBox "*** Error : " & Error$
Call siclcleanup
End
End Function
Sending
The procedure corresponding to sending in communication is OutputSiclLan (Example
12-3). OutputSiclLan uses the ivprintf function of SICL to send messages (SCPI
commands). The ivprintf function takes the session information outputted from the iopen
function and a program message as its parameters.
Syntax Status = ivprintf(addr,mes)
Variable
Example 12-3 OutputSiclLan
Sub OutputSiclLan(addr As Integer, message As String)
Dim Status As Integer
Dim actualcnt As Long
Dim length As Long
On Error GoTo ErrHandler
length = Len(message)
Table 12-1 Variable (Status)
Status
Description Return value of the function (output)
Data type Integer type
Table 12-2 Variable (addr)
addr
Description Session information (input)
Data type Integer type
mes
Description
Program message (input)
*1
Data type Character string type
*1.When sending a program message of a SCPI command, add the message terminator at
the end of the message (in Example 12-3, Chr$(10)).