![China Electronics Technology Instruments AV3672 Series User Manual Download Page 292](http://html1.mh-extra.com/html/china-electronics-technology-instruments/av3672-series/av3672-series_user-manual_2601790292.webp)
9 Remote control
9.3 Basic Programming Method of VISA Interface
288
9.3.7 Command Synchronization
The method of command synchronization is introduced below, taking the sweep process as an example.
voidSweepSync()
{
ViState state;
longretCnt;
ViEventTypeetype;
ViEventeevent;
int stat;
charOpcOk [2];
/*********************************************************************/
/* Command INITiate[:IMMediate] start single sweep ( closed in continuous sweepINIT:CONT OFF)*/
/* Execute next command of command buffer zone after single sweep */
/*********************************************************************/
state = viWrite(analyzer, "INIT:CONT OFF", 13, &retCnt);
// Method 1 of waiting for stop of sweep: use *WAI
state = viWrite(analyzer, "ABOR;INIT:IMM;*WAI", 18, &retCnt);
// Method 2 of waiting for stop of sweep: use *OPC
?
state = viWrite(analyzer, "ABOR;INIT:IMM; *OPC?", 20, &retCnt);
state = viRead(analyzer, OpcOk, 2, &retCnt); //Wait for*OPC and return to “1”
// Method 3 of waiting for stop of sweep: use *OPC
// To enable GPIB service request, set "Disable Auto Serial Poll" as "yes"
state = viWrite(analyzer, "*SRE 32", 7, &retCnt);
state = viWrite(analyzer, "*ESE 1", 6, &retCnt); // enable service request ESR
// set event enabling bit to complete operation
state = viEnableEvent(analyzer, VI_EVENT_SERVICE_REQ, VI_QUEUE, VI_NULL);
// enable SRQ event
state = viWrite(analyzer, "ABOR;INIT:IMM;*OPC", 18, &retCnt);
// start sweep synchronously with OPC
state = viWaitOnEvent(analyzer, VI_EVENT_SERVICE_REQ, 10000, &etype, &eevent)
// wait for service request
state = viReadSTB(analyzer, &stat);
state = viClose(eevent); // close event handle
// prohibit SRQ event
state = viDisableEvent(analyzer, VI_EVENT_SERVICE_REQ, VI_QUEUE);
// main program continues……
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...