Agilent Technologies E5071C Manual page 1053

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

E5071C
Grammar
For example, if the parameter (dev) is "lan[192.168.0.1]:hpib9,17,"
connection is made to the address of 17 of the interface of hpib9 with the
E5071C whose IP address is 192.168.0.1 by using the external controller
whose SICL interface name is lan.
OpenSession
Function OpenSession() As Integer
Dim ServAddr As String
Dim IpAddr As String
On Error GoTo ErrHandler
'''Get Sicl-Lan Address
Sheets("Sheet1").Select
Range("C2").Select
ServAddr = ActiveCell.FormulaR1C1
'''Get Ip Address
Sheets("Sheet1").Select
Range("C3").Select
IpAddr = ActiveCell.FormulaR1C1
OpenSession = iopen("lan[" & IpAddr & "]:hpib9," & ServAddr)
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. OutputSiclLan uses the ivprintf function of SICL to send
messages (SCPI commands). The ivprintf function takes the session
information output from the iopen function and a program message as its
parameters.
Syntax
1280
sicl-name
[ip-address]:interface,
sicl-lan-address

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents