Agilent Technologies E5071C Manual page 1060

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

example, when the version of your Winsock API is 1.1, the version
number is obtained as follows: 256*1+1=257. Enter the IP address
of the E5071C in the cell to the right side of "IP Address." This VBA
macro will not work properly without the correct values in these two
cells.
2. In part 2, the sweep range (start and stop points) and the number of
measurement points are set. Click Set to execute the setting
operation as specified with the setting table, while clicking the button
labeled "Query" retrieves the current settings of the E5071C.
3. Part 3 is dedicated to setting the trigger mode.
4. Part 4 sets the measurement parameters and data format for trace 1
in channel 1. Click Set to execute the setting operation as specified
with the setting table, while clicking the button labeled "Query"
retrieves the current settings of the E5071C.
5. In part 5, click Auto Scale to execute auto scaling for trace 1 in
channel 1.
6. Click Read Trace in part 6 to retrieve the formatted data of trace 1 in
channel 1. The data is displayed in tabular and graphical formats.
7. Click Preset to execute the presetting operation.
Description of operation in VBA macro
This section describes the operation of the VBA macro, focusing on the part
related to control with WinSock API.
In order to use WinSock API, you must declare functions and define
variables with a definition file of WinSock API, as shown in Definition file of
WinSock API.
Definition file of WinSock API
'This is the Winsock API definition file for Visual Basic
'Setup the variable type 'hostent' for the WSAStartup command
Type Hostent
h_name As Long
h_aliases As Long
h_addrtype As String * 2
h_length As String * 2
h_addr_list As Long
End Type
Public Const SZHOSTENT = 16
Programming
1287

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents