Home
AQ6150 Series Remote Control User`s Manual - Electro
Contents
1. Command Parameters Reference Page IDN none 5 12 CLS none 5 12 ESE integer 5 12 ESR none 5 12 OPC none 5 12 RST none 5 12 SRE integer 5 12 STB none 5 13 TST none 5 13 WAI none 5 13 RCL 1121314 5 12 SAV 1121314 5 12 TRG none 5 13 CALCulate2 Command Parameters Reference Page CALCulate2 ASEarch ON OFF 0 1 5 14 COUNt lt integer gt MINimum MAXimum 5 14 DATA FREQuency POWer WAVelength WNUMber 5 14 PEXCursion MINimum MAXimum DEFault integer 5 14 POINts none 5 14 PTHReshold ABSolute NRf MINimum MAXimum DEFault 5 14 RELative MINimum MAXimum DEFault integer 5 14 MODe RELative ABSolute 5 15 WLIMit STARt FREQuency NR MINimum MAXimum 5 15 WAVelength NR MINimum MAXimum 5 15 WNUMber NR MINimum MAXimum 5 15 STATe ON OFF 0 1 5 15 STOP FREQuency lt NR gt MINimum MAXimum 5 15 WAVelength lt NR gt MINimum MAXimum 5 15 WNUMber NR MINimum MAXimum 5 16 IM AQ6150 17EN 5 3 Remote Command Tree CALCulate3 Command Parameters Reference Page CALCulate3 DATA POWer FREQuency WAVelength WNUMber DROPped A 5 16 LL WAVelength FREQuency WNUMber DELTa POWer STATe OJOFFJ 1 ON
2. Command Parameters Reference Page MMEMory CATalog directory ROOT INTernal EXTernal 5 34 CDIRectory directory ROOT INTernal EXTernal 5 34 CDRive INTernal EXTernal 5 34 COPY source file name gt INTernal EXTernal lt de 5 34 st file name iNTernal EXTernal DATA lt filename gt INTernal EXTernal 5 34 DELete filename INTernal EXTernal 5 35 LOAD filename INTernal EXTernal 5 35 MDIRectory directory name INTernal EXTernal 5 35 PWDirectory none 5 35 REMove none 5 35 REName new file name old file name gt INTernal 5 35 EXTernal STORe TABLe SETup SIMagel SIMage2 SIMage3 filenam 5 35 e INTernal EXTernal IM AQ6150 17EN 5 9 spuewwog ajoulas 5 3 Remote Command Tree READ Command Parameters Reference Page READ none 5 36 ARRay POWer MAXimum MINimum DEFault NRf 5 36 FREQuency MAXimum MINimum DEFault NRf 5 36 WAVelength MAXimum MINimum DEFault lt NRf gt 5 37 WNUMber MAXimum MINimum DEFault NRf 5 37 SCALar POWer MAXimum MINimum DEFault NRf 5 37 FREQuency MAXimum MINimum DEFault NRf 5 37 WAVelength MAXimum MINimum DEFault NRf 5 38 WNUMber MAXimum MINimum DEFault NRf 5 38 SENSe Command
3. Full service request capability Full remote local capability No parallel polling capability Full device clear capability Output buffer clear capability Input buffer clear unprocessed command clear capability Error buffer clear capability STB and ESR clear capability Device trigger capability Talker T6 Listener L4 Service request SR1 Remote local RL1 Parallel polling PPO Device clear DC1 Device trigger DTO Controller CO No controller capability Electric characteristics E1 Open collector IM AQ6150 17EN 2 5 2 4 Setting the GP IB Address Procedure Selecting the Communication Interface 7 Press SYSTEM The system setup menu appears 2 Press the REMOTE INTERFACE soft key The setting toggles between GP IB and ETHER each time you press the soft key Select GP IB REMOTE INTERFACE Remote interface type GP IB ETHER Set the GP IB address Setting the Address 3 Press the GP IB ADDRESS soft key A screen for setting the GP IB address appears 4 Enter the address using the arrow keys or numeric keypad 4 Enter the appropriate value Z Press ENTER The address that you enters appears on the soft key 2 6 IM AQ6150 17EN 2 4 Setting the GP IB Address Explanation Set the GP IB address if you want to use the controller to configure the same settings that you can from the panel keys or have the AQ6150 AQ6151 output setup data measur
4. lt expected_value gt lt expected_value gt power MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum power peak MINimum Specifies the minimum power peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified power FETC SYNC ARR POW gt 3 3 99000000E 000 7 28000000E 000 1 08300000E 001 lt END gt This command returns measured results for the number of data points peak num power1 power2 peak num Number of peaks 0 to 1024 lt power1 gt lt power2 gt Peak power values If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to lt NRf gt or DEF the auto peak search function will be set to OFF Query results are returned in dBm or W depending on the parameter This is an overlapping command 5 28 IM AQ6150 17EN 5 5 Device specific Commands FETCh SYNChronous ARRay POWer FREQuency Function Syntax Example Description Queries the peak frequencies at the completion of the current measurement in multi view mode for repeat measurement FETCh SYNChronous ARRay POWer FREQuency wsp expected values expected value frequency MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum frequency peak MINimum Specifies the minimum frequency peak DEFault Specifies the selected peak
5. Dim maxPowData maxWavData As Double Dim minPowData minWavData As Double Dim dropInfo As Double Dim username passwd As String wlmAddr 192 168 0 1 wlmPort 10001 username anonymous passwd Li tcpObj New TcpClient tcpObj Connect wlmAddr wlmPort sockStream tcpObj GetStream Dim recvBuffer As String TcopWriteLine open username sockStream recvBuffer TcpReadLine sockStream If String Compare recvBuffer AUTHENTICATE CRAM MD5 SockStream Dispose Exit Sub End If TcpWriteLine passwd sockStream recvBuffer TcpReadLine sockStream If String Compare recvBuffer ready lt gt 0 Then sockStream Dispose Exit Sub End If Call TcpWriteLine RST sockStream Call TcpWriteLine CALC2 PTHR MODE REL sockStream Call TcpWriteLine CALC2 PTHR 15 sockStream jeujeuj3 Wavelength meter IP address Remote port number User name Password Send an OPEN command with the user name 0 Then Error if the response is not AUTHENTICATE CRAM MD5 Send the password Authentication failure Reset the AQ615x Set the threshold to relative mode Set the threshold to 15 db IM AQ6150 17EN 3 13 3 4 Sample Program Call TcpWriteLine UNIT WL NM sockStream Call TcpWriteLine UNIT POW DBM sockStream Perform a Single measurement to obtain the reference Call TcpWriteLine INIT OPC sockStream TcpReadLin
6. POWer WAVelength wsp expected values expected value wavelength MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum wavelength peak MINimum Specifies the minimum wavelength peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavelength FETC POW WAV gt 1 54854220E 006 lt END gt If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m This is an overlapping command SCALar POWer WNUMber Queries the most recent peak s wavenumber in single view mode FETCh SCALar POWer WNUMber lt wsp gt lt expected_value gt lt expected_value gt wavenumber MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum wavenumber peak MINimum Specifies the minimum wavenumber peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavenumber FETC POW WNUM gt 6 45768650E 005 lt END gt If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m 1 This is an overlapping command FETCh SYNChronous ARRay POWer Function Syntax Example Description Queries the peak power at the completion of the current measurement in multi view mode for repeat measurement FETCh SYNChronous ARRay POWer lt wsp gt
7. eene 2 1 2 2 GP IB Interface Features rennen het Tete de nte hee tu de ERR Ra Een 2 3 2 3 GP IB Interface Specifications eren ri rentrer kennen enne aine 2 5 24 Setting the GP IB Address ceteri ettet iioa 2 6 2 5 Responses to Interface Messages c20 sesceccressceeesconeeeseceesseneeseeceeesensenenanerseeeneersserees 2 8 2 6 Sample Program asini E 2 10 Ethernet 3 1 Using the Ethernet Interface to Connect the Devices sss 3 1 3 2 Ethernet Port FeatUres iranek cris a aiaa ERO EE ROTE GTRRE E eee EH REEE e MRIRS 3 2 3 3 Ethernet Configuration 2 acad ecce Lei eL HER EXER LE atin Ro LEO Ec REY e ERR VON 3 3 3 4 Sample drole 3 9 Status Registers 4 1 Status REISTE S rp M S 4 1 4 2 Status Byte Reglster zone Bia eie a e t ie e fe ceti tete cree er iet 4 3 4 3 Standard Event Status Register 2 cc ccceseccesseceeseeecseeccceeeeceeseneeceeeneeeeceneeeneeeedeeeeeaenenens 4 5 44 Operation Stat s Iseglster 2 ini aeui a EEN iicet ete Ee SUELE ERR aN c ERES EATEN 4 7 4 5 Questionable Status Register cies ciiin tende iaaa nante nt dna eR dan 4 12 Remote Commands 5 1 Command Syntax and Types eerie nene dert rete deles Ibi FER ek ee O E EE cReP 5 1 5 2 Table of Soft Key to Remote Command Assignments see 5 3 5 3 Remote Command Tree penekan ranap tee EE ER HE
8. expected values single view mode a command that contains expected value frequency SCALar in its command string one MAXimum MINimum DEFault lt NRf gt measurement result is returned MAX Specifies the maximum frequency peak f the previous query command was in multi MIN Specifies the minimum frequency peak view mode a command that contains DEF Specifies the selected peak ARRay in its command string measurement lt NRf gt Specifies the peak closest to the results are returned for the number of data specified frequency points Example READ ARR POW FREQ gt 3 Power 1 93738284E 014 1 93596611E 014 peak num power1 power2 1 94163376E 014 lt END gt Wavelength Description This command returns measured results for lt peak_num gt lt wav1 gt lt wav2 gt the number of data points Frequency lt peak_num gt lt freq1 gt lt freq2 gt lt peak_num gt lt freq1 gt lt freq2 gt lt peak_num gt Number of peaks 0 to 1024 Wavenumber lt freq1 gt lt freq2 gt Peak frequencies lt peak_num gt lt wnum1 gt lt wnum2 gt f you specify a parameter the current peak num Number of peaks 0 to 1024 selected peak on the AQ6150 AQ6151 lt power1 gt lt power2 gt Peak power values screen will change wav1 wav2 Peak wavelengths f the parameter is not set to DEF the auto freq1 freq2 Peak frequencies peak search function w
9. Description This is an overlapping command DISPlay WINDow2 TRACe SCALe AUTOmeasure Function Executes a single measurement and then auto scaling Syntax DISPlay WINDow2 TRACe SCALe AUTOmeasure Example DISP WIND2 TRAC AUTO Description This is an overlapping command DISPlay WINDow2 TRACe SCALe ASCale Function Optimizes auto scales the waveform in the spectrum window Syntax DISPlay WINDow2 TRACe SCALe ASCale Example DISP WIND2 TRAC ASC Description This is an overlapping command DISPlay WNDow2 TRACe SCALe INITialize Function Initializes the horizontal scale frequency wavelength and wavenumber of the spectrum window Syntax DISPlay WINDow2 TRACe SCALe INITialize Example DISP WIND2 TRAC INIT Description The left edge of the scale is set to the start wavelength the right edge is set to the end wavelength This is an overlapping command DISPlay WINDow2 TRACe SCALe LEFT WAVelength Sets or queries the start wavelength of the horizontal scale on the spectrum window Syntax DISPlay WINDow2 TRACe SCALe LEFT Function WAVelength lt wsp gt lt wavelength gt DISPlay WINDow2 TRACe SCALe LEFT WAVelength lt wavelength gt start wavelength lt NRf gt MINimum MAXimum MINimum 1270 nm MAXimum Stop wavelength 1 nm DISP WIND2 TRAC LEFT 1550NM DISP WIND2 TRAC LEFT gt Example 1 550000
10. MIN WL 1 30756953E 06 1 30835221E 06 1 30913538E 06 MIN POWER 10 2276251 3 02598662 6 67785905 3 16 IM AQ6150 17EN Chapter4 Status Registers 4 1 Status Registers The AQ6150 AQ6151 has the status registers shown in the table below A complete status register diagram is provided on the next page The AQ6150 AQ6151 has the following registers which are defined in IEEE488 2 and SCPI Status Byte Register Standard Event Status Register Operation Status Register Questionable Status Register As a summary of each register an operation status bit OPS and questionable status bit QUS are assigned to the expansion bits of the Status Byte Register Status Registers sJojsiDoy snjejs gt Register Name Description Status Byte Register Register defined in IEEE488 2 STB Status Byte Register Same as above SRE Service Request Enable Register Same as above Standard Event Status Register Register defined in IEEE488 2 ESR Standard Event Status Register Same as above ESE Standard Event Status Register Same as above Operation Status Register Provides execution information about Operation Event Register operations measuring averaging etc Indicates the presence or absence of events Events are latched Conditional masking register for generating summary bit OPS Operation Event Enable Register Questionable Status Register Pro
11. QUEStionable PTRansition lt wsp gt lt integer gt STATus QUEStionable PTRansition lt integer gt 0 to 65535 STAT QUES PTR 24 STAT QUES PTR gt 24 lt END gt This is an overlapping command IM AQ6150 17EN 5 39 5 5 Device specific Commands SYSTem Sub System Commands SYSTem BUZZer CLICk Function Syntax Example Description Sets or queries whether the click sounds buzzer that are produced when a key is pressed is on or off SYSTem BUZZer CLICk lt wsp gt 0 OFF 1 ON SYSTem BUZZer CLICK 0 OFF Click sound off 1 ON Click sound on SYST BUZZ ON SYST BUZZ gt 1 lt END gt This is an overlapping command SYSTem BUZZer WARNing Function Syntax Example Description Sets or queries whether the buzzer notifications that are produced when alarms occur is on or off SYSTem BUZZer WARNing wsp 0 OFF 1 ON SYSTem BUZZer WARNing 0 OFF Buzzer notification off 1 ON Buzzer notification on SYST BUZZ WARN ON SYST BUZZ WARN gt 1 lt END gt This is an overlapping command SYSTem DATE Function Syntax Example Description Sets or queries the date SYSTem DATE lt wsp gt lt year gt month day SYSTem DATE lt year gt Year lt month gt Month lt day gt Day SYST DATE 2012 04 09 SYST DATE gt 2012 04 09 lt END gt The response is returned in this order year month and day This is a
12. 1 bit3 bit3 bit 2 amp bit2 lt bit2 bit2 bit 1 gt amp lt bit1 lt bit1 bit1 bit 0 gt amp lt 4 bitO bito bito STAT OPER ENAB STAT OPER EVEN STAT OPI Operation Event Enable Register Operation Event Register sJojsiDoy snjejs gt not used not used not used MEASuring Averaging not used Processing not used not used not used not used not used not used RANGing not used not used ER COND Operation Condition Register IM AQ6150 17EN 4 7 4 4 Operation Status Register Operation Status Register Description Bit Event Description Decimal value Note Bit 15 Notused Reserved always 0 Bit 14 Notused Reserved always 0 Bit 13 Notused Reserved always 0 0 Bit 12 Notused Reserved always 0 Bit 11 Averaging Averaging 2048 Set to 1 when the average count is set to a value larger than 1 Bit 10 Notused Reserved always 0 0 Bit 9 Processing Computing 512 Set to 1 when computation is in progress Bit 8 Not used Reserved always 0 O0 Bit 7 Not used Reserved always 0 O0 Bit 6 Not used Reserved always 0 O0 Bit 5 Not used Reserved always 0 O0 Bit 4 MEASuring Measuring 16 Set to 1 when measurement is in progress Bit 3 Not used Reserved always 0 0 Bit 2 RANGing Range switching 4 Set to 1 when under range or over range
13. TRACe SCALe CENTer WNUMber Function Sets or queries the center wavenumber of the horizontal scale on the spectrum window Syntax DISPlay WINDow2 TRACe SCALe CENTer WNUMber lt wsp gt lt wnumber gt DISPlay WINDow2 TRACe SCALe CENTer WNUMber lt wnumber gt center wavenumber lt NRf gt Example DISP WIND2 TRAC CENT WNUM 609000 DISP WIND2 TRAC CENT WNUM gt 6 09000000E 005 lt END gt Description Query results are returned in m 1 This is an overlapping command DISPlay WINDow2 TRACe SCALe CENTer PEAK Function Displays the current peak in the center of the horizontal scale Syntax DISPlay WINDow2 TRACe SCALe CENTer PEAK Example DISP WIND2 TRAC CENT PEAK Description This is an overlapping command DISPlay WINDow2 TRACe SCALe SPAN WAVelength Function Sets or queries the display span wavelength of the horizontal scale on the spectrum window Syntax DISPlay WINDow2 TRACe SCALe SPAN WAVelength lt wsp gt lt wavelength gt DISPlay WINDow2 TRACe SCALe SPAN WAVelength lt wavelength gt span wavelength lt NRf gt MAXimum MAXimum 380 nm DISP WIND2 TRAC SPAN 50NM DISP WIND2 TRAC SPAN gt Example 5 00000000E 008 lt END gt Description Query results are returned in m This is an overlapping command DISPlay WINDow2 TRACe SCALe SPAN FREQuency Function Sets or qu
14. gt 1 93596570E 014 lt END gt Ifthe parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in Hz This is an overlapping command FETCh SYNChronous SCALar POWer WAVelength Function Syntax Example Description Queries the peak wavelength at the completion of the current measurement in single view mode for repeat measurement FETCh SYNChronous SCALar POWer WAVelength lt wsp gt lt expected_value gt lt expected_value gt wavelength MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum wavelength peak MINimum Specifies the minimum wavelength peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavelength FETC SYNC POW WAV gt 1 54854220E 006 lt END gt Ifthe parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m This is an overlapping command 5 30 IM AQ6150 17EN 5 5 Device specific Commands FETCh SYNChronous SCALar POWer WNUMber Function Syntax Example Description Queries the peak wavenumber at the completion of the current measurement in single view mode for repeat measurement FETCh SYNChronous SCALar POWer WNUMber lt wsp gt lt expected_value gt lt expected_value gt wavenumber MAXimum MINimum DEFault lt NRf gt MAXimum Specifi
15. the auto peak search function will be set to OFF Query results are returned in m This is an overlapping command FETCh ARRay POWer WNUMber Function Syntax Example Description Queries the most recent peak s wavenumber values in multi view mode FETCh ARRay POWer WNUMber lt wsp gt lt expected_value gt lt expected_value gt wavenumber MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum wavenumber peak MINimum Specifies the minimum wavenumber peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavenumber FETC ARR POW WNUM gt 3 6 46241320E 005 6 45768650E 005 6 46714090E 005 lt END gt This command returns measured results for the number of data points lt peak_num gt lt wnum1 gt lt wnum2 gt peak num Number of peaks 0 to 1024 lt wnum1 gt lt wnum2 gt Peak wavenumbers If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m 1 This is an overlapping command FETCh SCALar POWer Function Syntax Example Description Queries the most recent peak s power value in single view mode FETCh SCALar POWer lt wsp gt expected values expected value power MAXimum MINimum DEFault lt NRf gt MAXimum
16. use the READ Sub System commands Related commands FETCh Sub System READ Sub System MEASure ARRay POWer Function Syntax Example Queries the peak power in multi view mode for single measurement View Mode is set to MULTI MEASure ARRay POWer wsp lt expected_value gt lt expected_value gt power MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum power peak MIN Specifies the minimum power peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified power You can specify the power in unit of dBm or W If you omit the unit the AQ6150 AQ6151 will assume W MEAS ARR POW 3 3 97000000E 000 7 31000000E 000 1 08700000E 001 lt END gt Description This command returns measured results for the number of data points lt peak_num gt lt power1 gt lt power2 gt lt peak_num gt Number of peaks 0 to 1024 lt power1 gt lt power2 gt Peak power values If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to lt NRf gt or DEF the auto peak search function will be set to OFF Query results are returned in dBm or W depending on the parameter IM AQ6150 17EN 5 31 spuewwog sjowsay a 5 5 Device specific Commands MEASure ARRay POWer FREQuency Function Syntax Example Description Queries the peak frequencies in multi view mode fo
17. wsp 2 directory gt ROOT INTernal EXTernall directory A directory of your choice Use backslashes to specify the directory hierarchy ROOT Root directory INTernal Internal memory EXTernal USB memory MMEM CAT Data test gt 3 Data test Example lt DIR gt result 24 5KB data csv 12 3KB image bmp lt END gt Description In the above example the Data test directory contains one directory and two files For files file sizes are indicated in front of file names Response format indicated with line feeds The number of files and directories Current directory An empty line File or directory name each file or directory is displayed in its own line This is an overlapping command MMEMory CDIRectory Function Changes the current directory Syntax MMEMory CDIRectory lt wsp gt 2 directory ROOT INTernal EXTernal directory A directory of your choice Use backslashes to specify the directory hierarchy ROOT Root directory INTernal Internal memory EXTernal USB memory Example MMEM CDIR MYDIRECTORY Description This is an overlapping command MMEMory CDRive Function Sets or queries the current drive Syntax MMEMory CDRive lt wsp gt INTernal EXTer nal MMEMory CDRive INTernal Internal memory EXTernal USB memory MMEM CDR EXT MMEM CDR EXT Description This is an overlapping command Example MMEMory COPY Function Cop
18. 5 17 PRESet none 5 17 REFerence 5 17 FREQuency NR MINimum MAXimum 5 17 POWer none 5 17 WAVelength NR MINimum MAXimum 5 17 WNUMber lt NRf gt MINimum MAXimum 5 17 WAVelength STATe O OFF ON 5 18 WPOWer STATe 0 OFF ON 5 18 DRIFt 5 18 DIFFerence STATe O OFF ON 5 18 MAXimum STATe 0 OFF ON 5 18 MINimum STATe 0 OFF O 5 18 POWer STATe 0 OFF ON 5 18 WAVelength STATe O OFF ON 5 18 PRESet none 5 18 STATe 0 OFF O 5 19 REFerence 5 19 RESet none 5 19 STATe 0 OFF O 5 19 FPERot 5 19 STATe 0 OFF O 5 19 FWHM 5 19 WAVelength none 5 19 FREQuency none 5 19 WNUMber none 5 19 MEAN 5 19 WAVelength none 5 19 FREQuency none 5 19 WNUMber none 5 19 MODE SPACing 5 19 WAVelength none 5 19 FREQuency none 5 19 WNUMber none 5 19 PEAK 5 19 WAVelength none 5 19 FREQuency none 5 19 WNUMber none 5 19 POWer 5 19 DBM none 5 19 WATTs none 5 19 POWer 5 19 DBM none 5 19 WATTs none 5 19 SIGMa 5 20 WAVelength none 5 20 FREQuency none 5 20 WNUMber none 5 20 POINts none 5 20 PRESet none 5 20 IM AQ6150 17EN 5 7 spuewwog ajoulas 5 3 Remote Command Tree CONFigure Command Parameters Reference Page CONFigure none 5 20 SCALar POWer MAXimum MINimum DEFault NRf 5 20 FREQuency MAXimum MINimum DEFault NRf 5 21 WAVelength MAXimum MINimum DEFault NRf 5 21 WNUMber MAXimum
19. AQ6151 is in local lockout mode The REMOTE LED turns off Key operations are enabled Settings entered in remote mode are retained even when the AQ6150 AQ6151 Switches to local mode In the GP IB interface the AQ6150 AQ6151 switches to local lockout mode when it receives a GTL Go To Local message from the controller or when REN is set to false IM AQ6150 17EN 1 3 Buffer Exchanging Remote Commands Input Buffer The AQ6150 AQ6151 has a one stage input buffer The buffer size is 2 MB If the AQ6150 AQ6151 receives data that exceeds the buffer size it discards the excessive portion of the data In such cases the AQ6150 AQ6151 also discards the command after the last command separator within the 2 MB of data it receives Output Buffer The AQ6150 AQ6151 has a one stage output buffer The buffer size is 2 MB It holds only the most recent data If the AQ6150 AQ6151 is holding data in the buffer and receives a talker command it clears the data in the buffer and accepts the new data If multiple talker commands are executed together and the buffer size is exceeded the AQ6150 AQ6151 will Setthe query error bit QYE of the standard event status register to 1 Clearthe output buffer Continue processing the commands that have already been received even after the output buffer overflows The AQ6150 AQ6151 will not store talker data sent through new talker commands in the output buffer Error Buffer The AQ6
20. CALC2 WLIM STAR FREQ 191THZ CALC2 WLIM STAR FREQ gt 1 91000000E 014 lt END gt Description Query results are returned in Hz CALCulate2 WLIMit STARt WAVelength Function Sets or queries the start wavelength of the measurement range limit of peak detection Syntax CALCulate2 WLIMit STARt WAVelength lt wsp gt lt wavelength gt CALCulate2 WLIMit STARt WAVelength wavelength start wavelength lt NRf gt MINimum MAXimum MINimum 1270 nm MAXimum Stop wavelength 1 nm Example CALC2 WLIM STAR 1500NM CALC2 WLIM STAR gt 1 50000000E 006 lt END gt Description Query results are returned in m CALCulate2 WLIMit STARt WNUMber Function Sets or queries the start wavenumber of the measurement range limit of peak detection Syntax CALCulate2 WLIMit STARt WNUMber lt wsp gt lt wnumber gt CALCulate2 WLIMit STARt WNUMber lt wnumber gt wavenumber lt NRf gt MINimum MAXimum MINimum 6060cm 1 MAXimum Stop wavenumber 1 Example CALC2 WLIM STAR WNUM 64001CM CALC2 WLIM STAR WNUM gt 6 40000000E 005 lt END gt Description Query results are returned in m 1 CALCulate2 WLIMit STATe Function Sets or queries the on off state of the measurement range limit of peak detection Syntax CALCulate2 WLIMit STATe lt wsp gt 0 OFF 1 ON CALCulate2 WLIMit STATe 0 OFF Measurement range limit off 1 ON Measurement range limit on Example CAL
21. Function Sets or queries the on off state of delta measurement Syntax CALCulate3 DELTa WAVelength STATe wsp 0 OFF 1 ON CALCulate3 DELTa WAVelength STATe OJOFF Delta is not measured 1 ON Delta is measured Example CALC3 DELT WAV ON CALC3 DELT WAV gt 1 lt END gt CALCulate3 DELTa WPOWer STATe Function Sets or queries the on off state of delta measurements Syntax CALCulate3 DELTa WPOWer STATe wsp 0 OFF 1 ON CALCulate3 DELTa WPOWer STATe OJOFF Delta is measured 1 ON Delta is measured Example CALC3 DELT WPOW ON CALC3 DELT WPOW 1 END CALCulate3 DRIFt DIFFerence STATe Function Sets or queries the on off state of the MAX MIN measurement of drift measurement Syntax CALCulate3 DRIFt DIFFerence STATe wsp 0 OFF 1 ON CALCulate3 DRIFt DIFFerence STATe OJOFF The MAX MIN value is not measured 1 ON The MAX MIN value is measured Example CALC3 DRIF DIFF ON CALC3 DRIF DIFF gt 1 lt END gt Description This cannot be set to ON if any of the following is already being measured MAX MIN Ref Power or Wavelength CALCulate3 DRIFt MAXimum STATe Function Sets or queries the on off state of the MAX measurement of drift measurement Syntax CALCulate3 DRIFt MAXimum STATe lt wsp gt 0 OFF 1 ON CALCulate3 DRIFt MAXimum STATe O OFF The MAX value is not measured 1 ON The MAX value is measured Example CALC3 DRIF MAX ON CALC3 DRIF MAX gt
22. MINimum MAXimum MINimum Start wavenumber 1 cm 1 MAXimum 7875 00 cm 1 Example CALC2 WLIM STOP WNUM 78001CM CALC2 WLIM STOP WNUM gt 7 80000000E 005 lt END gt Description Query results are returned in m 1 CALCulate3 Sub System Commands CALCulate3 DATA Function Queries the results of a drift measurement or delta measurement Syntax For drift measurement CALCulate3 DATA lt wsp gt POWer FREQuency WAVelength WNUMber DROPpe d ALL WAVelength FREQuency WUMber For delta measurement CALCulate3 DATA lt wsp gt POWer FREQuency WAVelength WNUMber Example CALC3 DATA POW gt 4 80000000E 001 3 60000000E 001 5 70000000E 001 lt END gt Description This is an overlapping command The results of the drift or delta measurement whichever is turned on are returned For details on turning on or off drift measurement see the CALCulate3 DRIFt STATe command For details on turning on or off delta measurement see the commands below CALCulate3 DELTa POWer STATe CALCulate3 DELTa WAVelength S TATe CALCulate3 DELTa WPOWer STATe For drift measurement Ofthe items listed below the response will contain the items that are turned on specified to be measured The number of values of each item will be equal to the number of detected peaks MAX MIN MAX MIN DELTA Wavelength Power Ref Example if MAX is turned on and three peaks have been detected three
23. Parameters Reference Page SENSe CORRection DEVice NARRow BROad 5 38 MEDium AIR VACuum 5 38 OFFSet MAGNitude NR MINimum MAXimum 5 38 STATus Command Parameters Reference Page STATus OPERation CONDition none 5 39 ENABle lt integer gt 5 39 EVENt none 5 39 NTRansition lt integer gt 5 39 PTRansition lt integer gt 5 39 PRESet none 5 39 QUEStionable 5 39 CONDition none 5 39 ENABle lt integer gt 5 39 EVENt none 5 39 NTRansition lt integer gt 5 39 PTRansition lt integer gt 5 39 SYSTem Command Parameters Reference Page SYSTem BUZZer CLICk OJOFFJ 1 ON 5 40 WARNing 0 OFF 1 0ON 5 40 DATE Xyear month day 5 40 ERRor none 5 40 PRESet none 5 40 REFLaser CONDition none 5 40 STATe OJOFFJ 1 ON 5 40 TIME hour minute second 5 40 VERSion none 5 41 5 10 IM AQ6150 17EN 5 3 Remote Command Tree TRIGger Command Parameters Reference Page TRIGger ABORt none 5 41 INITiate CONTinuous O OFF 1 ON 5 41 IMMediate none 5 41 UNIT Command Parameters Reference Page UNIT POWer W DBM 5 42 WL THZ NM ICM 5 42 IM AQ6150 17EN 5 11 spuewwog ajoulas B 5 4 Common Commands The commands in this group are defined in IEEE 488 2 1991 and are independent from the instrument s individual functions There are no front panel keys that correspond to the commands in this group CLS Cle
24. Retrieve the results reference values Call GpibWrite CALC3 DRIF REF ON GpibDevice Call GpibWrite CALC3 DATA POW GpibDevice Retrieve Ref Power replyString GpibRead GpibDevice SplitArrayData replyString refPowData Call GpibWrite CALC3 DATA WAV GpibDevice Retrieve Ref Wavelength replyString GpibRead GpibDevice SplitArrayData replyString refWavData Retrieve the results max values Call GpibWrite CALC3 DRIF PRES GpibDevice Call GpibWrite CALC3 DRIF MAX ON GpibDevice Call GpibWrite CALC3 DATA POW GpibDevice Retrieve MAX Power replyString GpibRead GpibDevice SplitArrayData replyString maxPowData Call GpibWrite CALC3 DATA WAV GpibDevice Retrieve MAX Wavelength replyString GpibRead GpibDevice SplitArrayData replyString maxWavData Retrieve the results min values Call GpibWrite CALC3 DRIF PRES GpibDevice Call GpibWrite CALC3 DRIF MIN ON GpibDevice Call GpibWrite CALC3 DATA POW GpibDevice Retrieve MIN Power replyString GpibRead GpibDevice SplitArrayData replyString minPowData Call GpibWrite CALC3 DATA WAV GpibDevice Retrieve MIN Wavelength replyString GpibRead GpibDevice SplitArrayData replyString minWavData Retrieve drop information Call GpibWrite CALC3 DATA DROP GpibDevice replyString GpibRead GpibDevice SplitArrayData replyString dropInfo GpibDevice Dispose GP IB Close Console Write No Dis
25. The Operation Status Register indicates the operation status of the AQ6150 AQ6151 The AQ6150 AQ6151 status is indicated by the Operation Condition Register The changes in the Operation Condition Register are reflected in the Operation Event Register You can identify changes in the operation status by referring to the Operation Status Register The summary of the Operation Event Register is set in the OPS bit of the Status Byte Register This bit includes only the statuses that correspond to the bits that are set to 1 in the Operation Event Enable Register The following figure shows the configuration of the Operation Status Register Operation Status Register Structure OPS Bit of the Status Byte Register STAT OPER NTR STAT OPER PTR Operation Transition Register bit 15 4 bit 15 bit 15 bit 14 lt bit 14 lt bit 14 bit 13 lt bit 13 lt bit 13 bit12 4 1 bit12 bit 12 bit11 bit11 bit 11 bit 10 lt bit10 lt bit 10 bit9 I lt bit9 e amp bit9 bit8 lt bit8 lt bits bit7 bit7 bit7 bit6 lt bit6 bit6 bit5 lt bit5 lt bit5 bit4 1 bit4 bit4 bit 3 amp bit3
26. This is an overlapping command MMEMory MDIRectory Function Makes a directory Syntax MMEMory MDIRectory lt wsp gt lt directory name INTernal EXTernal lt directory_name gt Name of the directory to make INTernal Internal memory EXTernal USB memory Example MMEM MDIR MYDIR Description This is an overlapping command MMEMory PWDirectory Function Queries the current directory Syntax MMEMory PWDirectory Example MMEM PWD gt MYDIR Description This is an overlapping command MMEMory REMove Function Makes the USB memory medium ready to be removed Or queries whether the USB storage medium can be removed Syntax MMEMory REMove MMEMory REMove Response 0 Can be removed 1 Cannot be removed Example MMEM REM MMEM REM 1 Description This is an overlapping command MMEMory REName Function Syntax Example Description Renames the specified file MMEMor REName wsp 2 new file name old file name gt INTernal EXTernal new file name New file name old file name Old file name INTernal Internal memory EXTernal USB memory medium MMEM REN testl csv test2 csv This is an overlapping command MMEMory STORe Function Syntax Example Description Saves wavelength data setup data or screen capture to a file MMEMory STORe lt wsp gt lt source gt lt file name gt INTernal EXTernal lt source gt data t
27. Use the arrow keys or numeric keypad to enter the appropriate value and then press ENTER 77 When you finish entering all the settings press the DONE soft key Setting the Remote Port Number 4 Press the REMOTE PORT NO soft key The port number setup screen appears Z Enter the port number using the arrow keys or numeric keypad ET Enter the appropriate value 3 4 IM AQ6150 17EN 3 3 Ethernet Configuration Setting the User Name and Password 4 Press the REMOTE USER ACCOUNT soft key A setup menu for the user name and password appears USER NAME Set the user name Set the password Z Press the USER NAME soft key The user name setup screen appears For instructions on how to enter text see section 3 3 in the User s Manual IM AQ6150 02bN 6 Press the PASSWORD soft key The password setup screen appears For instructions on how to enter text see section 3 3 in the User s Manual IM AQ6150 02bN Configuring the Remote Monitor Settings 4 Press the REMOTE MONITOR soft key The remote monitor setup menu appears Turns the monitor port on and off Set the port number fixed Disconnects the monitor connection 3 Press the MONITOR PORT soft key Each time you press the soft key the setting toggles between ON and OFF Remote monitoring is possible when the setting is ON 3 5 IM AQ6150 17EN nba B 3 3 Ethernet Configuration Disconnecting the Monitor Connection 6 Pre
28. cannot save files to the AQ6150 AQ6151 Measurement data CSV format Setup data WS1 format Screen capture data BMP format IM AQ6150 17EN 3 3 Ethernet Configuration Procedure Selecting the Communication Interface 7 Press SYSTEM The system setup menu appears 2 Press the REMOTE INTERFACE soft key The setting toggles between GP IB and ETHER each time you press the soft key Select ETHER Remote interface type GP IB ETHER Configure network settings Configuring Network Settings 3 Press the NETWORK SETTING soft key The Ethernet setup menu appears Configure TCP IP settings Set the remote port number Set the user name and password Set the remote port number Configure the remote monitor settings IM AQ6150 17EN 3 3 nba B 3 3 Ethernet Configuration Configuring the TCP IP Settings 4 Press the TCP IP SETTING soft key The TCP IP setup menu appears AUTO MANUAL Press this key to select AUTO or MANUAL Select the check box of the selected item Confirms the TCP IP settings Enter the appropriate value 7 Press the lt or gt soft key to select AUTO DHCP or MANUAL amp Press the SELECT soft key to select the check box of the selected item 2 If you select MANUAL set the IP address subnet mask and default gateway Use the arrow soft keys to select an item and then press ENTER If you select AUTO proceed to step 11 70
29. for the user to key the Enter ByRef gpib As Device Send data Function GpibRead ByRef gpib As Device As String GpibRead gpib ReadString Exit Function End Function Function GpibReadBlockData2File ByRef gpib As Device Dim headerLen As Integer Dim dataLen As Integer Dim dataByte As Byte Dim file As New FileStream filename FileMode Create If String Compare gpib ReadString 1 GpibReadBlockData2File 1 lt gt 0 Then Exit Function End If headerLen Integer Parse gpib ReadString 1 dataLen Integer Parse gpib ReadString headerLen While dataLen gt 1024 dataByte gpib ReadByteArray 1024 file Write dataByte 0 dataByte Length dataLen dataLen dataByte Length End While dataByte gpib ReadByteArray dataLen file Write dataByte 0 dataByte Length file Close GpibReadBlockData2File End Function Sub SplitArrayData ByVal dataString As String Dim peakNum As Integer Dim arrayDataStr As String dataString Split c peakNum Integer Parse arrayDataStr 0 Receive data ByVal filename As String As Integer FileAccess Write Retrieve the first character Error if the first character is not a j Size of the area containing the data length information Retrieve the data length information Read data 1024 bytes at a time Write the retrieved data to the file Retrieve the last piece of data Write the retrieved data to the file ByRef dataArray As Doub
30. lt NRf gt Specifies the peak closest to the specified frequency FETC SYNC ARR POW FREQ gt 3 1 93738272E 014 1 93596570E 014 1 93880006E 014 lt END gt This command returns measured results for the number of data points lt peak_num gt lt freq1 gt lt freq2 gt lt peak_num gt Number of peaks 0 to 1024 lt freq1 gt lt freq2 gt Peak frequencies If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in Hz This is an overlapping command FETCh SYNChronous ARRay POWer WAVelength Function Syntax Example Description Queries the peak wavelengths at the completion of the current measurement in multi view mode for repeat measurement FETCh SYNChronous ARRay POWer WAVelength wsp expected values expected value wavelength MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum wavelength peak MINimum Specifies the minimum wavelength peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavelength FETC SYNC ARR POW WAV gt 3 1 54740958E 006 1 54854220E 006 1 54627836E 006 lt END gt This command returns measured results for the number of data points peak num wav1 wav2 peak num Number of peaks 0 to 1024 lt wav1 gt l
31. the maximum frequency peak MIN Specifies the minimum frequency peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified frequency MEAS POW FREQ gt 1 93596757E 014 lt END gt f you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change Ifthe parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in Hz SCALar POWer WAVelength Queries the peak wavelength in single view mode for single measurement View Mode is set to MULTI MEASure SCALar POWer WAVelength lt wsp gt lt expected_value gt lt expected_value gt wavelength MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum wavelength peak MIN Specifies the minimum wavelength peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavelength MEAS POW WAV gt 1 54854010E 006 lt END gt If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m MEASure SCALar POWer WNUMber Function Syntax Example Description Queries the peak wavenumber in single view mode for single measurement View Mode is set to MULTI MEASure SCALar POWer WNUMber lt wsp gt lt expect
32. threshold value lt NRf gt MINimum MAXimum DEFault MINimum 40 dBm MAXimum 10 dBm DEFault 20 dBm Example CALC2 PTHR ABS 20 CALC2 PTHR ABS gt 2 00000000E 001 lt END gt CALCulate2 PTHReshold RELative Function Sets or queries the peak detection threshold value as a relative value in reference to the maximum power peak Syntax CALCulate2 PTHReshold RELative lt wsp gt lt thresh gt CALCulate2 PTHReshold RELative lt thresh gt threshold value MINimum MAXimum DEFault lt integer gt MINimum 0 dB MAXimum 40 dB DEFault 10 dB Example CALC2 PTHR 9 CALC2 PTHR gt 9 lt END gt 5 14 IM AQ6150 17EN 5 5 Device specific Commands CALCulate2 PTHReshold MODe Function Sets or queries the definition of the peak detection threshold value Syntax CALCulate2 PTHReshold MODe lt wsp gt RELat ive ABSolute CALCulate2 PTHReshold MODe RELative Threshold value defined as a relative value ABSolute Threshold value defined as an absolute value Example CALC2 PTHR MOD REL CALC2 PTHR MODE gt REL lt END gt CALCulate2 WLIMit STARt FREQuency Function Sets or queries the start frequency of the measurement range limit of peak detection Syntax CALCulate2 WLIMit STARt FREQuency lt wsp gt lt freq gt CALCulate2 WLIMit STARt FREQuency freq start frequency lt NRf gt MINimum MAXimum MINimum 181 69 THz MAXimum Stop frequency 0 1 THz Example
33. you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in dBm or W depending on the parameter READ SCALar POWer FREQuency Function Syntax Example Description Queries the most recent peak s frequencies in single view mode for single measurement READ SCALar POWer FREQuency lt wsp gt lt expected_value gt lt expected_value gt frequency MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum frequency peak MIN Specifies the minimum frequency peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified frequency READ POW FREQ gt 1 93596574E 014 lt END gt f you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in Hz IM AQ6150 17EN 5 37 spuewwog ajoulas Hu 5 5 Device specific Commands READ SCALar POWer WAVelength SENSe Sub System Commands Function Queries the most recent peak s wavelengths in single view mode for single measurement SENSe CORRection DEVice Syntax READ SCALar POWer WAVelength Function Sets or queries the type of light under lt wsp gt lt expected_value gt m
34. 00E 006 lt END gt Description Query results are returned in m This is an overlapping command IM AQ6150 17EN 5 23 spuewwog ajoulas Hu 5 5 Device specific Commands DISPlay WINDow2 TRACe SCALe LEFT Sets or queries the start frequency of the horizontal scale on the spectrum window DISPlay WINDow2 TRACe SCALe LEFT FREQuency wsp frequency DISPlay WINDow2 TRACe SCALe DISP WIND2 TRAC LEFT FREO 190THZ DISP WIND2 TRAC LEFT FREQ gt FREQuency Function Syntax LEFT FREQuency frequency start frequency lt NRf gt MINimum MAXimum MINimum 181 69 THz MAXimum Stop frequency 0 1 THz Example 1 90000000E 014 lt END gt Description Query results are returned in Hz This is an overlapping command DISPlay WINDow2 TRACe SCALe LEFT WNUMber Function Syntax Example Description Sets or queries the start wavenumber of the horizontal scale on the spectrum window DISPlay WINDow2 TRACe SCALe LEFT WNUMber wsp wnumber gt DISPlay WINDow2 TRACe SCALe LEFT WNUMber lt wnumber gt start wavenumber lt NRf gt MINimum MAXimum MINimum 6060 cm 1 MAXimum Stop waven umber 1 cm 1 DISP WIND2 TRAC LEFT WNUM 609000 DISP WIND2 TRAC LEFT WNUM gt 6 09000000E 004 lt END gt Query results are returned in m 1 This is an overlapping command DISPlay WINDow2 TRACe SCALe RIGHt WAVelength Sets or queries the stop waveleng
35. 1 DISP COL gt 1 Description This is an overlapping command DISPlay WINDow Function Sets the on off state of the display Syntax DISPlay WINDow lt wsp gt OFF 0 ON 1 DISPlay WINDow OJOFF Display off 1 ON Display on Example DISP OFF DISP gt 0 Description This is an overlapping command DISPlay MARKer MAXimum Function Sets the current peak to the maximum power peak Syntax DISPlay MARker MAXimum Example DISP MARK MAX Description This is an overlapping command DISPlay MARKer MAXimum LEFT Function Moves the current peak to the left adjacent peak Syntax DISPlay MARKer MAXimum LEFT Example DISP MARK MAX LEFT Description This is an overlapping command DISPlay MARKer MAXimum NEXT Function Moves the current peak to the peak with the next lower power Syntax DISPlay MARker MAXimum NEXT Example DISP MARK MAX NEXT Description This is an overlapping command DISPlay MARKer MAXimum PREVious Function Moves the current peak to the peak with the next higher power Syntax DISPlay MARker MAXimum PREVious Example DISP MARK MAX PREV Description This is an overlapping command 5 22 IM AQ6150 17EN 5 5 Device specific Commands DISPlay MARKer MAXimum RIGHt Function Moves the current peak to the right adjacent peak Syntax DISPlay MARker MAXimum RIGHt Example DISP MARK MAX RIGH Description This is an overlapping command DISPlay UNIT WAVelength
36. 1 lt END gt Description This cannot be set to ON if any of the following is already being measured MAX MIN MIN Ref Power or Wavelength CALCulate3 DRIFt MINimum STATe Function Sets or queries the on off state of the MIN measurement of drift measurement Syntax CALCulate3 DRIFt MINimum STATe lt wsp gt 0 OFF 1 ON CALCulate3 DRIFt MINimum STATe OJOFF The MIN value is not measured 1 ON The MIN value is measured Example CALC3 DRIF MIN ON CALC3 DRIF MIN gt 1 lt END gt Description This cannot be set to ON if any of the following is already being measured MAX MIN MAX Ref Power or Wavelength CALCulate3 DIRFt POWer STATe Function Sets or queries the on off state of the power measurement of drift measurement Syntax CALCulate3 DRIFt POWer STATe lt wsp gt 0 OFF 1 ON CALCulate3 DRIFt POWer STATe OJOFF The POWER value is not measured 1 ON The POWER value is measured Example CALC3 DRIF POW ON CALC3 DRIF POW gt 1 lt END gt Description This cannot be set to ON if any of the following is already being measured MAX MIN MAX MIN Ref or Wavelength CALCulate3 DRIFt WAVelength STATe Function Sets or queries the on off state of the wavelength measurement of drift measurement Syntax CALCulate3 DRIFt WAVelength STATe lt wsp gt 0 OFF 1 ON CALCulate3 DRIFt WAVelength STATe OJOFF The wavelength value is not measured 1 ON The waveleng
37. 150 AQ6151 has a 10 stage error buffer IM AQ6150 17EN 1 3 9JnjeaJ 01 U0D 9j0ulaM Chapter2 GP IB Interface 2 1 Using the GP IB Interface to Connect to a Controller GP IB Cable The AQ6150 AQ6151 is equipped with an IEEE St d 488 1978 24 pin GP IB connector Use a GP IB cable that conforms to this standard Connection Procedure GP IB port Connect this port to a PC to control the AQ6150 AQ6151 from the PC e eyieyul gl do Turn off the AQ6150 AQ6151 and the device that you will connect to the AQ6150 AQ6151 Connect a GP IB cable to the GP IB port on the rear panel of the AQ6150 AQ6151 CAUTION Be sure to turn off the PC and the AQ6150 AQ6151 before you connect or remove communication cables Otherwise erroneous operation may result or the internal circuitry may break Precautions to Be Taken When Connecting the Cable Firmly tighten the screws on the GP IB cable connector Multiple cables can be used to connect multiple devices However no more than 15 devices including the controller can be connected on a single bus When connecting multiple devices you must assign a unique address to each device Use cables that are no longer than 2 m in length to connect devices Make sure the total length of all cables does not exceed 20 m When devices are communicating have at least two thirds of the devices on the bus turned on IM AQ6150 17EN 2 1 2 1 Using the GP IB Interface t
38. 1870974 1 30913538E 06 6 67785905 2 16 IM AQ6150 17EN Chapter3 Ethernet 3 1 Using the Ethernet Interface to Connect the Devices You can use the AQ6150 AQ6151 s Ethernet interface to connect to a LAN and control the AQ6150 AQ6151 from a PC Ethernet Interface Specifications Number of ports 1 Electrical and mechanical specifications IEEE802 3 compliant Transmission system Ethernet 10BASE T 100BASE TX 1000BASE T Data rate 10 Mbps 100 Mbps 1000 Mbps Communication protocol TCP IP Connector RJ45 Port number Any port between 1024 to 65535 except 1025 and 20001 Connection Procedure Connect a UTP Unshielded Twisted Pair or STP Shielded Twisted Pair cable that is connected to a hub or other network device to the Ethernet port on the AQ6150 AQ6151 rear panel Precautions to Be Taken When Connecting Cables To connect the AQ6150 AQ6151 to a PC be sure to use straight cables and to connect through a hub or router Use straight category 5 or better UTP cables IM AQ6150 17EN 3 1 T B 3 2 Ethernet Port Features Remote Control Remote Monitoring Sharing Directories You can use the ETHERNET port to control the AQ6150 AQ6151 over a network You can control the AQ6150 AQ6151 remotely using the commands are the same as those used to control the AQ6150 AQ6151 through the GP IB interface Remoto commands Message Terminator The following message terminators can be used on th
39. 2 gt amp bit12 4 bit12 lt bit 12 Not stabilize bit 11 me bit11 1 bit11 bit 11 Delta Reference bit 10 amp bit 10 bit10 lt bit10 Drift Reference bit 9 amp bit 9 bit9 lt bit9 Maximum Signals bit8 a bit8 not used bit 8 8 4 bit 8 bit 7 TOR bit 7 bit 6 gt amp bit 6 bit 5 On bit 5 bit 4 8 4 bit 4 3 2 bit7 bit7 not used bit6 4 bit6 not used bit5 bit5 not used bit4 bit4 Over Temperature tttttt tt bit3 4 bit3 Maximum Power bit 3 amp bit bit 2 amp bi bit2 lt bit2 notused bit 1 gt amp lt bit1 bit1 4 bit1 not used bit 0 8 bitO bitO bito not used STAT QUES ENAB STAT QUES EVEN STAT QUES COND Questionable Event Enable Register Questionable Event Register Questionable Condition Register 4 12 IM AQ6150 17EN 4 5 Questionable Status Register Questionable Status Register Description Questionable Condition Register Bit Event Description Decimal Note value Bit 15 Not used Reserved always 0 0 Bit 14 Not used Reserved always 0 0 Bit 13 RefLaser The end of reference light 8192 Setto 1 when t
40. 44E 006 1 54854097E 006 1 54402055E 006 lt END gt This command returns measured results for the number of data points lt peak_num gt lt wav1 gt lt wav2 gt lt peak_num gt Number of peaks 0 to 1024 lt wav1 gt lt wav2 gt Peak wavelengths If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m MEASure ARRay POWer WNUMber Function Syntax Example Description Queries the peak wavenumbers in multi view mode for single measurement View Mode is set to MULTI MEASure ARRay POWer WNUMber lt wsp gt lt expected_value gt lt expected_value gt wavenumber MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum wavenumber peak MIN Specifies the minimum wavenumber peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavenumber MEAS ARR POW WNUM gt 3 6 46241790E 005 6 45769160E 005 6 47659780E 005 lt END gt This command returns measured results for the number of data points lt peak_num gt lt wnum1 gt lt wnum2 gt lt peak_num gt Number of peaks 0 to 1024 wnum1 wnum2 Peak wavenumbers If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the
41. AGNitude lt wsp gt lt offset gt MAX Specifies the maximum wavenumber ENSET ci HIE dessus eji ection e eak P a MAGNitude MIN Specifies the minimum wavenumber peak ofiseb power Blas Wi DEF Specifies the selected peak stis mIMAXimum imu imu lt NRf gt Specifies the peak closest to the MiNimum 10 db imum specified wavenumber Maoximomeded db imum Example READ POW WNUM gt 6 45768740E 005 lt END gt Example E T Koh CORR OFFS gt 1 20000000E 000 lt END gt Description If you specify a parameter the current mE Description Query results are returned in dB selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m 1 5 38 IM AQ6150 17EN 5 5 Device specific Commands STATus Sub System Commands Overview The commands in this group are used to make settings and queries related to the status report There are no front panel keys that correspond to the commands in this group For information about status reports see chapter 4 STATus OPERation CONDition Function Queries the contents of the operation status condition register Syntax STATus OPERation CONDition Example STAT OPER COND 42048 Description This is an overlapping command STATus OPERation ENABle Function Sets or queries the contents of the operation status enable register Syntax STATu
42. ANALYSIS Soft Key Remote Command Note FABRY PEROT LASER CALCulate3 FPERot STATe DRIFT MEASUREMENT CALCulate3 DRIFt STATe PARAMETER SETTING RESET CALCulate3 DRIFt REFerence RESEt DISPLAY MODE DELTA CALCulate3 DRIFt PRESet MAX CALCulate3 DRIFt MAXimum STATe MIN CALCulate3 DRIFt MINimum STATe MAX MIN CALCulate3 DRIFt DIFFerence STATe WAVELENGTH CALCulate3 DRIFt WAVelength STATe POWER CALCulate3 DIRFt POWer STATe 5 4 IM AQ6150 17EN 5 2 Table of Soft Key to Remote Command Assignments FILE Soft Key Remote Command Note WRITE MEMORY MMEMory CDRive MAKE DIRECTORY MMEMory MDIRectory FILE SORT EXECUTE MMEMory STORe READ MEMORY MMEMory CDRive FILE SORT EXECUTE MMEMory LOAD ITEM SELECT Specified when writing is executed REMOVAL USB STORAGE MMEMory REMove FILE OPERATION MEMORY MMEMory CDRive DELETE MMEMory DELete COPY MMEMory COPY RENAME MMEMory REName MAKE DIRECTORY MMEMory MDIRectory FILE SELECT Other commands have a parameter for specifying the file name IM AQ6150 17EN 5 5 spuewwog sjowsay BH 5 3 Remote Command Tree The following tables lists the parameters of each command For information on which soft key each command corresponds to see section 5 2 For detailed descriptions of parameters see section 5 5 Common Commands
43. AQ6150 AQ6151 The response message challenge string from the AQ6150 AQ6151 is received The MD5 hash of the received challenge string and password is calculated when the user name is anonymous the password can be anything The resultant hash data lowercase hexadecimal x 32 characters is sent to the AQ6150 AQ6151 and the response message is received When a READY message is received from the AQ6150 AQ6151 the authentication is complete The AQ6150 AQ6151 REMOTE LED illuminates and remote command transmission becomes possible If the user name or password is incorrect authentication will fail and the connection will be released Function Turns off the connection and switches to local mode Syntax CI Example C Note LOSE LOSE If you start the AQ6150 AQ6151 when it is connected to a network it may take a few minutes for the start procedure to finish The progress of initialization is indicated at the bottom of the screen with indications from STEP 1 6 to STEP 6 6 When the start procedure is finished and the measurement screen appears it may take a few more minutes before you can access the AQ6150 AQ6151 from a PC over the network IM AQ6150 17EN 3 4 Sample Program The following shows an example of controlling the AQ6150 AQ6151 remotely using the GP IB port Model PC AT Computer Language Visual Basic 2008 Compornent NET Framework 3 5 Sample Program 1 Sample Program for Making
44. AVelength FREQuency WNUMber Wavenumber Example CALC3 FPER SIGM gt 1 32524662E 009 lt END gt Description Query results are returned in m for wavelength Hz for frequency and m 1 for wavenumber This is an overlapping command CALCulate3 POINts Function Queries the number of data points in the response to a CALCulate3 DATA command Syntax CALCulate3 POINts Example CALC3 POIN gt 4 lt END gt Description The maximum number of response data points is 1024 This is an overlapping command CALCulate3 PRESet Function Sets delta measurement drift measurement and FP LD analysis to OFF Syntax CALCulate3 PRESet Example CALC3 PRES CONFigure Sub System Commands Overview This subsystem is a function for setting or querying how the peak detection results of the AQ6150 AQ6151 are displayed The commands in this subsystem change the view mode of the AQ6150 AQ6151 just like the panel keys change the view The displayed contents will change as a result of these commands Executing a CONFigure SCALar command changes the AQ6150 AQ6151 display to single view Executing a CONFigure ARRay command changes the AQ6150 AQ6151 display to multi view CONFigure Function Queries the current display settings Syntax CONFigure Example CONF gt ARR POW DEF DEF lt END gt Description The display conditions specified by CONFigure commands are returned in the command syntax singl
45. C message SPE Serial Poll Enable Sets the talker function on all devices on the bus to serial polling mode The controller will poll each device one by one SPD Serial Poll Disable Clears the serial polling mode of the talker function on all devices on the bus PPU Parallel Poll Unconfigure is not supported What Are Interface Messages Interface messages are also referred to as interface commands or bus commands They are commands that are issued by the controller They are classified as follows Uni line Messages A single control line is used to transmit uni line messages The following three types are available IFC Interface Clear REN Remote Enable IDY Identify 2 8 IM AQ6150 17EN 2 5 Responses to Interface Messages Multi line Messages Eight data lines are used to transmit multi line messages The messages are classified as follows Address Commands Some address commands are valid when a device is designated as a listener and some are valid when it is designated as a talker The following five commands are available Commands available to a device designated as a listener GTL Go To Local SDC Selected Device Clear PPC Parallel Poll Configure GET Group Execute Trigger Commands available to a device designated as a talker TCT Take Control Universal commands Universal commands are available to all devices regardless of their listener or talker designation The following five commands ar
46. C2 WLIM ON CALC2 WLIM gt 1 lt END gt CALCulate2 WLIMit STOP FREQuency Function Sets or queries the stop frequency of the measurement range limit of peak detection Syntax CALCulate2 WLIMit STOP FREQuency lt wsp gt lt frequency gt CALCulate2 WLIMit STOP FREQuency lt frequency gt stop frequency lt NRf gt MINimum MAXimum MINimum Start frequency 0 1 THz MAXimum 236 06 THz Example CALC2 WLIM STOP FREQ 195THZ CALC2 WLIM STOP FREQ gt 1 95000000E 014 lt END gt Description Query results are returned in Hz CALCulate2 WLIMit STOP WAVelength Function Sets or queries the stop wavelength of the measurement range limit of peak detection Syntax CALCulate2 WLIMit STOP WAVelength lt wsp gt lt wavelength gt CALCulate2 WLIMit STOP WAVelength lt wavelength gt stop wavelength lt NRf gt MINimum MAXimum MINimum Start wavelength 1 nm MAXimum 1650 nm Example CALC2 WLIM STOP 1640NM CALC2 WLIM STOP gt 1 64000000E 006 lt END gt Description Query results are returned in m IM AQ6150 17EN spuewwog 3Jow y 5 5 Device specific Commands CALCulate2 WLIMit STOP WNUMber Function Sets or queries the stop wavenumber of the measurement range limit of peak detection Syntax CALCulate2 WLIMit STOP WNUMber lt wsp gt lt wnumber gt CALCulate2 WLIMit STOP WNUMber lt wnumber gt wavenumber lt NRf gt
47. CALCulate3 FPERot MODE SPACing Function Syntax WAVelength FREQuency WNUMber WAVelength FREQuency WNUMber Wavenumber CALC3 FPER MODE SPAC gt 1 50681284E 009 lt END gt Example Description Query results are returned in m for wavelength Hz for frequency and m 1 for wavenumber This is an overlapping command CALCulate3 FPERot PEAK Function Queries the peak value of FP LD analysis Syntax CALCulate3 FPERot PEAK WAVelength FREQuency WNUMber POWer DBM WATTs WAVelength FREQuency WNUMber Wavenumber POWer Example CALC3 FPER PEAK gt 1 54742260E 006 lt END gt Description Query results are returned in m for wavelength Hz for frequency and m 1 for wavenumber The power is returned in dBm or W depending on the parameter This is an overlapping command CALCulate3 FPERot POWer Function Queries the total power of FP LD analysis Syntax CALCulate3 FPERot POWer DBM WATTs Example CALC3 FPER POW gt 1 21722665E 000 lt END gt Description Query results are returned in dBm or W depending on the parameter This is an overlapping command IM AQ6150 17EN 5 19 spuewwog sjowsay Hu 5 5 Device specific Commands CALCulate3 FPERot SIGMa Function Queries the o value of FP LD analysis Syntax CALCulate3 FPERot SIGMa WAVelength FREQuency WNUMber W
48. DISPlay WINDow2 STATe AUTO SCALE DISPlay WINDow2 TRACe SCALe ASCale SCALE CENTER WL DISPlay WINDow2 TRACe SCALe CENTer Center WAVelength wavelength CENTER FREQ DISPlay WINDow2 TRACe SCALe CENTer FREQuency Center frequency CENTER WNUM DISPlay WINDow2 TRACe SCALe CENTer WNUMber Center wavenumber SPAN WL DISPlay WINDow2 TRACe SCALe SPAN WAVelength Wavelength span SPAN FREQ DISPlay WINDow2 TRACe SCALe SPAN FREQuency Frequency span SPAN WNUM DISPlay WINDow2 TRACe SCALe SPAN WNUMber Wavenumber span START WL DISPlay WINDow2 TRACe SCALe LEFT WAVelength Start wavelength START FREQ DISPlay WINDow2 TRACe SCALe LEFT FREQuency Start frequency START WNUM DISPlay WINDow2 TRACe SCALe LEFT WNUMber Start wavenumber STOP WL DISPlay WINDow2 TRACe SCALe RIGHt Stop wavelength WAVelength STOP FREQ DISPlay WINDow2 TRACe SCALe RIGHt FREQuency Stop frequency STOP WNUM DISPlay WINDow2 TRACe SCALe RIGHt WNUMber Stop wavenumber PEAK CENTER DISPlay WINDow2 TRACe SCALe CENTer PEAK INITIAL DISPlay WNDow2 TRACe SCALe INITialize LIST BY OVER VIEW DISPLAY LABEL DISPlay WINDow TEXT DATA DISPLAY OFF DISPlay WINDow SEARCH Soft Key Remote Command Note PEAK DISPlay MARKer MAXimum NEXT POWER DISPlay MARKer MAXimum NEXT PREV POWER DISPlay MARKer MAXimum PREVious NEXT WL DISPlay MARKer MAXimum RIGHt PREV WL DISPlay MARKer MAXimum LEFT LIST BY AUTO PEAK SEARCH CALCulate2 ASEaech
49. DL850 17EN App 1 xipueddy E Appendix 1 About the IEEE 488 2 1992 Standard 20 The extent of the self test using the TST command See section 5 4 Common Commands 21 The structure of the extended return status See chapter 4 22 Whether each command is processed in an overlapped manner or sequentially See chapter 5 23 The description of the execution of each command See the explanations of each command s function in chapter 5 and the user s manuals IMAQ6150 01EN and IMAQ6151 02EN App 2 IM DL850 17EN
50. Function Sets or queries the wavelength unit Syntax DISPlay UNIT WAVelength lt wsp gt NM THZ ICM DISPlay UNIT WAVelength NM Wavelength nm THZ Frequency THz ICM Wavenumber cm 1 Example DISP UNIT WAV NM DISP UNIT WAV NM Description This is an overlapping command DISPlay WINDow TEXT DATA Function Sets or queries the label text on the display Syntax DISPlay WINDow TEXT DATA lt wsp gt lt string gt DISPlay WINDow TEXT DATA string Label string up to 52 characters excluding the double quotation marks Example DISP TEXT DATA AQ6150 Optical Wavelength Meter DISP TEXT DATA AQ6150 Optical Wavelength Meter lt END gt Description This is an overlapping command DISPlay WINDow STATe Sets or queries the on off state of the multi wavelength display window Syntax DISPlay WINDow STATe lt wsp gt 0 OFF 1 ON DISPlay WINDow STATe OJOFF Multi wavelength display window off 1 ON Multi wavelength display window on DISP STAT ON Function Example DISP STAT gt 1 lt END gt Description This is an overlapping command DISPlay WINDow2 STATe Function Sets or queries the on off state of the spectrum window Syntax DISPlay WINDow2 STATe lt wsp gt 0 OFF 1 ON DISPlay WINDow2 STATe OJOFF Spectrum window off ON Spectrum window on Example DISP WIND2 STAT ON DISP WIND2 STAT gt 1 lt END gt
51. IM AQ6150 17EN 4 2 Status Byte Register Configuration The following figure shows the configuration of the status byte register The register details and operation comply with IEEE488 2 The OPS and QUS bits are expansions used by the AQ6150 AQ6151 S Service Request Enable RE sia sibay snjejs S When STB sent Y During serial Generates poll service request Y i bit7 Ras mss bita i STB Operation Event Standard Event Status Status Status Bytes Register Output buffer Questionable Event Status Status Byte Register Description Bit 7 OPS Operation status summary bit 128 Bit 6 RQS MSS Set to 1 when there are one or more service requests 64 Bit 5 ESB Standard Event Status Register summary bit 32 Bit 4 MAV Set to 1 when data exists in the output buffer 16 Bit 3 QUS Questionable status summary bit 8 Bit 2 Error Queue Setto 1 when there is an error 4 Bit 1 None Not used always 0 0 Bit 0 None Not used always 0 0 IM AQ6150 17EN 4 3 4 2 Status Byte Register Status Byte Register Reading You can read the Status Byte Register through serial polling or the STB common query The bit 6 information varies depending on which method you use to read the register Serial polling The RQS message is read as bit 6 information After the register is read the RQS message is cleared STB common query MSS summary mess
52. LCulate2 PTHReshold RELative Relative value CALCulate2 PTHReshold ABSolute Absolute value PEAK EXCURSION CALCulate2 PEXCursion WAVELENGTH LIMIT LIMITTING MODE CALCulate2 WLIMit STATe LIMIT START WL CALCulate2 WLIMit STARt FREQuency Frequency CALCulate2 WLIMit STARt WAVelength Wavelength CALCulate2 WLIMit STARt WNUMber Wavenumber LIMIT STOP WL CALCulate2 WLIMit STOP FREQuency Frequency CALCulate2 WLIMit STOP WAVelength Wavelength CALCulate2 WLIMit STOP WNUMber Wavenumber AVERAGE TIMES CALCulate2 COUNt WAVELENGTH UNIT UNIT WL POWER UNIT UNIT POWer MEAS WL SENSe CORRection MEDium SYSTEM Soft Key Remote Command Note POWER OFFSET SENSe CORRection OFFSet MAGNitude PARAMETER INITIALIZE MEAS PARAM CLEAR SYSTem PRESet BUZZER CLICK SYSTem BUZZer CLICk WARNING SYSTem BUZZer WARNing SET CLOCK SYSTem DATE Date SYSTem TIME Time COLOR MODE DISPlay COLor REF LASER SAVING REF LASER SYSTem REFLaser STATe IM AQ6150 17EN 5 3 spuewwog ajouias BH 5 2 Table of Soft Key to Remote Command Assignments DISPLAY Soft Key Remote Command Note VIEW MODE CONFigure SCALar POWer SINGLE WL CONFigure ARRay POWer MULTI WL CALCulate3 DELTa WPOWer STATe DELTA WL LIST ONLY DISPlay WINDow STATe SPECTRUM DISPLAY
53. LTa POWer STATe Function Syntax Example Sets or queries the on off state of power delta measurement CALCulate3 DELTa POWer STATe lt wsp gt 0 OFF 1 ON CALCulate2 DELTa POWer STATe O OFF 1 ON Delta is measured CALC3 DELT POW ON CALC3 DELT POW gt 1 lt END gt Delta is not measured CALCulate3 DELTa PRESet Function Syntax Example Aborts delta measurements CALCulate3 DELTa PRESet CALC3 DELT PRES CALCulate3 DELTa REFerence FREQuency Function Sets or queries the reference peak of delta measurement in frequency Syntax CALCulate3 DELTa REFerence FREQuen cy lt wsp gt lt frequency gt CALCulate3 DELTa REFerence FREQuency lt frequency gt frequency lt NRf gt MINimum MAXimum MINimum 181 6924 THz MAXimum 236 057 THz Example CALC3 DELT REF FREO 193 8THZ CALC3 DELT REF FREQ gt 1 93878971E 014 lt END gt Description Query results are returned in Hz The peak closest to the frequency specified by this command becomes the reference Therefore the specified frequency and the query result may differ CALCulate3 DELTa REFerence POWer Function Syntax Example Description Queries the power of the reference peak of delta measurement CALCulate3 DELTa REFerence POWer CALC3 DELT REF POW gt 1 02600000E 001 lt END gt Query results are returned in dBm or W according to the setting CALCul
54. MAX values will be returned You can turn on or off each item with commands For details see the descriptions of the relevant commands f you specify the ALL parameter the response will contain the following values separated by commas in this order DROPped MAX POWer MIN POWer MAX MIN POWer REF POWer POWer MAX WAVelength MIN WAVelength MAX MIN WAVelength REF WaAVelength and WAVelength Specifying the ALL WAVlength parameter is the same as specifying the ALL parameter f you specify the ALL FREQuency parameter the response will contain the following values separated by commas in this order DROPped MAX POWer MIN POWer MAX MIN POWer REF POWer POWer MAX FREQuency MIN FREQuency MAX MIN FREQuency REF FREQuency and FREQuency 5 16 IM AQ6150 17EN 5 5 Device specific Commands f you specify the ALL WNUMber parameter the response will contain the following values separated by commas in this order DROPped MAX POWer MIN POWer MAX MIN POWer REF POWer POWer MAX WNUMber MIN WNUMber MAX MINWNUMber REF WNUMber and WNUMber The response data format is shown below DROPped 0 Normal data 1 Drop data POWer WAVelength FREQuency WNUMber Floating point number For delta measurement Returns the values of items specified with parameters in floating point numbers for all detected peaks Each value separated by a comma Power Wavelength Frequency Wnumber CALCulate3 DE
55. MINimum DEFault NRf 5 21 ARRay POWer MAXimum MINimum DEFault NRf 5 21 FREQuency MAXimum MINimum DEFault NRf 5 21 WAVelength MAXimum MINimum DEFault NRf 5 21 WNUMber MAXimum MINimum DEFault NRf 5 22 DISPlay Command Parameters Reference Page DISPlay COLor O 1 5 22 WINDow 0 OFF 1 0ON 5 22 MARKer MAXimum none 5 22 LEFT none 5 22 NEXT none 5 22 PREVious none 5 22 RIGHt none 5 23 UNIT WAVelength NM THZ ICM 5 23 WINDow TEXT DATA lt string gt 5 23 STATe O OFF 1 ON 5 23 WINDow2 STATe OJOFFJ 1 ON 5 23 TRACe SCALe AUTOmeasure none 5 23 ASCale none 5 23 INITialize none 5 23 LEFT WAVelength NR MINimum MAXimum 5 23 FREQuency NR MINimum MAXimum 5 24 WNUMber NR MINimum MAXimum 5 24 RIGHt WAVelength NR MINimum MAXimum 5 24 FREQuency NRf MINimum MAXimum 5 24 WNUMber NRf MINimum MAXimum 5 24 CENTer WAVelength lt NRf gt 5 24 FREQuency lt NRf gt 5 25 WNUMber lt NRf gt 5 25 PEAK none 5 25 SPAN WAVelength lt NRf gt MAXimum 5 25 FREQuency NR MAXimum 5 25 WNUMber NR MAXimum 5 25 5 8 IM AQ6150 17EN 5 3 Remote Command Tree FETCh Comman
56. One Single Measurement and Displaying the Results Wavelength Information Power Information and FP LD Analysis Results on the Screen via Ethernet Source Code Imports System Imports System IO Imports System Net Sockets Imports System Text Module EtherSingleMeasure Sample Program for Making One Single Measurement and Displaying the Results Wavelength Information Power Information and FP LD Analysis Results on the Screen via Ethernet Sub Main Try Dim wlmAddr As String Dim wlmPort As Integer Dim sockStream As NetworkStream Dim tcpObj As TcpClient Dim replyString As String Dim wavArray As Double Dim powArray As Double Dim fwhm ctrWl totalPwr sigma As Double Dim username passwd As String Dim maxPeakPower maxPeakWl As Double wlmAddr 192 168 0 1 Wavelength meter IP address wlmPort 10001 Remote port number username anonymous User name passwd Password tcpObj New TcpClient tcpObj Connect wlmAddr wlmPort TCP connection sockStream tcpObj GetStream Dim recvBuffer As String TcopWriteLine open username sockStream Send an OPEN command with the user name recvBuffer TcpReadLine sockStream If String Compare recvBuffer AUTHENTICATE CRAM MD5 lt gt 0 Then sockStream Dispose Exit Sub Error if the response is not AUTHENTICATE CRAM MD5 End If IM AQ6150 17EN 3 9 jeujeuj3 3 4 Sample Program TcpWriteLine passwd sockStream Send the passw
57. RR CR Le ERA ERE Ee uu dE eR o RoEuSa 5 6 54 Common Command Sss s tede tan e pene ite ERR D rne E ER Eo E FER RUE FL de EE ERR EA Ei 5 12 5 5 Device specific Commands nerse E a E Ei 5 14 CALCulate2 Sub System Commands sse eee 5 14 CALCulate3 Sub System Commands see eene 5 16 CONFigure Sub System Commands sse 5 20 DISPlay Sub System Commands sse eene enne 5 22 FETCh Sub System Comtriarids iioii enne ce siege diae iraia 5 26 MEASure Sub System Commands sse ene 5 31 MMEMory Sub System Commands sse eene 5 34 READ Sub System Cornmards 4 ned died ek ais 5 36 SENSe Sub System Comnmands eerie eee te nente eia redi etch 5 38 STATus Sub System Commands essen nennen 5 39 SYSTem Sub System Commands sse 5 40 TRIGger Sub System Commands essen enne 5 41 UNIT Sub System Commands ciiin ennemi 5 42 IM AQ6150 17EN Contents Appendix Appendix 1 About the IEEE 488 2 1992 Standard IM AQ6150 17EN Chapter 1 1 1 Remote Control Feature Remote Interface You can use remote commands to control the AQ6150 AQ6151 The remote commands conform to SCPI Standard Commands for Programmable Instruments The AQ6150 AQ6151 is equipped with the following remote interfaces GP IB IEEE488 2 see chapter 2 Used to control the AQ6150 AQ6151 remote
58. ReadLine Receive data Exit Function End Function Function for reading block data from the TCP Socket and saving the data to a file Function TcpReadBlockData2File ByRef stream As NetworkStream ByVal filename As String As Integer Dim headerLen As Integer Dim dataLen As Integer Dim readLen As Integer IM AQ6150 17EN 3 11 jeujeuj3 3 4 Sample Program Dim file As New FileStream filename FileMode Create FileAccess Write Dim recvBuffer As Byte New Byte 1024 Dim ByteSharp As Byte Asc stream Read recvBuffer 0 1 Retrieve the first character If recvBuffer 0 lt gt ByteSharp Then Error if the first character is not a TcpReadBlockData2File 1 Exit Function End If stream Read recvBuffer 0 1 headerLen Integer Parse Encoding ASCII GetString recvBuffer Size of the area containing the data length information stream Read recvBuffer 0 headerLen Read the data length information area dataLen Integer Parse Encoding ASCII GetString recvBuffer Retrieve the data length information While dataLen 1024 readLen stream Read recvBuffer 0 1024 Read data 1024 bytes at a time file Write recvBuffer 0 readLen Write the retrieved data to the file dataLen dataLen readLen End While readLen stream Read recvBuffer 0 recvBuffer Length Retrieve the last piece of data file Write recvBuffer 0 dataLen Write the retrieved data to the file file Close T
59. Retrieve maximum power peak information Call TcpWriteLine FETC POW MAX sockStream Retrieve power information by specifying the peak with the maximum power replyString TcpReadLine sockStream maxPeakPower Convert ToDouble replyString Call TcpWriteLine FETC POW WAV sockStream Retrieve the wavelength of the peak specified by FETC POW MAX replyString TcpReadLine sockStream maxPeakWl Convert ToDouble replyString Console WriteLine Highest Peak Power 4 maxPeakPower ToString dBm Console WriteLine Highest Peak Wavelength maxPeakWl ToString nm Call TcpWriteLine CALC3 FPER ON sockStream Enable FP LD analysis Call TcpWriteLine CALC3 FPER FWHM sockStream Retrieve FWHM replyString TcpReadLine sockStream fwhm Convert ToDouble replyString 3 10 IM AQ6150 17EN 3 4 Sample Program Call TcpWriteLine CALC3 FPER MEAN sockStream Retrieve Center WL replyString TcpReadLine sockStream ctrWl Convert ToDouble replyString Call TcpWriteLine CALC3 FPER POW sockStream Retrieve Total Power replyString TcpReadLine sockStream totalPwr Convert ToDouble replyString Call TcpWriteLine CALC3 FPER SIGM sockStream Retrieve c replyString TcpReadLine sockStream sigma Convert ToDouble replyString Display the results FP LD analysis results Console WriteLine FP LD Analysis Console WriteLine FWHM fwhm 1000000000 ToSt
60. ST gt 0 The AQ6150 AQ6151 always returns 0 This is an overlapping command it to Continue Sets the AQ6150 AQ6151 so that it will not execute other commands until the execution of the current command is finished WAI WAI This is an overlapping command For details on the timing of command operation completion see page 4 8 IM AQ6150 17EN 5 13 spuewwog ajoulay Hu 5 5 Device specific Commands This section provides parameters and syntax examples of commands used to operate the functions of the AQ6150 AQ6151 For information on which soft key each command corresponds to see section 5 2 CALCulate2 Sub System Commands CALCulate2 ASEarch Function Sets or queries the on off state of auto peak wavelength power detection Syntax CALCulate2 ASEarch wsp ON OFF 0 1 CALCulate2 ASEarch ON 1 Auto peak detection on OFFJO Auto peak detection off Example CALC2 ASE ON CALC2 ASE gt 1 lt END gt CALCulate2 COUNt Function Sets or queries the peak detection average count Syntax CALCulate2 COUNt lt wsp gt lt average_times gt CALCulate2 COUNt average times average count lt integer gt MINimum MAXimum MINimum 1 MAXimum 100 Example CALC2 COUN 10 CALC2 COUN gt 10 lt END gt CALCulate2 DATA Function Queries the measured values of all detected peaks Syntax CALCulate2 DATA lt wsp gt FREQuency POWer WAVelength WNUMber FREQuency Queries t
61. Specifies the maximum power peak MINimum Specifies the minimum power peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified power FETC POW gt 7 28000000E 000 lt END gt If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in dBm or W depending on the parameter This is an overlapping command FETCh SCALar POWer FREQuency Function Syntax Example Description Queries the most recent peak s frequency value in single view mode FETCh SCALar POWer FREQuency wsp lt expected_value gt lt expected_value gt frequency MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum frequency peak MINimum Specifies the minimum frequency peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified frequency FETC POW FREQ gt 1 93596570E 014 lt END gt If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in Hz This is an overlapping command IM AQ6150 17EN 5 27 spuewwog ajoulas B 5 5 Device specific Commands FETCh Function Syntax Example Description FETCh Function Syntax Example Description SCALar POWer WAVelength Queries the most recent peak s wavelength value in single view mode FETCh SCALar
62. User s Manual AQ6150 AQ6151 Optical Wavelength Meter Remote Control YOKOGAWA IM AQ6150 17EN Yokogawa Meters amp Instruments Corporation 1st Edition Foreword Notes Trademarks Revisions 1st Edition December 2012 YMI Thank you for purchasing the AQ6150 AQ6151 Optical Wavelength Meter This remote control user s manual is for both the AQ6150 and AQ6151 It explains the following items GP B interface Ethernet interface Remote Commands To ensure correct use please read this manual thoroughly before beginning operation After reading this manual keep it in a convenient location for quick reference in the event a question arises during operation The following manuals including this one are provided as manuals for the AQ6150 AQ6151 Please read all manuals AQ6150 AQ6151 Manual Title Manual No Description AQ6150 AQ6151 Optical IM AQ6150 01EN The manual explains all the AQ6150 AQ6151 Wavelength Meter User s features other than the remote control features Manual AQ6150 AQ6151 Optical IM AQ6150 02EN Provided as a printed manual This guide Wavelength Meter Getting explains the handling precautions basic Started Guide operations and specifications of the AQ6150 AQ6151 AQ6150 AQ6151 Optical IM AQ6150 17EN This manual This manual explains the AQ6150 Wavelength Meter Remote AQ6151 communication interface features and Control User s Manual how to use them PDF files of all the manu
63. Writing You can clear the contents of the register Only clearing is allowed Writing is not allowed Clearing The register is cleared in the following circumstances When the register is read with the STATus OPERation EVENt query command When the AQ6150 AQ6151 is initialized with the STATus PRESet command When a CLS common command is received When the power is turned on Operation Event Enable Register Reading You can use the STATus OPERation ENABle query command to read the register Writing You can use the STATus OPERation ENABle command to write to the register Clearing The register is cleared in the following circumstances When data 0 is set with the STATus OPERation ENABle command When the power is turned on The register is not cleared in the following circumstances When a RST command is received When a CLS command is received When device clear DCL or SDC is specified Operation Positive Transition Filter Reading You can use the STATus OPERation PTRansition query command to read the filter Writing You can use the STATus OPERation PTRansition command to write to the filter Clearing The filter is cleared in the following circumstances When data 0 is set with the STATus OPERation PTRansition command When the power is turned on The filter is not cleared in the following circumstances When a RST command is received When a CLS command is received When device clear DCL
64. age is read as bit 6 information After the register is read the MSS message does not change All other bits are the same The read operation complies with IEEE488 2 Writing The register is written only when the status of the assigned status data structure changes The write operation complies with IEEE488 2 Clearing The CLS common command clears all event registers and queues except for the output queue and MAV bit The clear operation complies with IEEE488 2 Service Request Enable Register Reading You can use the SRE common query to read the register The register is not cleared when it is read The read operation complies with IEEE488 2 Writing You can use the SRE common command to write to the register The value for the unused bit bit 6 is always ignored The write operation complies with IEEE488 2 Clearing The register is cleared in the following circumstances When data 0 is set with the SRE common command When the power is turned on The register is not cleared in the following circumstances When a RST command is received When a CLS command is received When device clear DCL or SDC is specified The clear operation complies with IEEE488 2 4 4 IM AQ6150 17EN 4 3 Configuration Standard Event Status Register The following figure shows the configuration of the Standard Event Status Register The register details and operation comply with IEEE488 2 ESB Bit of the Stat
65. als above are included in the accompanying CD The contents of this manual are subject to change without prior notice as a result of continuing improvements to the instrument s performance and functionality The figures given in this manual may differ from those that actually appear on your Screen Every effort has been made in the preparation of this manual to ensure the accuracy of its contents However should you have any questions or find any errors please contact your nearest YOKOGAWA dealer Copying or reproducing all or any part of the contents of this manual without the permission of YOKOGAWA is strictly prohibited Microsoft Internet Explorer MS DOS Windows Windows NT and Windows XP are either registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries Adobe and Acrobat are either registered trademarks or trademarks of Adobe Systems Incorporated e In this manual the TM and symbols do not accompany their respective registered trademark or trademark names Other company and product names are registered trademarks or trademarks of their respective holders 1st Edition December 2012 All Rights Reserved Copyright 2012 Yokogawa Meters amp Instruments Corporation IM AQ6150 17EN Conventions Used in This Manual Safety Markings The following safety markings are used in this manual Improper handling or use can lead to injury to the user or damag
66. and the MD5 algorithm RSA Data Security Inc MD5 Message Digest Algorithm Set the user name and password using up to 11 characters The default user name is anonymous Remote Control Using Commands You can control the AQ6150 AQ6151 through the ETHERNET port The remote commands are the same as those used to control the AQ6150 AQ6151 through the GP IB interface Switching the Interface Set the interface that you want to use for remote control to GP IB or ETHERNET If you select GP IB or press the LOCAL key the LAN remote connection status is reset In all other cases the connection is retained until the controller disconnects SRQ Interrupts SRQ interrupts do not occur while the AQ6150 AQ6151 is being remotely controlled through the ETHERNET port Status Registers The status registers operate in the same manner as when the AQ6150 AQ6151 is being controlled remotely through the GP IB interface You can use the STB command to read the status register in the same manner as in serial polling over the GP IB interface Talker Data Transmission When the AQ6150 AQ6151 receives talker data from the controller PC it sends the data to the controller PC s buffer Retrieve the data by reading the controller PC s buffer data Connection The AQ6150 AQ6151 can connect to a single controller PC If a connection with a controller is established and a connection request is received from another controller the current connection will be r
67. ar Status Function Clears the error queue Standard Event Register and Status Byte Register Syntax CLS Example CLS Description This is an overlapping command ESE Standard Event Status Enable Function Sets or queries the Standard Event Enable Register Syntax ESE lt wsp gt lt integer gt ESE lt integer gt 0 to 255 ESE 255 ESE gt 255 lt END gt Description This is an overlapping command Example ESR Standard Event Status Register Function Queries the Standard Event Status Register value Syntax ESR Example ESR gt 128 lt END gt Description A query using ESR will clear the contents of the Standard Event Register This is an overlapping command IDN Identification Function Queries the device model serial number and firmware version Syntax IDN Response YOKOGAWA AQ615x lt SerialNo gt lt Version gt AQ615x Model lt SerialNo gt Serial number lt Version gt Firmware version Example IDN gt YOKOGAWA AQ6151 012345678 01 00 lt END gt Description This is an overlapping command OPC Operation Complete Function Sets or queries bit O the OPC bit of the Standard Event Register upon the completion of an overlap operation Syntax OPC OPC Example OPC OPC gt 1 Description To set bit 0 specify 1 When 1 is returned in response to a query the overlap operation is finished This is an overlapping command For details o
68. ate3 DELTa REFerence WAVelength Function Syntax Example Description Sets or queries the reference peak of delta measurement in wavelength CALCulate3 DELTa REFerence WAVelength lt wsp gt lt wavelength gt CALCulate3 DELTa REFerence WAVelength lt wavelength gt wavelength lt NRf gt MINimum MAXimum MINimum 1270 nm MAXimum 1650 nm CALC3 DELT REF 1547 4NM CALC3 DELT REF gt 1 54741791E 006 lt END gt Query results are returned in m The peak closest to the wavelength specified by this command becomes the reference Therefore the specified wavelength and the query result may differ CALCulate3 DELTa REFerence WNUMber Function Syntax Example Description Sets or queries the reference peak of delta measurement in wavenumber CALCulate3 DELTa REFerence WNUMber lt wsp gt lt wnumber gt CALCulate3 DELTa REFerence WNUMber lt wnumber gt wavenumber lt NRf gt MINimum MAXimum MINimum 6060 606 cm 1 MAXimum 7874 016 cm 1 CALC3 DELT REF WNUM 646700 CALC3 DELT REF WNUM gt 6 46710630E 005 lt END gt Query results are returned in m 1 The peak closest to the wavenumber specified by this command becomes the reference Therefore the specified wavenumber and the query result may differ IM AQ6150 17EN 5 17 spuewwog sjowsay Hu 5 5 Device specific Commands CALCulate3 DELTa WAVelength STATe
69. auto peak search function will be set to OFF Query results are returned in m 1 MEASure SCALar POWer Function Syntax Example Description Queries the peak power in single view mode for single measurement View Mode is set to MULTI MEASure SCALar POWer lt wsp gt lt expected_value gt lt expected_value gt power MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum power peak MIN Specifies the minimum power peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified power You can specify the power in unit of dBm or W If you omit the unit the AQ6150 AQ6151 will assume W MEAS POW gt 7 84000000E 000 lt END gt If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to lt NRf gt or DEF the auto peak search function will be set to OFF Query results are returned in dBm or W depending on the parameter 5 32 IM AQ6150 17EN 5 5 Device specific Commands MEASure Function Syntax Example Description MEASure Function Syntax Example Description SCALar POWer FREQuency Queries the peak frequency in single view mode for single measurement View Mode is set to MULTI MEASure SCALar POWer FREQuency lt wsp gt lt expected_value gt lt expected_value gt frequency MAXimum MINimum DEFault lt NRf gt MAX Specifies
70. avelength information in an array Call GpibWrite FETC ARR POW GpibDevice Retrieve measured power information replyString GpibRead GpibDevice Call SplitArrayData replyString powArray Store power information in an arra Y Q U IzZzzzzlzlz2lzllzlzlllllllllllllllllllllllllllllllll2lcl pm Display the results wavelength and power information ae ep ee ee Oe er Oe Se aye PT ee 2 7 Console WriteLine No Wavelength m Power dBm q For idx As Integer 1 To wavArray Length D Console WriteLine idx ToString wavArray idx 1 ToString powArray idx 1 ToString Call GpibWrite FETC POW MAX GpibDevice Retrieve power information by specifying the peak with the maximum power replyString GpibRead GpibDevice maxPeakPower Convert ToDouble replyString Call GpibWrite FETC POW WAV GpibDevice Retrieve the wavelength of the peak specified by FETC POW MAX replyString GpibRead GpibDevice maxPeakWl Convert ToDouble replyString Console WriteLine Highest Peak Power maxPeakPower ToString dBm Console WriteLine Highest Peak Wavelength maxPeakWl ToString nm Call GpibWrite CALC3 FPER ON GpibDevice Enable FP LD analysis Call GpibWrite CALC3 FPER FWHM GpibDevice Retrieve FWHM replyString GpibRead GpibDevice fwhm Convert ToDouble replyString Call GpibWrite CALC3 FPER MEAN GpibDevice Retrieve Center WL replyString Gp
71. ay POWer WNUMber lt wsp gt lt expected_value gt lt expected_value gt wavenumber MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum wavenumber peak MIN Specifies the minimum wavenumber peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavenumber READ ARR POW WNUM gt 3 6 46241320E 005 6 45768650E 005 6 46714090E 005 lt END gt This command returns measured results for the number of data points lt peak_num gt lt wnum1 gt lt wnum2 gt peak num Number of peaks 0 to 1024 lt wnum1 gt lt wnum2 gt Peak wavenumbers If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m 1 READ SCALar POWer Function Syntax Example Description Queries the most recent peak s power values for single view for single measurement READ SCALar POWer lt wsp gt lt expected_value gt lt expected_value gt power MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum power peak MIN Specifies the minimum power peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified power lt NRf gt Specifies the peak closest to the specified wavenumber READ POW gt 7 43000000E 000 lt END gt f
72. ch View Mode is set to multi view by specifying the wavelength CONFigure ARRay POWer WAVelength wsp expected values lt expected_value gt wavelength specifying the peak MAXimum MINimum DEFault lt NRf gt MAXimum Maximum wavelength peak MINimum Minimum wavelength peak DEFault Selected peak lt NRf gt Peak closest to the specified wavelength CONF ARR POW WAV 1548 5NM If the parameter is omitted DEF will be set If the parameter is not set to DEF the auto peak search function will be set to OFF IM AQ6150 17EN 5 21 spuewwog ajoulas Hu 5 5 Device specific Commands CONFigure ARRay POWer WNUMber Function Sets the peak for the screen in which View Mode is set to multi view by specifying the wavenumber Syntax CONFigure ARRay POWer WNUMber lt wsp gt lt expected_value gt lt expected_value gt wavenumber specifying the peak MAXimum MINimum DEFault lt NRf gt MAXimum Maximum wavenumber peak MINimum Minimum wavenumber peak DEFault Selected peak lt NRf gt Peak closest to the specified wavenumber Example CONF ARR POW WNUM 645760 Description If the parameter is omitted DEF will be set If the parameter is not set to DEF the auto peak search function will be set to OFF DISPlay Sub System Commands DISPlay COLor Function Sets or queries the display color Syntax DISPlay COLor lt wsp gt 0 1 DISPlay COLor 0 Black and white 1 Color Example DISP COL
73. commands are finished Overlap Commands The execution of overlap commands can start before an overlappable command is finished The execution of other commands does not start until an overlap command is finished The execution of an overlap command does not start until a sequential command is finished IM AQ6150 17EN 5 1 spuewwog ajoulas BH 5 1 Command Syntax and Types Sending Multiple Commands at Once You can create command strings using the commands described in section 5 5 Common Commands and section 5 6 Device Specific Commands and send them to the AQ6150 AQ6151 You can concatenate multiple commands in a single output statement by separating each command with a semicolon These commands will be executed in the order they are written Remote Command Syntax Short Form and Long Form The AQ6150 AQ6151 s remote commands can be written in the short form or long form In the command description in this manual the section of the command written in uppercase corresponds to the short form of the command For example the short form of the INITiate command is INIT the long form is INITIATE Uppercase and Lowercase The AQ6150 AQ6151 commands are not case sensitive Read values are written in all uppercase Values This instrument can receive values that are written in a variety of formats Values that the AQ6150 AQ6151 sends are in the basic form The mantissa is fixed to one integer digit with sign an
74. cpReadBlockData2File 0 End Function Sub SplitArrayData ByVal dataString As String ByRef dataArray As Double Dim peakNum As Integer Dim arrayDataStr As String dataString Split c Split the data by using a comma as the delimiter peakNum Integer Parse arrayDataStr 0 Retrieve the number of data values dataArray New Double peakNum 1 For idx As Integer 1 To arrayDataStr Length 1 dataArray idx 1 Convert ToDouble arrayDataStr idx Read all the data values Next End Sub End Module Execution Example No Wavelength m Power dBm 1 1 30678822E 06 14 3279541 2 1 30756963E 06 9 42082105 3 1 30835228E 06 2 23592107 4 1 30913555E 06 3 93065804 5 1 30991986E 06 13 5578301 Highest Peak Power 2 23592107 dBm Highest Peak Wavelength 1 30835228E 06 nm FP LD Analysis FWHM 1 47415158nm Sigma 0 625966702nm CTR WL 1308 55169nm TOTAL PWR 0 782282871dBm 3 12 IM AQ6150 17EN 3 4 Sample Program Sample Program 2 Sample Program for Performing Drift Analysis via Ethernet Source Code Imports Imports Imports Imports System System IO System Net Sockets System Text Module EtherDriftMeasure Sample Program for Performing Drift Analysis via Ethernet Sub Main Try Dim wlmAddr As String wlmPort As Integer SockStream As NetworkStream tcpObj As TcpClient replyString As String Dim Dim Dim Dim Dim peakNum As Integer Dim refPowData refWavData As Double
75. d Console ReadLine Wait for the user to press the Enter key End Try End Sub Sub TcpWriteLine ByVal commandStr As String ByRef stream As NetworkStream Dim writer As StreamWriter New StreamWriter stream Encoding ASCII IM AQ6150 17EN 3 15 3 4 Sample Program Dim ByteLf As Byte New Byte 10 writer NewLine Encoding ASCII GetString ByteLf The line feed code is LF writer AutoFlush True writer WriteLine commandStr Send data End Sub Function TcpReadLine ByRef stream As NetworkStream As String Dim reader As StreamReader New StreamReader stream Encoding ASCII TcpReadLine reader ReadLine Receive data Exit Function End Function Sub SplitArrayData ByVal dataString As String ByRef dataArray As Double Dim peakNum As Integer Dim arrayDataStr As String dataString Split c Split the string by using a comma as the delimiter peakNum arrayDataStr Length For idx As Integer 0 To arrayDataStr Length 1 dataArray idx Convert ToDouble arrayDataStr idx Convert the split strings into values Next End Sub End Module Execution Example No Ja 2 3 4 5 REF WL 1 30678832E 06 1 30756981E 06 1 30835238E 06 1 30913541E 06 1 30991969E 06 REF POWER 13 4899875 9 04694537 2 9512995 3 29214313 13 1556519 MAX WL 1 30757036E 06 1 3083528E 06 1 30913604E 06 MAX POWER 8 81158076 0 665845116 3 21870974
76. d Parameters Reference Page FETCh none 5 26 ARRay POWer MAXimum MINimum DEFault NRf 5 26 FREQuency MAXimum MINimum DEFault NRf 5 26 WAVelength MAXimum MINimum DEFault NRf 5 27 WNUMber MAXimum MINimum DEFault NRf 5 27 SCALar POWer MAXimum MINimum DEFault NRf 5 27 FREQuency MAXimum MINimum DEFault NRf 5 27 WAVelength MAXimum MINimum DEFault NRf 5 28 WNUMber MAXimum MINimum DEFault NRf 5 28 SYNChronous ARRay POWer MAXimum MINimum DEFault NRf 5 28 FREQuency MAXimum MINimum DEFault NRf 5 29 WAVelength MAXimum MINimum DEFault NRf 5 29 WNUMber MAXimum MINimum DEFault NRf 5 30 SCALar POWer MAXimum MINimum DEFault NRf 5 30 FREQuency MAXimum MINimum DEFault NRf 5 30 WAVelength MAXimum MINimum DEFault lt NRf gt 5 30 WNUMber MAXimum MINimum DEFault NRf 5 31 MEASure Command Parameters Reference Page MEASure ARRay POWer MAXimum MINimum DEFault NRf 5 31 FREQuency MAXimum MINimum DEFault NRf 5 32 WAVelength MAXimum MINimum DEFault NRf 5 32 WNUMber MAXimum MINimum DEFault NRf 5 32 SCALar POWer MAXimum MINimum DEFault NRf 5 32 FREQuency MAXimum MINimum DEFault NRf 5 33 WAVelength MAXimum MINimum DEFault NRf 5 33 WNUMber MAXimum MINimum DEFault NRf 5 33 MMEMory
77. d eight fractional digits The exponent is fixed to three digits Example Acceptable values for 1550 nm 1550nm 1 55um 1550E 9 1 55E 6 etc Example Transmitted value for 1550 nm 1 55000000E 006 only If the received value is higher in resolution than that used in the AQ6150 AQ6151 the value is rounded not truncated The AQ6150 AQ6151 supports the following multiplier suffixes Multiplier Mnemonic Multiplier Mnemonic 1E18 EX exa 1E 3 M milli 1E15 PE peta 1E 6 U micro 1E12 T tera 1E 9 N nano 1E9 G giga 1E 12 P pico 1E6 MA mega 1E 15 F femto 1E3 K kilo 1E 18 A atto Parameter Specification in Commands To include a parameter in a command you must insert a space between the command and parameter Parameters are separated by commas To make a command easier to read you can insert spaces before or after each comma 5 2 IM AQ6150 17EN 5 2 Table of Soft Key to Remote Command Assignments The following tables list the remote commands that correspond to the soft keys for operating the AQ6150 AQ6151 For details on the parameters of each command see sections 5 3 to 5 5 For detailed descriptions of parameters see section 5 5 SETUP Soft Key Remote Command Note DEVICE TYPE SENSe CORRection DEVice PEAK THRESH TYPE CALCulate2 PTHReshold MODe PEAK THRESH VALUE CA
78. e Writing is not allowed Clearing Clearing is not allowed Questionable Event Register Reading You can use the STATus QUEStionable EVENt query command to read the register The contents of the register are cleared when it is read Writing You can clear the contents of the register Only clearing is allowed Writing is not allowed Clearing The register is cleared in the following circumstances When the register is read with the STATus QUEStionable EVENt query command When the AQ6150 AQ6151 is initialized with the STATus PRESet command When a CLS common command is received When the power is turned on IM AQ6150 17EN 4 13 4 5 Questionable Status Register Questionable Event Enable Register Reading You can use the STATus QUEStionable ENABle query command to read the register Writing You can use the STATus QUEStionable ENABle command to write to the register Clearing The register is cleared in the following circumstances When data 0 is set with the STATus QUTStionable ENABle command When the power is turned on The register is not cleared in the following circumstances When a RST command is received When a CLS command is received When device clear DCL or SDC is specified Questionable Positive Transition Filter Reading You can use the STATus QUEStionable PTRansition query command to read the register Writing You can use the STATus QUEStionable PTRansition command t
79. e sockStream Call TcpWriteLine CALC3 DRIF ON sockStream Execute a measurement Call TcpWriteLine INIT CONT ON sockStream For count As Integer 1 To 60 Threading Thread Sleep 1000 Console Write Next Console WriteLine Call TcpWriteLine INIT CONT OFF sockStream Call TcpWriteLine CALC3 POIN sockStream replyString TcpReadLine sockStream peakNum Integer Parse replyString refPowData New Double peakNum 1 refWavData New Double peakNum maxPowData New Double peakNum maxWavData New Double peakNum minPowData New Double peakNum minWavData New Double peakNum dropInfo New Double peakNum 1 BbpompomnnHn PNE VD eee at Is PR A en PG Retrieve the results reference values Call TcpWriteLine CALC3 DRIF REF ON sockStream Call TcpWriteLine CALC3 DATA POW sockStream replyString TcpReadLine sockStream SplitArrayData replyString refPowData Call TcpWriteLine CALC3 DATA WAV sockStream replyString TcpReadLine sockStream SplitArrayData replyString refWavData Retrieve the results max values Call TcpWriteLine CALC3 DRIF PRES sockStream Call TcpWriteLine CALC3 DRIF MAX ON sockStream Call TcpWriteLine CALC3 DATA POW sockStream replyString TcpReadLine sockStream SplitArrayData replyString maxPowData Call TcpWriteLine CALC3 DATA WAV sockStream replyStri
80. e to the instrument This symbol appears on the instrument to indicate that the user must refer to the users manual for special instructions The same symbol appears in the corresponding place in the user s manual to identify those instructions In the manual the symbol is used in conjunction with the word WARNING or CAUTION ANT e Call attention to actions or conditions that could cause serious or fatal injury to the user and precautions that can be taken to prevent Such occurrences CAUTION Calls attention to actions or conditions that could cause light injury to the user or damage to the instrument or user s data and precautions that can be taken to prevent such occurrences Note Calls attention to information that is important for proper operation of the instrument Notations Used in the Procedural Explanations On pages that describe the operating procedures in each chapter the following notations are used to distinguish the procedure from their explanations IM qeIe Te W4 ME This subsection contains the operating procedure used to carry out the function described in the current section The procedures are written with inexperienced users in mind experienced users may not need to carry out all the steps SEUEN This subsection describes the setup parameters and the limitations on the procedures Terms Used in Explanations of Procedures Panel Keys and Soft Keys Bold characters used in the procedural explanations i
81. e AQ6150 AQ6151 Program Message Terminator LF line feed character The AQ6150 AQ6151 recognizes LF as an ASCII line feed OAh and CR ODh in CR LF as a white space character so you can also use CR LF as a message terminator Response Message Terminator The response message terminator is LF Data Queries A query command has a question mark appended to the end of the command For a query that has a parameter lt wsp gt lt parameter gt is appended to the question mark When the AQ6150 AQ6151 receives a query command it places the response to the command in the output buffer The data is held in the output buffer until an input statement is received from the controller or a new query command is received f multiple query commands are concatenated with semicolons the AQ6150 AQ6151 places the responses to all the query commands in the output buffer In this case the AQ6150 AQ6151 transmits all the data in the buffer when it receives the next data output request You can use the ETHERNET port to monitor the AQ6150 AQ6151 screen or control the AQ6150 AQ6151 from a PC over a network To use this feature you need remote monitoring software not included For information on remote monitoring software contact your nearest YOKOGAWA dealer The user area directory of the AQ6150 AQ6151 internal memory can be shared on a PC When the user area directory is shared the following files can be copied to the PC over the network You
82. e available LLO Local Lockout DCL Device Clear PPU Parallel Poll Unconfigure SPE Serial Poll Enable SPD Serial Poll Disable There are other interface messages listener address talk address and secondary commands Uni line messages X IFC REN IDY Listener address Interface messages Multi line messages Address commands Universal commands Talker address Secondary commands The AQ6150 AQ6151 supports interface messages marked with a Note Difference between SDC and DCL In multi line messages SDC messages are those that require talker or listener designation and DCL messages are those that do not require a designation Therefore SDC messages are directed at a particular instrument while DCL messages are directed at all instruments on the bus IM AQ6150 17EN 2 9 o2ej19ju gi d9 2 6 Sample Program The following shows an example of controlling the AQ6150 AQ6151 remotely using the GP IB port Model PC AT Computer Language Visual Basic 2008 GP IB board GP IB board from National Instruments Compornent Nationallnstruments Common Nationallnstruments NI4882 NET Framework 3 5 Sample Program 1 Sample Program for Making One Single Measurement and Displaying the Results Wavelength Information Power Information and FP LD Analysis Results on the Screen via GP IB Source Code Imports S
83. e view multi view wavelength frequency wavenumber value resolution single view POW multi view ARR POW Wavelength WAV Frequency FREQ Wavenumber WNUM Value A peak floating point number closest to the maximum MAX minimum MIN current DEF specified value Resolution current value DEF This is an overlapping command CONFigure SCALar POWer Function Sets the peak for the screen in which View Mode is set to single view by specifying the power Syntax CONFigure SCALar POWer lt wsp gt lt expected_value gt lt expected_value gt power specifying the peak MAXimum MINimum DEFault lt NRf gt MAXimum Maximum power peak MINimum Minimum power peak DEFault Selected peak lt NRf gt Peak closest to the specified power Example CONF POW 4dbm Description If the parameter is omitted DEF will be set f the parameter is not set to lt NRf gt or DEF the auto peak search function will be set to OFF 5 20 IM AQ6150 17EN 5 5 Device specific Commands CONFigure SCALar POWer FREQuency Sets the peak for the screen in which View Mode is set to single view by specifying the frequency CONFigure SCALar POWer FREQuency Function Syntax lt wsp gt lt expected_value gt lt expected_value gt frequency specifying the peak MAXimum MINimum DEFault lt NRf gt MAXimum Maximum frequency peak MINimum Minimum frequency peak DEFault Selected peak lt NRf gt Peak closest
84. easurement Device Mode lt expected_value gt wavelength Syntax SENSe CORRection DEVice lt wsp gt MAXimum MINimum DEFault lt NRf gt NARRow BROad MAX Specifies the maximum wavelength peak SENSe CORRect ion DEVice MIN Specifies the minimum wavelength peak NARRow CW light DEF Specifies the selected peak BROad Modulated light lt NRf gt Specifies the peak closest to the Example CORR DEV NARR specified wavelength CORR DEV NARR lt END gt Example READ POW WAV gt o pri E SENSe CORRection MEDium Description If you specify a parameter the current f Function Sets or queries the medium that the light travels selected peak on the AQ6150 AQ6151 through MEAS WL u screen will change jit I Syntax SENSe CORRection MEDium lt wsp gt AIR If the parameter is not set to DEF the auto JG uum peak search function will be set to OFF e mane ej ection ium Query results are returned in m AIR Standard air i VACuum Vacuum READ SCALar POWer WNUMber Example SENS CORR MED EXE Function Queries the most recent peak s wavenumbers SENS CORR MED gt AIR lt END gt in single view mode for single measurement Syntax EME eile ROWER SUM ene NEEDS SENSe CORRection OFFSet MAGNitude ted val Pici e domus Function Sets or queries the power offset expected value wavenumber Syntax SENSe CORRection MAXimum MINimum DEFault lt NRf gt ee i et M
85. ed data etc to the controller Setting the GP IB Address Set the AQ6150 AQ6151 address for the addressable mode in the following range 0 to 30 Each device that is connected in a GP IB system has its own unique address This address is used to distinguish between different devices Therefore you must assign a unique address to the AQ6150 AQ6151 when you connect it to a PC or other device Note When the controller is using the GP IB bus do not change the address of any connected devices IM AQ6150 17EN e eyieyul gi do 2 5 Responses to Interface Messages Responses to Interface Messages Responses to Uni Line Messages IFC Interface Clear Clears the talker and listener functions Stops data transmission if it is in progress REN Remote Enable Switches between the remote and local modes IDY Identify is not supported Responses to Multi Line Messages Address commands GTL Go To Local Switches the instrument to local mode SDC Selected Device Clear Clears the program message command being received and the output queue Discards OPC and OPC commands that are being executed The WAI command is immediately terminated PPC Parallel Poll Configure and TCT Take Control are not supported Responses to Multi Line Messages Universal commands LLO Local Lockout Prohibits switching to local mode by disabling the LOCAL key on the front panel DCL Device Clear The same operation as the SD
86. ed_value gt lt expected_value gt wavenumber MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum wavenumber peak MIN Specifies the minimum wavenumber peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavenumber MEAS POW WNUM gt 6 45769370E 005 lt END gt f you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m 1 IM AQ6150 17EN 5 33 spuewwog ajoulaM Hu 5 5 Device specific Commands MMEMory Sub System Commands Overview To include a directory in file name specify it in the following manner Absolute path To specify the absolute path specify a backslash as the first character of file name Relative path To specify the relative path from the current directory do not specify a backslash as the first character of file name gt To specify the current directory use the MMEMory CDIRectory command If you omit INTernal EXTernal the current drive will be accessed To specify the current drive use the MMEMory CDRive command If you omit the extension when you save a file the appropriate extension will be added according to the data type MMEMory CATalog Function Queries all the files in the current directory Syntax MMEMory CATalog
87. eries the display span frequency of the horizontal scale on the spectrum window Syntax DISPlay WINDow2 TRACe SCALe SPAN FREQuency wsp frequency DISPlay WINDow2 TRACe SCALe SPAN FREQuency frequency span frequency lt NRf gt MAXimum MAXimum 54 36 THz DISP WIND2 TRAC SPAN FREQ 20THZ DISP WIND2 TRAC SPAN FREQ gt 2 00000000E 014 lt END gt Description Query results are returned in Hz This is an overlapping command Example DISPlay WINDow2 TRACe SCALe SPAN WNUMber Function Sets or queries the display span wavenumber of the horizontal scale on the spectrum window Syntax DISPlay WINDow2 TRACe SCALe SPAN WNUMber lt wsp gt lt wnumber gt DISPlay WINDow2 TRACe SCALe SPAN WNUMber lt wnumber gt span wavenumber NRf gt MAXimum DISP WIND2 TRAC SPAN WNUM 10000 DISP WIND2 TRAC SPAN WNUM gt 1 00000000E 003 lt END gt Description Query results are returned in m 1 This is an overlapping command A Example IM AQ6150 17EN 5 25 spuewwog ajoulas 5 5 Device specific Commands FETCh Sub System Commands Overview This subsystem is a function for querying the most recent measured values The commands return most recent measured results regardless of whether the AQ6150 AQ6151 is currently measuring The commands do not affect the AQ6150 AQ6151 operation Related commands MEAS Sub System READ Sub System If a query
88. es the maximum wavenumber peak MINimum Specifies the minimum wavenumber peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavenumber FETC SYNC POW WNUM gt 6 45768650E 005 lt END gt Ifthe parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m 1 This is an overlapping command MEASure Sub System Commands Overview This subsystem is a function for starting a measurement on the AQ6150 AQ6151 and querying the measured results when the measurement is complete The commands in this subsystem change the view mode of the AQ6150 AQ6151 just like the panel keys change the view The displayed contents will change as a result of these commands If the measurement on the AQ6150 AQ6151 is stopped the AQ6150 AQ6151 will execute a single measurement and return the measured results If the AQ6150 AQ6151 is measuring repeat measurement it will return a execution error If averaged measurement is in progress the AQ6150 AQ6151 returns averaged measured results Executing a MEASure SCALar command changes the AQ6150 AQ6151 display to single view and returns one measurement result Executing a MEASure ARRay command changes the AQ6150 AQ6151 display to multi view and returns measurement results for the number of data points 1024 maximum To query measurement results without changing the AQ6150 AQ6151 settings
89. etained a new connection will not be established IM AQ6150 17EN 3 7 T B 3 3 Ethernet Configuration Commands Necessary for Remote Control over a ETHERNET port Authentication through an OPEN command is necessary to establish a remote connection over a ETHERNET port Connection cannot be established without authentication OPEN Function Sends a user name and starts user authentication Syntax OPEN lt wsp gt username username User name Example OPEN yokogawa gt AUTHENTICATE CRAM MD5 Description The OPEN command causes the following procedure to be executed For Plaintext Authentication 1 OPEN username is sent to the AQ6150 AQ6151 The response message from the AQ6150 AQ6151 is received The retrieved message AUTHENTICATE CRAM MD5 is confirmed The password is sent to the AQ6150 AQ6151 when the user name is anonymous the password can be anything When a READY message is received from the AQ6150 AQ6151 the authentication is complete The AQ6150 AQ6151 REMOTE LED illuminates and remote command transmission becomes possible If the user name or password is incorrect authentication will fail and the connection will be released For Encrypted Authentication 1 CLOSE OPEN username is sent to the AQ6150 AQ6151 The response message from the AQ6150 AQ6151 is received The retrieved message AUTHENTICATE CRAM MD5 is confirmed AUTHENTICATE CRAM MD5 Ok is sent to the
90. gt Description This command can be overlapping command while parameter is on This command can be overlappable command while parameter is off TRIGger INITiate IMMediate Function Executes a single measurement Syntax TRIGger INItiate IMMediate Example INIT Description This command is discarded while repeat measurement is in progress This is an overlappable command IM AQ6150 17EN 5 41 spuewwog ajoulas Hu 5 5 Device specific Commands UNIT Sub System Commands UNIT POWer Function Sets or queries the power unit Syntax UNIT POWer lt wsp gt W DBM UNIT POWer W Watt DBM dBm Example UNIT DBM UNIT gt DBM lt END gt Description If you specify W the AQ6150 AQ6151 displays mW This is an overlapping command UNIT WL Function Sets or queries the wavelength unit Syntax UNIT WL lt wsp gt THZ NM ICM UNIT WL THZ Hz frequency NM m wavelength ICM cm 1 wavenumber Example UNIT WL THZ UNIT WL gt THZ lt END gt Description This is an overlapping command 5 42 IM AQ6150 17EN Appendix Appendix 1 About the IEEE 488 2 1992 Standard The AQ6150 AQ6151 s GP IB interface conforms to the IEEE 488 2 1992 standard This standard specifies that the following 23 items be stated in the document This section describes these items 1 2 3 4 5 Of the IEEE 488 1 interface functions the subsets that are suppo
91. h Sub System MEASure Sub System READ ARRay POWer Function Syntax Example Description Queries the most recent peak s power values in multi view mode for single measurement READ ARRay POWer lt wsp gt expected values expected value power MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum power peak MIN Specifies the minimum power peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified power READ ARR POW gt 3 3 77000000E 000 7 72000000E 000 1 04900000E 001 lt END gt This command returns measured results for the number of data points peak num power1 power2 peak num Number of peaks 0 to 1024 lt power1 gt lt power2 gt Peak power values If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change f the parameter is not set to DEF the auto peak search function will be set to OFF READ Query results are returned in dBm or W Function Queries the peak measurement result for single depending on the parameter measurement Syntax READ READ ARRay POWer FREQuency Example READ gt 3 6 46241450E 005 Function Queries the most recent peak s frequencies in 6 45768920E 005 6 47659390E 005 multi view mode for single measurement lt END gt Syntax READ ARRay POWer FREQuency lt wsp gt Description If the previous query command was in
92. he AQ615x Call GpibWrite CALC2 PTHR MODE REL GpibDevice Set the threshold to relative mode Call GpibWrite CALC2 PTHR 15 GpibDevice Set the threshold to 15 db Call GpibWrite UNIT WL NM GpibDevice Set the wavelength unit to nm Call GpibWrite UNIT POW DBM GpibDevice Set the power unit to dBm Perform a Single measurement to obtain the reference for the drift measurement Call GpibWrite INIT OPC GpibDevice Execute a Single measurement and wait for the measurement to complete GpibRead GpibDevice Read the measurement complete wait OPC response Call GpibWrite CALC3 DRIF ON GpibDevice Turn drift analysis on IM AQ6150 17EN 2 13 2 6 Sample Program Execute a measurement Call GpibWrite INIT CONT ON GpibDevice Start a Repeat measurement For count As Integer 1 To 60 Wait 1 minute Threading Thread Sleep 1000 Console Write Next Console WriteLine Call GpibWrite INIT CONT OFF GpibDevice Stop the Repeat measurement Call GpibWrite CALC3 POIN GpibDevice Retrieve the number of data values replyString GpibRead GpibDevice peakNum Integer Parse replyString refPowData New Double peakNum 1 refWavData New Double peakNum 1 maxPowData New Double peakNum 1 maxWavData New Double peakNum 1 minPowData New Double peakNum 1 minWavData New Double peakNum 1 dropInfo New Double peakNum 1
93. he end of the reference End of Life source service life is reached light source service life is detected Bit 12 Not stabilize Reference light source 0 Set to 1 when the reference light source status is not stable Bit 11 Delta The reference is lost 2048 X Setto 1 during delta measurement Reference when the reference peak is lost Bit 10 Drift The number of peaks is 1024 Setto 1 during drift measurement when Reference different the number of reference peaks differs from the number of measured peaks EN Bit9 Maximum The maximum number of 512 Set to 1 when the maximum number of Signals detected peaks 1024 is detected peaks is exceeded exceeded o Bit8 Notused Reserved always 0 0 Bit7 Not used Reserved always 0 0 o Bit6 Notused Reserved always 0 0 2 Bit5 Notused Reserved always 0 0 G Bit4 Over An overheating error occurs 16 Set to 1 when the internal temperature Temperature of the AQ6150 AQ6151 rises to an o abnormal level Bit3 Maximum The maximum input power 8 Set to 1 when the optical input power Power is exceeded exceeds the allowed power Bit2 Not used Reserved always 0 0 Bit1 Not used Reserved always 0 0 BitO Not used Reserved always 0 0 Reading You can use the STATus QUEStionable CONDition query command to read the register The contents of the register are not cleared when it is read Writing The bits in this register are set or reset only when the corresponding statuses of the AQ6150 AQ6151 chang
94. he wavelength in unit of frequency WAVelength Queries the wavelength in unit of wavelength WNUMber Queries the wavelength in unit of wavenumber POWer Queries the power value Example CALC2 DATA FREQ gt 41 93596570E 0 14 4 1 93738272E 014 1 93880006E 01 4 lt END gt Description Returns all detected peaks in floating point numbers each peak separated by a comma The power value is returned in the specified unit If no peaks have been detected no signal the following value is returned Wavelength power mW uw 0 000000E 000 Power dBm 2 000000E 002 This is an overlapping command CALCulate2 PEXCursion Function Sets or queries the peak difference to use to detect peaks Syntax CALCulate2 PEXCursion lt wsp gt pexcursion value CALCulate2 PEXCursion pexcursion value power difference MINimum MAXimum DEFault lt integer gt MINimum 1 dB MAXimum 30 dB DEFault 15 dB Example CALC2 PEXC 10 CACL2 PEXC gt 10 lt END gt CALCulate2 POINts Function Queries the number of detected peaks Syntax CALCulate2 POINt Example CALC2 POIN gt 3 lt END gt Description The maximum number of detected peaks is 1024 This is an overlapping command CALCulate2 PTHReshold ABSolute Function Sets or queries the peak detection threshold value Syntax CALCulate2 PTHReshold ABSolute lt wsp gt lt thresh gt CALCulate2 PTHReshold ABSolute lt thresh gt
95. ibRead GpibDevice ctrWl Convert ToDouble replyString Call GpibWrite CALC3 FPER POW GpibDevice Retrieve Total Power replyString GpibRead GpibDevice totalPwr Convert ToDouble replyString Call GpibWrite CALC3 FPER SIGM GpibDevice Retrieve o replyString GpibRead GpibDevice sigma eee RH r ing Console WriteLine FP LD Analysis n conas lewe itchi nel Ewan fwhm 1000000000 ToString nm Console WriteLine Sigma sigma 1000000000 ToString nm Console WriteLine CTR WL ctrWl 1000000000 ToString nm Console WriteLine TOTAL PWR totalPwr ToString dBm Save the screen capture and result data to the internal memory Call GpibWrite MMEM STOR SIM2 WLM_IMAGE INT GpibDevice Call GpibWrite MMEM STOR TABL NWLM TABLE INT GpibDevice Call GpibWrite MMEM DATA WLM IMAGE BMP INT GpibDevice GpibReadBlockData2File GpibDevice WLM IMAGE BMP Call GpibWrite MMEM DATA WLM TABLE CSV INT GpibDevice GpibReadBlockData2File GpibDevice WLM TABLE CSV IM AQ6150 17EN 2 11 2 6 Sample Program Console ReadLine Catch ex As Exception Console WriteLine ex Message Console ReadLine End Try End Sub Sub GpibWrite ByVal commandStr As String gpib Write commandstr End Sub Wait for the user to press the Enter key Error handling Display the error message that occurred Wait
96. ies the specified file Syntax MMEMory COPY lt wsp gt lt source file name INTernal EXTernal lt dest_ file name INTernal EXTernal source file name Copy source file name dgest file name Copy destination file name INTernal Internal memory EXTernal USB memory Example MMEM COPY testl csv test2 csv Description This is an overlapping command MMEMory DATA Function Reads the data of the specified file Syntax MMEMory DATA wsp 2 file name INTernal EXTernal file name Name of the file to read data from INTernal Internal memory EXTernal USB memory MMEM DATA data2 csv gt 238YOKOGAWA AQ6151 Datai 2 3 Example Data2 3 4 END Description Response data is returned as block data This is an overlapping command 5 34 IM AQ6150 17EN 5 5 Device specific Commands MMEMory DELete Function Deletes the specified file Syntax MMEMory DELete lt wsp gt lt file name gt INTernal EXTernal file name Name of the file to delete INTernal Internal memory EXTernal USB memory Example MMEM DEL datal txt Description This is an overlapping command MMEMory LOAD Function Loads the specified setup file into the AQ6150 AQ6151 Syntax MMEMory LOAD wsp 2 file name gt INTernal EXTernal INTernal Internal memory EXTernal USB memory Example MMEM LOAD SETTING1 Description The file name extension can be omitted
97. ill be set to OFF wnum1 wnum2 Peak wavenumbers Query results are returned in Hz After power on the AQ6150 AQ6151 returns wavelength values in unit of meters 5 36 IM AQ6150 17EN 5 5 Device specific Commands READ ARRay POWer WAVelength Function Syntax Example Description Queries the most recent peak s wavelengths in multi view mode for single measurement READ ARRay POWer WAVelength wsp lt expected_value gt lt expected_value gt wavelength MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum wavelength peak MIN Specifies the minimum wavelength peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavelength READ ARR POW WAV 3 1 54740962E 006 1 54854218E 006 1 54402171E 006 lt END gt This command returns measured results for the number of data points lt peak_num gt lt wav1 gt lt wav2 gt lt peak_num gt Number of peaks 0 to 1024 lt wav1 gt lt wav2 gt Peak wavelengths If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m READ ARRay POWer WNUMber Function Syntax Example Description Queries the most recent peak s wavenumbers in multi view mode for single measurement READ ARR
98. included in the functional or composite header elements constituting a command See chapter 5 Buffer sizes that affect block data transmission 2 MB including the header length A list of program data elements that can be used in equations and their nesting limitations Equations cannot be used Syntax of the responses to queries See the example of the commands given in chapter 5 Communication between devices that do not follow the response syntax Not supported Size of the response data block 2 MB including the header length A list of supported common commands See section 5 4 Common Commands Device condition after a successful calibration CAL is not supported The maximum length of block data that can be used for the DDT trigger macro definition Not supported The maximum length of the macro label for defining macros the maximum length of block data that can be used for the macro definition and the process when recursion is used in macro definitions Macro functions are not supported Reply to the IDN query See section 5 4 Common Commands Size of storage area for protected user data for PUD and PUD PUD and PUD are not supported The length of the RDT and RDT resource names RDT and RDT are not supported The change in the status due to RST LRN RCL and SAV RST RCL SAV RST See section 5 4 Common Commands LRN This common command is not supported IM
99. ing Remote Commands When the AQ6150 AQ6151 finishes receiving a message it releases the GP IB bus If the AQ6150 AQ6151 receives the next command while it is executing the previous command it stores the next command in the receive buffer and then releases the GP IB bus If a command is already in the receive buffer the AQ6150 AQ6151 does not retrieve additional commands on the GP IB bus that may be available If the AQ6150 AQ6151 completes the execution of the previous command it executes the command in the buffer and clears the buffer If the next command is available on the bus the AQ6150 AQ6151 stores it in the receive buffer If multiple commands are included in a single output statement the AQ6150 AQ6151 retrieves all commands and executes them in the order they are written In this case the AQ6150 AQ6151 cannot retrieve the next command on the bus until it starts executing the last command in the statement IM AQ6150 17EN 2 3 e eyieyul gl do 2 2 GP IB Interface Features Data Queries Query commands and data output requests are used to perform queries from an external controller A query command has a question mark appended to the end of the command For a query that has a parameter lt wsp gt lt parameter gt is appended to the question mark When the AQ6150 AQ6151 receives a query command it places the response to the command in the output buffer The data is held in the output buffer until an input s
100. is an overlapping command STATus QUEStionable CONDition Function Syntax Example Description Queries the contents of the questionable status condition register STATus QUESionable CONDition STAT QUES COND 24 This is an overlapping command STATus QUEStionable ENABle Function Syntax Example Description Sets or queries the contents of the questionable status enable register STATus QUEStionable ENABle lt wsp gt lt integer gt STATus QUEStionable ENABle lt integer gt 0 to 65535 STAT QUES ENAB 4095 STAT QUES ENAB gt 4095 lt END gt This is an overlapping command spuewwog ajoulas STATus QUEStionable EVENt Function Syntax Example Description Queries the contents of the questionable status event register STATus QUEStionable EVENt STAT QUES gt 8 lt END gt This is an overlapping command STATus QUEStionable NTRansition Function Syntax Example Description Sets or queries the contents of the questionable status N Transition register STATus QUEStionable NTRansition lt wsp gt lt integer gt STATus QUEStionable NTRansition lt integer gt 0 to 65535 STAT QUES NTR 24 STAT QUES NTR gt 24 lt END gt This is an overlapping command STATus QUEStionable PTRansition Function Syntax Example Description Sets or queries the contents of the questionable status P Transition register STATus
101. is made with a FETCh SYNChronous command during a repeat measurement the AQ6150 AQ6151 returns the measured results after the measurement is complete FETCh Function Syntax Example Description Queries the most recent peak measurement result FETC FETC gt 3 6 46241320E 005 6 45768650E 005 6 46714090E 005 lt END gt If the previous query command was in single view mode a command that contains SCALar in its command string one measurement result is returned If the previous query command was in multi view mode a command that contains ARRay in its command string measurement results are returned for the number of data points Power peak num power1 power2 Wavelength lt peak_num gt lt wav1 gt lt wav2 gt Frequency lt peak_num gt lt freq1 gt lt freq2 gt Wavenumber lt peak_num gt lt wnum1 gt lt wnum2 gt peak num Number of peaks 0 to 1024 lt power1 gt lt power2 gt Peak power wav1 wav2 Peak wavelengths lt freq1 gt lt freq2 gt Peak frequencies wnum1 wnum2 Peak numbers After power on the AQ6150 AQ6151 returns wavelength values in unit of meters This is an overlapping command FETCh ARRay POWer Function Queries the most recent peak s power values in multi view mode Syntax FETCh ARRay POWer lt wsp gt lt expected_value gt lt ex
102. le Split the data by using a comma as the delimiter Retrieve the number of data values 2 12 IM AQ6150 17EN 2 6 Sample Program dataArray New Double peakNum 1 For idx As Integer 1 To arrayDataStr Length 1 dataArray idx 1 Convert ToDouble arrayDataStr idx Read all the data values Next End Sub End Module Execution Example No Wavelength m Power dBm 1 1 30678822E 06 14 3279541 2 1 30756963E 06 9 42082105 3 1 30835228E 06 2 23592107 4 1 30913555E 06 3 93065804 5 1 30991986E 06 13 5578301 Highest Peak Power 2 23592107 dBm Highest Peak Wavelength 1 30835228E 06 nm FP LD Analysis o2eji9ju gi d9 FWHM 1 47415158nm Sigma 0 625966702nm CTR WL 1308 55169nm TOTAL PWR 0 782282871dBm Sample Program 2 Sample Program for Performing Drift Analysis via GP IB Source Code Imports System Imports NationalInstruments NI4882 Module GpibDriftMeasure Sample Program for Performing Drift Analysis via GP IB Sub Main Try Dim GpibDevice As Device Dim wlmAddr As Integer Dim replyString As String Dim peakNum As Integer Dim refPowData refWavData As Double Dim maxPowData maxWavData As Double Dim minPowData minWavData As Double Dim dropInfo As Double wlmAddr 7 Wavelength meter GP IB address GpibDevice New Device 0 wlmAddr Open GP IB Set the wavelength meter s measurement conditions Call GpibWrite RST GpibDevice Reset t
103. ly from a controller such as a PC GP IB is used to connect a controller to the devices that it controls Ethernet See chapter 3 Used to control the AQ6150 AQ6151 remotely over a network from a controller such as a PC IM AQ6150 17EN 1 1 9JnjeaJ 01 U0D 9j0ulaM 1 2 Switching between Remote and Local Modes When Switching from Local to Remote Mode In the GP IB interface the AQ6150 AQ6151 switches to remote mode when it is in local mode and receives a REN Remote Enable or a listen address with ATN set to True from the controller In remote mode the REMOTE LED illuminates All panel controls except the LOCAL key and the POWER button are disabled Settings entered in local mode are retained even when the AQ6150 AQ6151 switches to remote mode The AQ6150 AQ6151 switches to local lockout mode when it receives an LLO Local Lock Out message from the controller In local lockout mode the AQ6150 AQ6151 will not return to local mode even when you press the LOCAL key To return to local mode clear the local lockout mode first and then press the LOCAL key To clear the local lockout mode set REN to false If you are using the Ethernet interface the AQ6150 AQ6151 switches to remote mode when authentication is complete and you are logged in When Switching from Remote to Local Mode When the AQ6150 AQ6151 is in remote mode and you press LOCAL the AQ6150 AQ6151 switches to local mode This will not work when the AQ6150
104. mmand returns measured results for the number of data points peak num freq1 freq2 peak num Number of peaks 0 to 1024 lt freq1 gt lt freq2 gt Peak frequencies If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in Hz This is an overlapping command 5 26 IM AQ6150 17EN 5 5 Device specific Commands FETCh ARRay POWer WAVelength Function Syntax Example Description Queries the most recent peak s wavelength values in multi view mode FETCh ARRay POWer WAVelength lt wsp gt lt expected_value gt lt expected_value gt wavelength MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum wavelength peak MINimum Specifies the minimum wavelength peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavelength FETC ARR POW WAV gt 3 1 54740958E 006 1 54854220E 006 1 54627836E 006 lt END gt This command returns measured results for the number of data points lt peak_num gt lt wav1 gt lt wav2 gt lt peak_num gt Number of peaks 0 to 1024 lt wav1 gt lt wav2 gt Peak wavelengths If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF
105. n overlapping command SYSTem ERRor Function Syntax Example Description Queries the error information of the AQ6150 AQ6151 SYSTem ERRor Response Erro number error message SYST ERR gt 0 No error lt END gt For details on messages see section 8 1 in the User s Manual IM AQ6150 01EN This is an overlapping command SYSTem PRESet Function Initializes the measurement setup conditions of the AQ6150 AQ6151 Syntax SYSTem PRESet Example SYST PRES Description Buzzer network and some other settings are not initialized For details on what is initialized see section 6 5 in the User s Manual IM AQ6150 01EN SYSTem REFLaser CONDition Function Syntax Example Description Queries the internal reference light source condition SYSTem REFLaser CONDition Response 0 Laser output off Laser starting Laser stabilizing Normal Replacement period Laser malfunction SYST REFL COND gt 3 lt END gt The AQ6150 AQ6151 can make measurements in conditions 2 to 4 above For the replacement period see section 2 9 in the User s Manual IM AQ6150 02EN This is an overlapping command ar WN SYSTem REFLaser STATe Function Syntax Example Description Sets or queries the internal reference light source on off state SYSTem REFLaser STATe lt wsp gt 0 OFF 1 ON SYSTem REFLaser STATe OJOFF Laser output off 1 ON Laser output
106. n the timing of command operation completion see page 4 8 RST Reset Function Initializes settings Syntax RST Example RST RCL Recall Command Function Returns the AQ6150 AQ6151 settings to the contents saved with the SAV command Syntax RCL lt wsp gt 1 2 3 4 1 2 3 4 Preset number Example RCL 1 Description Select the settings that you want to return the AQ6150 AQ6151 to 1 to 4 SAV Save Command Function Saves the current AQ6150 AQ6151 settings Syntax SAV lt wsp gt 1 2 3 4 1 2 3 4 Preset number Example SAV 1 Description You can save up to four sets of settings SRE Service Request Enable Function Sets or queries the Service Request Enable Register Syntax SRE lt wsp gt lt integer gt SRE lt integer gt 0 to 255 Example SRE 255 SRE gt 255 lt END gt Description This is an overlapping command 5 12 IM AQ6150 17EN 5 5 Device specific Commands STB Read Status Byte Function Queries the Status Byte Register value Syntax STB Example STB gt 12 Description This is an overlapping command TRG Trigger Function Starts a single measurement Syntax TRG Example TRG Description This is an overlappable command TST Self Test Function Syntax Example Description WAI Wa Function Syntax Example Description Executes a self test and queries the result TST Response 0 No error Not 0 Error error code T
107. ndicate characters that are marked on the panel keys or the characters of the soft keys displayed on the screen menu Units k Denotes 1000 Example 12 kg 100 kHz K Denotes 1024 Example 459 KB file size ii IM AQ6150 17EN How To Use This Manual Structure of the Manual This manual contains five chapters and an appendix Chapter 1 Remote Control Feature Gives an overview of the various available communication interfaces Chapter 2 GP IB Interface Describes the features and specifications of the GP IB interface for controlling the AQ6150 AQ6151 from a PC Chapter 3 Ethernet Interface Describes the features and specifications of the Ethernet interface Chapter 4 Status Registers Describes the status byte various registers and queues Chapter 5 Remote Commands Describes every command individually IM AQ6150 17EN iii Contents Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Conventions Used iri This Marital oorr pes rr cei kv e hr rk ue Eee eye rtr ar ev voesebea cv e UR eek aad ii How To Use This Manual isses ieuete a ro cab ea ea secs EE Pav Ew denen EYE Eo FR eet wv EE LEER Ze EUR S iii Remote Control Feature 1 1 Remote Interlace e 1 1 1 2 Switching between Remote and Local Modes seeee s 1 2 1 3 Exchanging Remote Commands ence re eas Lee eene ee ende 1 3 GP IB Interface 2 1 Using the GP IB Interface to Connect to a Controller
108. ng TcpReadLine sockStream SplitArrayData replyString maxWavData Retrieve the results min values Call TcpWriteLine CALC3 DRIF PRES sockStream Call TcpWriteLine CALC3 DRIF MIN ON sockStream Call TcpWriteLine CALC3 DATA POW sockStream replyString TcpReadLine sockStream SplitArrayData replyString minPowData Call TcpWriteLine CALC3 DATA WAV sockStream replyString TcpReadLine sockStream SplitArrayData replyString minWavData Retrieve drop information Call TcpWriteLine CALC3 DATA DROP sockStream replyString TcpReadLine sockStream SplitArrayData replyString dropInfo SockStream Dispose Set the wavelength unit to nm Set the power unit to dBm for the drift measurement Execute a Single measurement and wait for the measurement to complete Read the measurement complete wait OPC response Turn drift analysis on Start a Repeat measurement Wait 1 minute Stop the Repeat measurement Retrieve the number of data values Retrieve Ref Power Retrieve Ref Wavelength Retrieve MAX Power Retrieve MAX Wavelength Retrieve MIN Power Retrieve MIN Wavelength Close TCP 3 14 IM AQ6150 17EN 3 4 Sample Program Console Write No Display the peak number For idx As Integer 0 To peakNum 1 Console Write idx 1 ToString Next Console WriteLine Console Write REF WL Display the reference wavele
109. ng measurement computation and averaging is complete In this state only overlap commands can be executed In the example in the figure the command that queries the measured results is processed as an overlap command The AQ6150 AQ6151 returns a response measurement results when the processing of the command is finished In repeat measurement and averaged measurement MEAS remains at 1 while measurement sJojsiDoy snjejs Il is in progress Processing is set to 1 only when computation is being performed In the first averaging process Averaging is set to 1 while averaging is performed for the average count In the subsequent averaging processes the AQ6150 AQ6151 averages the new measured value with the already measured value so Averaging will be synchronous to Processing The OPC and OPC commands query the command processing status Operation Condition Register Reading You can use the STATus OPERation CONDition query command to read the register The contents of the register are not cleared when it is read Writing The bits in this register are set or reset only when the corresponding statuses of the AQ6150 AQ6151 change Writing is not allowed Clearing Clearing is not allowed Operation Event Register Reading You can use the STATus OPERation EVENt query command to read the register The contents of the register are cleared when it is read IM AQ6150 17EN 4 9 4 4 Operation Status Register
110. ngth For idx As Integer 0 To peakNum 1 Console Write refWavData idx ToString Next Console WriteLine Console Write REF POWER Display the reference power For idx As Integer 0 To peakNum 1 Console Write refPowData idx ToString Next Console WriteLine Console Write MAX WL Display the maximum wavelength For idx As Integer 0 To peakNum 1 If dropInfo idx lt gt 0 Then Console Write m jeujeuj3 Else Console Write maxWavData idx ToString End If Next Console WriteLine Console Write MAX POWER Display the maximum power For idx As Integer 0 To peakNum 1 If dropInfo idx lt gt 0 Then Console Write Jat Else Console Write maxPowData idx ToString End If Next Console WriteLine Console Write MIN WL Display the minimum wavelength For idx As Integer 0 To peakNum 1 If dropInfo idx lt gt 0 Then Console Write m Else Console Write minWavData idx ToString End If Next Console WriteLine Console Write MIN POWER Display the minimum power For idx As Integer 0 To peakNum 1 If dropInfo idx lt gt 0 Then Console Write m Else Console Write minPowData idx ToString End If Next Console WriteLine Console ReadLine Catch ex As Exception Error handling Console WriteLine ex Message Display the error message that occurre
111. o Connect to a Controller To connect multiple devices use a star or daisy chain configuration as shown below Loop and parallel configurations are not allowed 2 2 IM AQ6150 17EN 2 2 GP IB Interface Features GP IB Interface Features Listener Capability Through the GP IB interface you can specify the same settings that you can using the front panel keys You cannot turn the AQ6150 AQ6151 on and off or change communication settings or some other settings The AQ6150 AQ6151 can receive setup data measurement data etc according to the output commands from the controller The AQ6150 AQ6151 can receive commands such as status report commands Talker Capability The AQ6150 AQ6151 can output setup data measured data etc Note Talk only listen only and controller capabilities are not available You cannot use the GP IB interface simultaneously with the Ethernet interface Message Terminator The following message terminators can be used on the AQ6150 AQ6151 Program Message Terminator EOI End Or Identify signal assertion LF line feed character LF EOI The AQ6150 AQ6151 recognizes LF as an ASCII line feed OAh and CR ODh in CR LF as a white space character so you can also use CR LF as a message terminator Response Message Terminator The response message terminator is LF EOI Receiv
112. o write to the filter Clearing The filter is cleared in the following circumstances When data 0 is set with the STATus QUEStionable PTRansition command When the power is turned on The filter is not cleared in the following circumstances When a RST command is received When a CLS command is received When device clear DCL or SDC is specified Questionable Negative Transition Filter Reading You can use the STATus QUEStionable NTRansition query command to read the register Writing You can use the STATus QUEStionable NTRansition command to write to the filter Clearing The filter is cleared in the following circumstances When data 0 is set with the STATus QUEStionable NTRansition command When the power is turned on The filter is not cleared in the following circumstances When a RST command is received When a CLS command is received When device clear DCL or SDC is specified 4 14 IM AQ6150 17EN Chapter 5 Remote Commands 5 1 Command Syntax and Types Syntax Command Type The information covered in this section applies to the common commands and device specific commands in this manual Excluding special commands all measured values and parameters are exchanged using ASCII character strings Convention Description Indicates that an element in the list is to be selected Example A B C Select A B or C Items in brackets are optional Items in b
113. occurs Bit 1 Not used Reserved always 0 O0 Bit 0 Not used Reserved always 0 O0 Example of Operation Status Change The figure below shows how each status bit changes when the AQ6150 AQ6151 receives a measurement start command and the timing for the AQ6150 AQ6151 to return a response when it receives a query for the measurement results when it is measuring TRIGger FETCh SYNChronous Command Command overlap Input Buffer v Output Buffer Command _ in Processing Processing MEAS in Frohal In Processing A Response Processing Averaging Averaging Process OFF TRIGger FETCh SYNChronous TRIGger Command Command overlap Command Start 1 Stop Input Buffer v v v Response Response Response A A command _ fin process I LI LI LX Processing MEAS In Progress l In Processing 4 Output Buffer gt Po i Processing Averaging Averaging Process OFF 4 8 IM AQ6150 17EN 4 4 Operation Status Register TRIGger FETCh SYNChronous TRIGger Command Command overlap Command Start j Stop Input Buffer v v v v Response Response A iA Command In Processing l l Lo Processing MEAS In Progress l In Processing Output Buffer Processing Averaging In Processing l When the AQ6150 AQ6151 receives a command in its input buffer it enters a command processing state The command processing state continues until all processi
114. on SYST REFL STATe OFF SYST REFL STATe gt 0 lt END gt Turn off the laser when you are going to suspend measurements for a long period of time 6 hours or more For details see section 7 4 in the User s Manual IM AQ6150 01EN SYSTem TIME Function Syntax Example Description Sets or queries the time SYSTem TIME lt wsp gt lt hour gt lt minute gt lt second gt SYSTem TIME lt hour gt Hour lt minute gt Minute lt second gt Second SYST TIME 17 20 00 SYST TIME gt 17 20 00 lt END gt The response is returned in this order hour minute and second This is an overlapping command 5 40 IM AQ6150 17EN 5 5 Device specific Commands SYSTem VERSion Function Queries the SCPI Standard Commands for Programmable Interfaces version Syntax SYSTem VERSion Example SYST VERS gt 1999 0 lt END gt Description This is an overlapping command TRIGger Sub System Commands TRIGger Sub System Commands TRIGger ABORt Function Stops measurement Syntax TRIGger ABORt Example ABOR Description This is an overlapping command TRIGger INITiate CONTinuous Function Executes or queries repeat measurement Syntax TRIGger 0 OFF 1 ON INITiate CONTinuous lt wsp gt TRIGger INITiate CONTinuous O OFF 1 ON Example SINIT SINIT Repeat measurement stopped Repeat measurement running CONT ON CONT gt 1 lt END
115. on for OPC Not valid for OPC of command operation complete completion see page 4 8 Note For details on messages see section 8 1 in the User s Manual IM AQ6150 01EN IM AQ6150 17EN 4 5 4 3 Standard Event Status Register Standard Event Status Register Reading You can use the ESR common query to read the register The contents of the register are cleared when it is read The read operation complies with IEEE488 2 Writing You can clear the contents of the register Only clearing is allowed Writing is not allowed Clearing The register is cleared in the following circumstances When a CLS common command is received When a ESR common query is received The clear operation complies with IEEE488 2 Standard Event Status Enable Register Reading You can use the ESE common query to read the register The read operation complies with IEEE488 2 Writing You can use the ESE common command to write to the register The write operation complies with IEEE488 2 Clearing The register is cleared in the following circumstances When data 0 is set with the ESE common command When the power is turned on The register is not cleared in the following circumstances When a RST command is received When a CLS command is received When device clear DCL or SDC is specified The clear operation complies with IEEE488 2 4 6 IM AQ6150 17EN 4 4 Operation Status Register Configuration
116. onsole Write m Else Console Write minPowData idx ToString End If Next Console WriteLine Console ReadLine Catch ex As Exception Error handling Console WriteLine ex Message Display the error message that occurred Console ReadLine Wait for the user to press the Enter key End Try End Sub Sub GpibWrite ByVal commandStr As String ByRef gpib As Device gpib Write commandStr Send data End Sub Function GpibRead ByRef gpib As Device As String GpibRead gpib ReadString Receive data IM AQ6150 17EN 2 15 2 6 Sample Program Exit Function End Function Sub SplitArrayData ByVal dataString As String Dim peakNum As Integer Dim arrayDataStr As String peakNum For idx As Integer dataArray idx Next End Sub End Module Execution Example No REF REF MAX MAX MIN MIN WL POWER 13 4899875 WL dataString Split c arrayDataStr Length 0 To arrayDataStr Length 1 Convert ToDouble arrayDataStr idx 2 3 9 04694537 2 9512995 1 30757036E 06 1 3083528E 06 8 81158076 0 665845116 1 30756953E 06 1 30835221E 06 10 2276251 3 02598662 4 1 30678832E 06 1 30756981E 06 1 30835238E 06 1 30913541E 06 1 30991969E 06 ByRef dataArray As Double Split the string by using a comma as the delimiter Convert the split strings into values 5 3 29214313 13 1556519 1 30913604E 06 3 2
117. or SDC is specified Operation Negative Transition Filter Reading You can use the STATus OPERation NTRansition query command to read the filter Writing You can use the STATus OPERation NTRansition command to write to the filter 4 10 IM AQ6150 17EN 4 4 Operation Status Register Clearing The filter is cleared in the following circumstances When data 0 is set with the STATus OPERation NTRansition command When the power is turned on The filter is not cleared in the following circumstances When a RST command is received When a CLS command is received When device clear DCL or SDC is specified IM AQ6150 17EN sJojsiDoy snjejs S 4 5 Questionable Status Register The Questionable Status Register indicates the questionable status of the AQ6150 AQ6151 The summary of the Questionable Event Register is set in the QUS bit of the Status Byte Register Configuration The following figure shows the configuration of the Questionable Status Register Questionable Status Register Configuration QUS Bit of the Status Byte Register STAT QUES NTR AA A A A A A A A A A A Questionable Transition Register bit 15 a bit15 lt bit15 bit15 not used bit 14 gt bit14 bit14 bit14 not used bit 13 gt amp lt bit13 lt bit 13 lt bit13 Ref Laser End of life bit 1
118. ord recvBuffer TcpReadLine sockStream If String Compare recvBuffer ready lt gt 0 Then SockStream Dispose Exit Sub Authentication failure End If Call TcpWriteLine RST sockStream Reset the AQ615x Call TcpWriteLine CALC2 PTHR MODE REL sockStream Set the peak detection threshold setting to relative mode Call TcpWriteLine CALC2 PTHR 15 sockStream Set the peak detection threshold to 15 db Call TcpWriteLine UNIT WL NM sockStream Set the wavelength unit to nm Call TcpWriteLine UNIT POW DBM sockStream Set the power unit to dBm Call TcpWriteLine DISP WIND2 STAT ON sockStream Enable the graph display Use the READ command to execute measurement and retrieve data Use the FETC command to retrieve measured power information data Call TcpWriteLine READ ARR POW WAV sockStream Execute a Single measurement and retrieve wavelength data replyString TcpReadLine sockStream Call SplitArrayData replyString wavArray Store wavelength information in an array Call TcpWriteLine FETC ARR POW sockStream Retrieve measured power information replyString TcpReadLine sockStream Call SplitArrayData replyString powArray Store power information in an array Console WriteLine No Wavelength m Power dBm For idx As Integer 1 To wavArray Length Console WriteLine idx ToString wavArray idx 1 ToString powArray idx 1 ToString Next
119. pected_value gt power MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum power peak MINimum Specifies the minimum power peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified power Example FETC ARR POW gt 3 99000000E 000 7 28000000E 000 1 08300000E 001 lt END gt Description This command returns measured results for the number of data points peak num power1 power2 peak num Number of peaks 0 to 1024 lt power1 gt lt power2 gt Peak power values If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to lt NRf gt or DEF the auto peak search function will be set to OFF Query results are returned in dBm or W depending on the parameter This is an overlapping command FETCh ARRay POWer FREQuency Function Queries the most recent peak s frequency values in multi view mode Syntax FETCh ARRay POWer FREQuency lt wsp gt lt expected_value gt lt expected_value gt frequency MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum frequency peak MINimum Specifies the minimum frequency peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified frequency Example FETC ARR POW FREQ gt 3 1 93738272E 014 1 93596570E 014 1 93880006E 014 lt END gt Description This co
120. play the peak number For idx As Integer 0 To peakNum 1 Console Write idx 1 ToString Next 2 14 IM AQ6150 17EN 2 6 Sample Program Console WriteLine Console Write REF WL Display the reference wavelength For idx As Integer 0 To peakNum 1 Console Write refWavData idx ToString Next Console WriteLine Console Write REF POWER Display the reference power For idx As Integer 0 To peakNum 1 If dropInfo idx lt gt 0 Then Console Write m For idx As Integer 0 To peakNum 1 Q Console Write refPowData idx ToString V Next D Console WriteLine 5 Console Write MAX WL Display the maximum wavelength g o o p Else Console Write maxWavData idx ToString End If Next Console WriteLine Console Write MAX POWER Display the maximum power For idx As Integer 0 To peakNum 1 If dropInfo idx lt gt 0 Then Console Write m Else Console Write maxPowData idx ToString End If Next Console WriteLine Console Write MIN WL Display the minimum wavelength For idx As Integer 0 To peakNum 1 If dropInfo idx lt gt 0 Then Console Write m Else Console Write minWavData idx ToString End If Next Console WriteLine Console Write MIN POWER Display the minimum power For idx As Integer 0 To peakNum 1 If dropInfo idx lt gt 0 Then C
121. r lt wnumber gt stop wavenumber lt NRf gt MINimum MAXimum MINimum Start wavenumber MAXimum 7875 cm 1 DISP WIND2 TRAC RIGH WNUM 609000 DISP WIND2 TRAC RIGH WNUM gt 6 09000000E 005 lt END gt Query results are returned in m 1 This is an overlapping command DISPlay WINDow2 TRACe SCALe CENTer WAVelength Function Syntax Example Description Sets or queries the center wavelength of the horizontal scale on the spectrum window DISPlay WINDow2 TRACe SCALe CENTer WAVelength lt wsp gt lt wavelength gt DISPlay WINDow2 TRACe SCALe CENTer WAVelength lt wavelength gt center wavelength lt NRf gt DISP WIND2 TRAC CENT 1550NM DISP WIND2 TRAC CENT gt 1 55000000E 006 lt END gt Query results are returned in m This is an overlapping command 5 24 IM AQ6150 17EN 5 5 Device specific Commands DISPlay WINDow2 TRACe SCALe CENTer FREQuency Function Sets or queries the center frequency of the horizontal scale on the spectrum window Syntax DISPlay WINDow2 TRACe SCALe CENTer FREQuency lt wsp gt lt frequency gt DISPlay WINDow2 TRACe SCALe CENTer FREQuency lt frequency gt center frequency lt NRf gt Example DISP WIND2 TRAC CENT FREQ 190THZ DISP WIND2 TRAC CENT FREQ gt 1 90000000E 014 lt END gt Description Query results are returned in Hz This is an overlapping command DISPlay WINDow2
122. r single measurement View Mode is set to MULTI MEASure ARRay POWer FREQuency wsp expected value expected value frequency MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum frequency peak MIN Specifies the minimum frequency peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified frequency MEAS ARR POW FREQ gt 3 1 93738414E 014 1 93596724E 014 1 94163516E 014 lt END gt This command returns measured results for the number of data points lt peak_num gt lt freq1 gt lt freq2 gt peak num Number of peaks 0 to 1024 lt freq1 gt lt freq2 gt Peak frequencies If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in Hz MEASure ARRay POWer WAVelength Function Syntax Example Description Queries the peak wavelengths in multi view mode for single measurement View Mode is set to MULTI MEASure ARRay POWer WAVelength lt wsp gt lt expected_value gt lt expected_value gt wavelength MAXimum MINimum DEFault lt NRf gt MAX Specifies the maximum wavelength peak MIN Specifies the minimum wavelength peak DEF Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavelength MEAS ARR POW WAV gt 3 1 547408
123. races can be specified multiple times in a command lt wsp gt 1 Space lt integer gt Integer lt NRf gt Value in exponential notation lt file name gt The length of a file name excluding its path but including its extension is up to 56 characters Enclose the character string in double quotation marks string Character string Enclose the character string in double quotation marks 1 Regarding white spaces lt wsp gt Characters that correspond to ASCII 00h to 20h excluding OAh LF are defined as white spaces With the exception of the white space that is necessary between a command and its parameters and white spaces within a character string such as a file name parameter you can enter or omit white spaces as you like in order to make your program easier to read The AQ6150 AQ6151 has the following three types of commands Overlappable commands and overlap commands are indicated in the explanations in sections 5 4 and 5 5 Sequential Commands The execution of other commands does not start until a sequential command is finished The execution of a sequential command does not start until other commands are finished Overlappable Commands The execution of other overlap commands starts before an overlappable command is finished The execution of sequential commands does not start until an overlappable command is finished The execution of an overlappable command does not start until other
124. ring nm Sigma sigma 1000000000 ToString nm Console WriteLine CTR WL o ctrWl 1000000000 ToString nm TOTAL PWR pUM totalPwr ToString dBm Console WriteLine Console WriteLine Save the screen capture and result data to the internal memory Call TcpWriteLine MMEM STOR SIM2 WLM_IMAGE INT sockStream Call TcpWriteLine MMEM STOR TABL WLM TABLE INT sockStream Call TcpWriteLine MMEM DATA WLM IMAGE BMP INT sockStream TcpReadBlockData2File sockStream WLM IMAGE BMP Call TcpWriteLine MMEM DATA WLM TABLE CSV INT sockStream TcpReadBlockData2File sockStream WLM TABLE CSV sockStream Dispose Close TCP Console ReadLine Catch ex As Exception Error handling Console WriteLine ex Message Display the error message that occurred Console ReadLine Wait for the user to press the Enter key End Try End Sub Sub TcpWriteLine ByVal commandStr As String ByRef stream As NetworkStream Dim writer As StreamWriter New StreamWriter stream Encoding ASCII Dim ByteLf As Byte New Byte 10 writer NewLine Encoding ASCII GetString ByteLf The line feed code is LF writer AutoFlush True writer WriteLine commandStr Send data End Sub Function TcpReadLine ByRef stream As NetworkStream As String Dim reader As StreamReader New StreamReader stream Encoding ASCII TcpReadLine reader
125. rted See section 2 3 GP IB Interface Specifications The operation of the device when it is assigned an address outside the 0 to 30 range The address of this instrument cannot be set to an address outside the 0 to 30 range Reaction of the device when the user changes the address The address change is detected when the user presses SYSTEM and then the GP IB ADDRESS soft key and changes the address The new address is valid until the next time it is changed Device settings at power up The commands that can be used at power up As a basic rule the previous settings the settings that were in use when the AQ6150 AQ6151 was turned off are used There are no limitations on the commands that can be used at power up Message exchange options a Input buffer size 2 MB b Queries that return multiple response messages See the example of the commands given in chapter 5 c Queries that create response data when the command syntax is being analyzed All queries create response data when the command syntax is analyzed d Queries that create response data during reception There are no queries of which the response data are created upon receiving a send request from the controller e Commands that have parameters that restrict one another There are no commands that have parameters that restrict one another 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Items that are
126. s OPERation ENABle lt wsp gt lt integer gt STATus OPERation ENABle lt integer gt 0 to 65535 Example STAT OPER ENAB 4095 STAT OPER ENAB 4095 lt END gt Description This is an overlapping command STATus OPERation EVENt Function Queries the contents of the operation status event register Syntax STATus OPERation EVEnt Example STAT OPER gt 4096 lt END gt Description This is an overlapping command STATus OPERation NTRansition Function Sets or queries the contents of the operation status N Transition register Syntax STATus OPERation NTRansition lt wsp gt lt integer gt STATus OPERation NTRansition lt integer gt 0 to 65535 Example STAT OPER NTR 4096 STAT OPER NTR gt 4096 lt END gt Description This is an overlapping command STATus OPERation PTRansition Function Sets or queries the contents of the operation status P Transition register Syntax STATus OPERation PTRansition lt wsp gt lt integer gt STATus OPERation PTRansition lt integer gt 0 to 65535 Example STAT OPER PTR 4096 STAT OPER PTR gt 4096 lt END gt Description This is an overlapping command STATus PRESet Function Clears the event register and set all bits in the enable register Syntax STATus PRESet Example STAT PRES Description This command clears the contents of the ENABle NTRansition and PTRansition registers This
127. ss the DISCONNECT soft key The monitor connection from the PC is disconnected Setting Directory Sharing 4 Press the FOLDER SHARING soft key A directory sharing setup menu appears Disables directory sharing Enables directory sharing 3 Press the READ ONLY soft key The user area directory of the AQ6150 AQ6151 is shared read only Disabling Directory Sharing 6 Press the DISABLE soft key The sharing of the user area directory is disabled IM AQ6150 17EN 3 3 Ethernet Configuration Explanation Configuring the TCP IP Settings To connect the AQ6150 AQ6151 to a network you must set the AQ6150 AQ6151 IP address correctly If a DHCP server is available on the network that the AQ6150 AQ6151 is connected to an IP address is automatically assigned to the AQ6150 AQ6151 If a DHCP server is available set IP ADDRESS SETTING to AUTO For details about the network that you intend to connect the AQ6150 AQ6151 to contact your network administrator Configure the AQ6150 AQ6151 TCP IP settings REMOTE PORT NO Set the port number to use to control the AQ6150 AQ6151 remotely over the ETHERNET port You can specify any port between 1024 to 65535 except 1025 and 20001 User Authentication If you want to connect to the AQ6150 AQ6151 from your PC over the ETHERNET port user authentication is required If the user name is anonymous you do not have to enter a password The AQ6150 AQ6151 supports plaintext authentication
128. t wav2 gt Peak wavelengths If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are returned in m This is an overlapping command IM AQ6150 17EN 5 29 spuewwog ajoulaM B 5 5 Device specific Commands FETCh SYNChronous ARRay POWer WNUMber Function Syntax Example Description Queries the peak wavenumbers at the completion of the current measurement in multi view mode for repeat measurement FETCh SYNChronous ARRay POWer WNUMber lt wsp gt lt expected_value gt lt expected_value gt wavenumber MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum wavenumber peak MINimum Specifies the minimum wavenumber peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified wavenumber FETC SYNC ARR POW WNUM gt 3 6 46241320E 005 6 45768650E 005 6 46714090E 005 lt END gt This command returns measured results for the number of data points peak num wnum1 wnum2 peak num Number of peaks 0 to 1024 wnum1 wnum2 Peak wavenumbers If you specify a parameter the current selected peak on the AQ6150 AQ6151 screen will change If the parameter is not set to DEF the auto peak search function will be set to OFF Query results are re
129. tatement is received from the controller or a new query command is received If multiple query commands are concatenated with semicolons the AQ6150 AQ6151 places the responses to all the query commands in the output buffer In this case the AQ6150 AQ6151 transmits all the data in the buffer when it receives the next data output request Device Trigger Capability When the AQ6150 AQ6151 receives a GET Group Execute Trigger command it performs a single measurement 24 IM AQ6150 17EN 2 3 GP IB Interface Specifications GP IB Interface Specifications Electrical and mechanical specifications Functional specifications Protocol Code Mode Address setting Clearing remote mode Functional Specifications Conforms to IEEE St d 488 1978 See the table below Conforms to IEEE St d 488 2 1992 ISO ASCII codes Addressable mode Set the address in the range of 0 to 30 on the GP IB setup screen of the SYSTEM menu Press LOCAL to clear remote mode This is not possible when local lockout has been activated by the controller e eyieyul gl do Function Subset Name Description Source handshaking SH1 Full source handshaking capability Acceptor handshaking AH1 Full acceptor handshaking capability Basic talker capability serial polling and untalk on MLA My Listen Address No talk only capability Basic listener capability and unlisten on MTA My Talk Address No listen only capability
130. th of the Function Syntax Example Description horizontal scale on the spectrum window DISPlay WINDow2 TRACe SCALe RIGHt WAVelength lt wsp gt lt wavelength gt DISPlay WINDow2 TRACe SCALe RIGHt WAVelength lt wavelength gt stop wavelength lt NRf gt MINimum MAXimum MINimum Start wavelength 1 nm MAXimum 1650 nm DISP WIND2 TRAC RIGH 1600NM DISP WIND2 TRAC RIGH gt 1 60000000E 006 lt END gt Query results are returned in m This is an overlapping command DISPlay WINDow2 TRACe SCALe RIGHt FREQuency Function Sets or queries the stop frequency of the horizontal scale on the spectrum window Syntax DISPlay WINDow2 TRACe SCALe RIGHt FREQuency lt wsp gt lt frequency gt DISPlay WINDow2 TRACe SCALe RIGHt FREQuency lt frequency gt stop frequency lt NRf gt MINimum MAXimum MINimum Start frequency 0 1 THz MAXimum 236 060 THz Example DISP WIND2 TRAC RIGH FREQ 190THZ DISP WIND2 TRAC RIGH FREQ gt 1 90000000E 014 lt END gt Description Query results are returned in Hz This is an overlapping command DISPlay WINDow2 TRACe SCALe RIGHt WNUMber Function Syntax Example Description Sets or queries the stop wavenumber of the horizontal scale on the spectrum window DISPlay WINDow2 TRACe SCALe RIGHt WNUMber lt wsp gt lt wnumber gt DISPlay WINDow2 TRACe SCALe RIGHt WNUMbe
131. th value is measured Example CALC3 DRIF WAV ON CALC3 DRIF WAV gt 1 lt END gt Description This cannot be set to ON if any of the following is already being measured MAX MIN MAX MIN Ref or Power CALCulate3 DRIFt PRESet Function Sets the MAX MIN MAX MIN and Ref measurements of drift measurement to OFF Syntax CALCulate3 DRIFt PRESet Example CALC3 DRIF PRES Description After this command is executed the response to the CALCulate3 DATA command will contain the delta measurement result 5 18 IM AQ6150 17EN 5 5 Device specific Commands CALCulate3 DRIFt STATe Function Syntax Example Sets or queries the on off state of drift measurement CALCulate3 DRIFt STATe lt wsp gt 0 OFF 1 ON CALCulate3 DRIFt STATe OJOFF Drift measurement is disabled 1 ON Drift measurement is enabled CALC3 DRIF ON CALC3 DRIF gt 1 lt END gt CALCulate3 DRIFt REFerence RESet Function Syntax Example Description Re executes drift measurement using the current detected peak as the reference CALCulate3 DRIFt REFerence RESet CALC3 DRIF REF PRES Drift measurement results are displayed from when this command is executed CALCulate3 DRIFt REFerence STATe Function Syntax Example Sets or queries whether Ref values will be returned in response to CALCulate3 DATA commands for drift measurement CALCulate3 DRIFt REFerence STATe
132. the auto peak search function will be set to OFF Example Description CONFigure ARRay POWer Function Syntax Example Description Sets the peak for the screen in which View Mode is set to multi view by specifying the power CONFigure ARRay POWer lt wsp gt lt expected_value gt lt expected_value gt power specifying the peak MAXimum MINimum DEFault lt NRf gt MAXimum Maximum power peak MINimum Minimum power peak DEFault Selected peak lt NRf gt Peak closest to the specified power CONF ARR POW 4DBM If the parameter is omitted DEF will be set If the parameter is not set to DEF the auto peak search function will be set to OFF CONFigure ARRay POWer FREQuency Function Syntax Example Description Sets the peak for the screen in which View Mode is set to multi view by specifying the frequency CONFigure ARRay POWer FREQuency wsp expected values lt expected_value gt frequency specifying the peak MAXimum MINimum DEFault lt NRf gt MAXimum Maximum frequency peak MINimum Minimum frequency peak DEFault Selected peak lt NRf gt Peak closest to the specified frequency CONF ARR POW FREQ 193 6THZ If the parameter is omitted DEF will be set If the parameter is not set to DEF the auto peak search function will be set to OFF CONFigure ARRay POWer WAVelength Function Syntax Example Description Sets the peak for the screen in whi
133. to the specified frequency CONF POW FREQ 193 6THZ Ifthe parameter is omitted DEF will be set f the parameter is not set to DEF the auto peak search function will be set to OFF Example Description CONFigure SCALar POWer WAVelength Sets the peak for the screen in which View Mode is set to single view by specifying the wavelength CONFigure SCALar POWer WAVelength Function Syntax lt wsp gt lt expected_value gt lt expected_value gt wavelength specifying the peak MAXimum MINimum DEFault lt NRf gt MAXimum Maximum wavelength peak MINimum Minimum wavelength peak DEFault Selected peak lt NRf gt Peak closest to the specified wavelength CONF POW WAV 1547 4nm Ifthe parameter is omitted DEF will be set If the parameter is not set to DEF the auto peak search function will be set to OFF Example Description CONFigure SCALar POWer WNUMber Sets the peak for the screen in which View Mode is set to single view by specifying the wavenumber CONFigure SCALar POWer WNUMber Function Syntax lt wsp gt lt expected_value gt lt expected_value gt wavenumber specifying the peak MAXimum MINimum DEFault lt NRf gt MAXimum Maximum wavenumber peak MINimum Minimum wavenumber peak DEFault Selected peak lt NRf gt Peak closest to the specified wavenumber CONF POW WNUM 646710 Ifthe parameter is omitted DEF will be set Ifthe parameter is not set to DEF
134. turned in m 1 This is an overlapping command FETCh SYNChronous SCALar POWer Function Syntax Example Description Queries the peak power at the completion of the current measurement in single view mode for repeat measurement FETCh SYNChronous SCALar POWer lt wsp gt lt expected_value gt lt expected_value gt power MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum power peak MINimum Specifies the minimum power peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified power FETC SYNC POW gt 7 28000000E 000 lt END gt If the parameter is not set to lt NRf gt or DEF the auto peak search function will be set to OFF Query results are returned in dBm or W depending on the parameter This is an overlapping command FETCh SYNChronous SCALar POWer FREQuency Function Syntax Example Description Queries the peak frequency at the completion of the current measurement in single view mode for repeat measurement FETCh SYNChronous SCALar POWer FREQuency lt wsp gt lt expected_value gt lt expected_value gt frequency MAXimum MINimum DEFault lt NRf gt MAXimum Specifies the maximum frequency peak MINimum Specifies the minimum frequency peak DEFault Specifies the selected peak lt NRf gt Specifies the peak closest to the specified frequency FETC SYNC POW FREQ
135. us Byte Register ESE Standard Event Status Enable Register Standard Event Status Register Description Power on not used Command error Execution error sJojsiDoy snjejs gt Device dependency error Query error not used Operation complete ESR Standard Event Status Register Bit Event Description Decimal Note value Bit7 PON Set to 1 when the power changes from 128 power ON Off to on Bit6 None Not used always 0 0 Bits CME Set to 1 when a syntax error is detected 32 command or when an unknown command is error detected Set to 1 when a GET command is detected between the first byte of the program message and the program message terminator Bit4 EXE Set to 1 when the program data following 16 Set to 1 when message execution the program header is outside the number 200 occurs error valid range Set to 1 when a program message that conflicts with the current device state is received Bit3 DDE Set to 1 when an error other than CME 8 Set to 1 when a message EXE or QYE a device specific error number in the 70s occurs measurement processing errors or 80s hardware operation error occurs Bit2 QYE Set to 1 when the response to a query 4Setto when message number query error command is not in the output queue 1 410 or 440 occurs Bit 1 None Not used always 0 0 BitO OPC Command operation complete Valid only 1 For details on the timing operati
136. vides information about the operation status of the AQ6150 AQ6151 Questionable Event Register Indicates the presence or absence of events Events are latched Conditional masking register for generating Questionable Event Enable Register summary bit QUS IM AQ6150 17EN 4 1 4 1 Status Registers Complete Status Register Diagram Standard Event Status Power on Not used Command error Execution error Device dependent error Query error Not used Operation complete Operation Status Not used Not used Not used Not used Averaging Not used Processing Not used Not used Not used Not used MEASuring Not used RANGing Not used Not used Questionable Status Not used Not used Not used Not Stabilize Delta Reference Drift Reference Maximum Signals Not used Not used Not used Not used Over Temperature Maximum Power Not used Not used Not used bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Output buffer 4 2 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 gt ee Status Byte OPS RQS MSS ESB MAV QUS Erroe Queue Not used Not used
137. wsp 0 OFF 1 ON CALCulate3 DRIFt REFerence STATe O OFF The Ref value is not returned 1 ON The Ref value is returned CALC3 DRIF REF ON CALC3 DRIF REF gt 1 lt END gt CALCulate3 FPERot STATe Function Syntax Example CALCula Function Syntax Example Description Sets or queries the on off state of FP LD analysis CALCulate3 FPERot STATe lt wsp gt 0 OFF 1 ON CALCulate3 FPERot STATe OJOFF FP LD analysis is disabled 1 ON FP LD analysis is enabled CALC3 FPER ON CALC3 FPER gt 1 lt END gt te3 FPERot FWHM Queries the FWHM value of FP LD analysis CALCulate3 FPERot FWHM WAVelength FREQuency WNUMber WaAVelength FREQuency WNUMber Wavenumber CALC3 FPER FWHM gt 3 12095579E 009 lt END gt Query results are returned in m for wavelength Hz for frequency and m 1 for wavenumber This is an overlapping command CALCulate3 FPERot MEAN Function Syntax CALCulate3 FPERot MEAN Queries the center value of FP LD analysis WAVelength FREQuency WNUMber WAVelength FREQuency WNUMber Wavenumber CALC3 FPER MEAN gt 1 54721566E 006 lt END gt Example Description Query results are returned in m for wavelength Hz for frequency and m 1 for wavenumber This is an overlapping command CALCulate3 FPERot MODE SPACing Queries the channel spacing of FP LD analysis
138. ype TABLe SETup SIMage1 SIMage2 SIMage3 TABLe Wavelength data SETup Setup data SIMage1 Screen capture black and white SIMage2 Screen capture color SIMage3 Screen capture color no background color file name gt File name INTernal Internal memory EXTernal USB memory medium MMEM STOR SET SETTINGS The file name extension will be added automatically This is an overlapping command IM AQ6150 17EN 5 35 spuewwog ajoulas a 5 5 Device specific Commands READ Sub System Commands Overview This subsystem is a function for starting a measurement on the AQ6150 AQ6151 and querying the measured results when the measurement is complete These commands can be used to make queries without changing the AQ6150 AQ6151 settings executing these commands will not change the View Mode of the AQ6150 AQ6151 If the measurement on the AQ6150 AQ6151 is stopped the AQ6150 AQ6151 will execute a single measurement and return the measured results If the AQ6150 AQ6151 is measuring repeat measurement it will return a execution error If averaged measurement is in progress the AQ6150 AQ6151 returns averaged measured results Executing a READ SCALar command returns one measurement result Executing a READ ARRay command returns measurement results for the number of data points 1024 maximum Executing these commands will not change the display single view or multi view Related commands FETC
139. ystem Imports System IO Imports NationalInstruments NI4882 Module GpibSingleMeasure Sample Program for Making One Single Measurement and Displaying the Results Wavelength Information Power Information and FP LD Analysis Results on the Screen via GP IB Sub Main Try Dim GpibDevice As Device Dim wlmAddr As Integer Dim replyString As String Dim wavArray As Double Dim powArray As Double Dim fwhm ctrWl totalPwr sigma As Double Dim maxPeakPower maxPeakWl As Double wlmAddr 7 Wavelength meter GP IB address GpibDevice New Device 0 wlmAddr Open GP IB Call GpibWrite RST GpibDevice Reset the AQ615x Call GpibWrite CALC2 PTHR MODE REL GpibDevice Set the peak detection threshold setting to relative mode Call GpibWrite CALC2 PTHR 15 GpibDevice Set the peak detection threshold to 15 db Call GpibWrite UNIT WL NM GpibDevice Set the wavelength unit to nm Call GpibWrite UNIT POW DBM GpibDevice Set the power unit to dBm Call GpibWrite DISP WIND2 STAT ON GpibDevice Enable the graph display Use the READ command to execute measurement and retrieve data Use the FETC command to retrieve measured power information data Call GpibWrite READ ARR POW WAV GpibDevice Execute a Single measurement and retrieve wavelength data 2 10 IM AQ6150 17EN 2 6 Sample Program replyString GpibRead GpibDevice Call SplitArrayData replyString wavArray Store w
Download Pdf Manuals
Related Search
Related Contents
風力・太陽光発電システム、通信基盤設備 HPPalmtop - HP Computer Museum Genograma e Ecomapa Untitled - Made in Tunisia Téléchargez cette bibliographie au format PDF 8037706 DBSwitch - Sage ACT! add-ons 生物由来製品 ヘパリン人工心肺回路 User`s Manual - CO2Meter.com Samsung 225MW Computer Monitor User Manual Copyright © All rights reserved.
Failed to retrieve file