Agilent Technologies E5071C Guide de l'utilisateur Page 179

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 551
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 178
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)).
Vue de la page 178
1 2 ... 174 175 176 177 178 179 180 181 182 183 184 ... 550 551

Commentaires sur ces manuels

Vikiehs 04 Jan 2024 | 13:20:06

urenrjrjkvnm