![China Electronics Technology Instruments AV3672 Series User Manual Download Page 287](http://html1.mh-extra.com/html/china-electronics-technology-instruments/av3672-series/av3672-series_user-manual_2601790287.webp)
9 Remote control
9.3 Basic Programming Method of VISA Interface
283
ConstanalyzerTimeout = 10000;
The constant analyzerString refers to the instrument descriptor, “GPIB0” refers to the controller, and “16” refers to
the instrument connected to the controller. Assuming that the instrument is connected LAN, the IP address is
“192.168.1.1” and the port number is “1024”, the variable is:
Const char analyzerString [VI_FIND_BUFLEN] = “TCPIPO::192.168.1.1::1024::SOCKET”;
9.3.2.2 Controller Initialization
The following example shows how to establish the communication connection between the VISA library and
instrument (with the specified descriptor).
//Controller initialization: open the default resource manager and return the instrument handle to the analyzer.
voidInitController()
{
ViState state;
state = viOpenDefaultRM(&defaultRM);
state = viOpen(defaultRM, analyzerString, VI_NULL, VI_NULL, &analyzer);
}
9.3.2.3 Instrument Initialization
/*************************************************************************/
The following example shows the initialization of the default instrument state and clearing of the state register. “\n”
refers to the terminator. The character string of each command should be ended with ‘\n’. This will not be described
later.
/*************************************************************************/
voidInitDevice()
{
ViState state;
longretCnt;
state = viWrite(analyzer, "*CLS\n", 5, &retCnt); //reset state register
state = viWrite(analyzer, "*RST\n", 5, &retCnt); //reset instrument
}
9.3.2.4 Query of Instrument Measurement Information
/*************************************************************************/
The following example shows all measurements, windows and traces defined at present.
/*************************************************************************/
voidQueryMesaurement()
{
ViState state;
longretCnt;
charrd_Buf_CW[VI_READ_BUFLEN]; // #define VI_READ_BUFLEN 20
charrd_Buf_LVL[VI_READ_BUFLEN];
// query all measurements of Channel 1
Summary of Contents for AV3672 Series
Page 3: ......
Page 4: ...AV3672 Series Vector Network Analyzer Contents...
Page 5: ......
Page 124: ...5 Menu 5 1 Menu structure 120 5 1 2 Track Fig 5 2 Track Menu...
Page 125: ...5 Menu 5 1 Menu structure 121 5 1 3 Channel Fig 5 3 Channel Menu...
Page 126: ...5 Menu 5 1 Menu structure 122 5 1 4 Excitation Fig 5 4 Excitation Menu I...
Page 127: ...5 Menu 5 1 Menu structure 123 Fig 5 5 Excitation Menu II...
Page 128: ...5 Menu 5 1 Menu structure 124 Fig 5 6 Excitation Menu III...
Page 129: ...5 Menu 5 1 Menu structure 125 5 1 5 Response Fig 5 7 Response Menu I...
Page 130: ...5 Menu 5 1 Menu structure 126 Fig 5 8 Repsonse Menu II...
Page 131: ...5 Menu 5 1 Menu structure 127 Fig 5 9 Response Menu III...
Page 132: ...5 Menu 5 1 Menu structure 128 Fig 5 10 Response Menu V Fig 5 11 Response IV...
Page 133: ...5 Menu 5 1 Menu structure 129 5 1 6 Calibration Fig 5 12 Calibration Menu...
Page 134: ...5 Menu 5 1 Menu structure 130 5 1 7 Marker Fig 5 13 Cursor Menu I...
Page 135: ...5 Menu 5 1 Menu structure 131 Fig 5 13 Cursor Menu II...
Page 136: ...5 Menu 5 1 Menu structure 132 Fig 5 15Marker Menu III...
Page 137: ...5 Menu 5 1 Menu structure 133 5 1 8 Analysis Fig 5 16 Analysis Menu I...
Page 138: ...5 Menu 5 1 Menu structure 134 Fig 5 17 Analysis Menu II...
Page 139: ...5 Menu 5 1 Menu structure 135 Fig 5 18 Analysis Menu III...
Page 140: ...5 Menu 5 1 Menu structure 136 5 1 9 System Fig 5 19 System Menu I...
Page 141: ...5 Menu 5 1 Menu structure 137 Fig 5 20 System Menu I...
Page 254: ...8 Basis of Network Measurement 8 3 Amplifier Parameter Specifications 250...
Page 257: ...8 Basis of Network Measurement 8 4 Complex Impedance 253...
Page 373: ...Appendix Appendix 4 Pulse Measurement 369 Fig 4 9 Receiver gain configuration Dialog Box...