Operation status register:
Contains operation condition registers (real-time status, such as scanning and calibration), operation event registers (latch events, such as scan completion), and operation enable registers (controlling which events trigger OPS digest);
Reading method: STATus: OPERation: CONDition? (Conditional register),: STATus: OPERation: EVENT? (Event register, cleared after querying).
Suspicious Status Register:
The function has not been allocated yet, all bits are fixed to 0, and the reading method is similar to the operation status register.

Program functionality and automated measurement
(1) Program Editing and Execution
Program registration and editing:
Go to APP → Program → Execute, select the program number (such as 01-99), and set the program name (up to 56 characters);
Supports inserting/deleting/copying rows, editing parameters, and can select functional commands (such as scanning, analyzing) or special commands (such as looping, conditional judgment) through Command Select.
Program execution:
Select the target program, click Execute to start, and during execution, the output data can be viewed through the Output Window;
Supports pause (PAUSE instruction), data input (DATA INPUT instruction, receiving user input values), and data output (DATA OUTPUT instruction, outputting variables or strings to the window).
Program saving and loading:
Save: The program can be saved as PGC format file (approximately 13 KB), stored in internal memory or USB, supports automatic naming (by serial number or date);
Loading: Loading programs from storage media, supporting overwriting or merging existing programs.
(2) Program Control Instructions and Variables
Variable type:
General variables: such as E, G-K, O-V, X-Z (numerical), A-D (string)
Tag variables: such as WM (moving marker wavelength), L1 (fixed marker 1 level), W2-W1 (marker 1-2 wavelength difference);
Analyze variables such as SPWD (spectral width), MEANWL (center wavelength), WDMCHN (number of channels detected by WDM analysis).
Program control instructions:
Loop control: such as N=10; N=N-1; IF N<>0 GOTO 10 (10 cycles);
Conditional judgment: If IF F1<=SPWD<=F2 GOTO 20 (if the spectral width is within the range of F1-F2, skip to line 20);
External control: such as SEND LAN A $, 10001, "* IDN?" (sending instructions to external devices specified by variable A through LAN)
, 10001, "*IDN?"; B (Receive external device responses and store them).
(3) Example Program
The manual provides two typical examples, covering remote measurement and data storage scenarios:
Example 1: Parameter Setting and Spectral Analysis:
Function: Set measurement parameters (center wavelength 1550 nm, span 10 nm, sensitivity MID), perform a single scan, perform frequency spectrum width analysis using the THREE method, and output the results to the PC;
Key steps: Connect the device through the PyVISA library (supporting GP-IB/Socket/VXI-11), send the SENSe command to configure parameters, initiate scanning, perform analysis using CALCulate, and wait for WAI to complete before reading the results.
Example 2: Screenshot saving:
Function: Save the device screen as a PNG format file and load it to the PC via file transfer command (path C: test. png);
Key steps: Send: MMEMory: STORe: GRAPhics Save screenshot to internal storage,: MMEMory: DATA? Read binary data from the file and write it to a local file on the PC.
Appendix and Compatibility
(1) Key Appendix Content
Correspondence table between soft keys and remote commands:
List the remote commands corresponding to all panel soft keys of the device, such as the Peak Search soft key corresponding to CALCulate: MARK: MAX imum.
AQ6317 compatible instruction table:
Provide instruction mapping between AQ6377E and the old model AQ6317, such as the CWL of AQ6317 corresponding to the SENSe: WAVelocity: CENTer of AQ6377E.
Output format of analysis results:
Provide a detailed explanation of the output structure of various analyses (such as WDM, EDFA-NF), including data order, units, and accuracy.
(2) Compatibility and Precautions
Model compatibility:
Support compatibility with commands and programs of old models such as AQ6317 and AQ6370D, with some commands requiring parameter format adjustment (refer to Appendix 6-7).
Operation taboos:
Prohibit disconnecting communication connections during program execution to avoid data loss;
During remote control, it is prohibited to use both GP-IB and Ethernet interfaces simultaneously;
When saving/loading files, ensure that the storage medium (such as USB) is properly mounted to avoid file damage.

 
 
Email:wang@kongjiangauto.com