CN105115702A - Automated test control method of wavelength-correlative device - Google Patents

Automated test control method of wavelength-correlative device Download PDF

Info

Publication number
CN105115702A
CN105115702A CN201510509629.3A CN201510509629A CN105115702A CN 105115702 A CN105115702 A CN 105115702A CN 201510509629 A CN201510509629 A CN 201510509629A CN 105115702 A CN105115702 A CN 105115702A
Authority
CN
China
Prior art keywords
wavelength
program
main frame
power meter
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510509629.3A
Other languages
Chinese (zh)
Inventor
张启发
刘云
王春生
吕利影
刘婧婧
苗春华
赵义博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Asky Quantum Technology Co Ltd
Original Assignee
Anhui Asky Quantum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Asky Quantum Technology Co Ltd filed Critical Anhui Asky Quantum Technology Co Ltd
Priority to CN201510509629.3A priority Critical patent/CN105115702A/en
Publication of CN105115702A publication Critical patent/CN105115702A/en
Pending legal-status Critical Current

Links

Landscapes

  • Semiconductor Lasers (AREA)
  • Optical Communication System (AREA)

Abstract

The invention discloses an automated test control method of a wavelength-correlative device. The method comprises the following steps of: connecting a host with a computer via a GPIB-to-USB interface and opening Labview to communicate the host and a program; writing a command into the host; reading information that fed back to the program by the host after the host receives the command; converting a data format in a VISA READ reading buffer in order to convert data in the form of character strings into decimal data and form a table format; closing an GPIB interface after reading and writing are completed; extracting a numerical part about a wavelength 1550 from a VISA WRITE command; in a wavelength scanning process, extracting a power maximum value, a power minimum value, and wavelengths corresponding to the power maximum value and the power minimum value from the table by writing a program; and automatically generating a required EXCEL table file from an automatically-tested data table. The method achieves automated test control and is convenient and fast.

Description

The automatic test control method of wavelength dependence device
Technical field
The present invention relates to a kind of method of testing of wavelength dependence device, particularly relate to a kind of automatic test control method of wavelength dependence device.
Background technology
Traditional test: utilize above-mentioned instrument to test wavelength dependence device, traditional method of testing is: suppose that the wavelength coverage needing test is 1550nm-1560nm, every 0.1nm test once, such as 1550.1nm, the wavelength that tunable laser is set is needed to be 1550.1nm, the wavelength arranging power meter is again 1550.1nm, now records the reading that power meter is corresponding; Next wavelength is set again, so ceaselessly reading is set repeatedly.About some settings of instrument parameter, need on instrument, to carry out repeatedly button by button and select to arrange.Said method carry out testing all to consume on time and manpower a lot, inefficiency.
Summary of the invention
The object of this invention is to provide a kind of automatic test control method of wavelength dependence device, the automatic test control method of this wavelength dependence device can realize automatic test and control, convenient and swift.
For realizing above-mentioned technical purpose, the technical scheme that the present invention takes is: the automatic test control method of wavelength dependence device, is characterized in that comprising the following steps:
The first step: turn USB interface by GPIB and connect main frame and computer, open Labview, realize the connection between main frame and program; Described main frame is Agilent8163B main frame; Described Agilent8163B main frame comprises the Agilent81634B power meter module of Agilent81960A tunable laser module and Wavelength tunable;
Second step: to host write command, namely writes Host Control Command in VISAWRITE function, and shown control command is followed successively by: arranging tunable laser wavelength is 1550nm, and arranging wavelength when power meter reads is 1550nm, readout power meter reading;
3rd step: read main frame and to receive orders the information of the program that feeds back to;
4th step: conversion VISAREAD reads the data layout in buffer zone, converts the data of character string forms to decimal data, and forms form;
5th step: read and write closedown gpib interface.
As further improved technical scheme of the present invention, further comprising the steps of:
6th step: in VISAWRITE write order about this numerical portion extraction and isolation of wavelength 1550 out; Then between VISAWRITE and VISAREAD, add a FOR loop program, the numerical portion 1550 extracted is realized the constantly cumulative of numeral by coding and FOR circulation; In program, the scanning wavelength scope of tunable laser and stepping wavelength can be arranged as required;
7th step: when in the process of carrying out length scanning, extracted the wavelength of power maximal value and minimum value and their correspondences in form by coding;
8th step: by the data form of automatic test, the Microsoft Excel file required for automatically generating on computers.
As further improved technical scheme of the present invention, in second step, write the parameter command of main frame simultaneously.
As further improved technical scheme of the present invention, described parameter command is: power meter unit is arranged, power meter reads set of time.
The present invention, on host interface, can regulate laser instrument or power meter wavelength and some correlation parameters by button; By Labview coding, realize, on programmed control panel, arranging required parameter, only need change some parameters, realize intuitively easy; Realize reading in real time the reading of power meter and preserving simultaneously.Although tunable laser has autoscan function, in the process of instrument designing scanning, the reading of power meter reading cannot be carried out; In a program, utilize the autoscan function of instrument, also cannot realize the reading to the corresponding power of each wavelength.Abandon the length scanning process that instrument carries for this reason, the scanning that coding realizes tunable laser wavelength is designed by Labview, and in the process of scanning, make the wavelength of power meter follow the tracks of laser scans wavelength all the time, in Labview, record the performance number of each scanning wavelength simultaneously.When whole scanning completes, design program isolate scanning wavelength process in the maximal value of power meter and minimum value and the wavelength corresponding to them; Simultaneously when program end of run time, generate Microsoft Excel corresponding to scan-data on computers.
Accompanying drawing explanation
Fig. 1 is the automatic test programming flowchart of wavelength dependence device;
Fig. 2 is the automatic test program actual motion front panel schematic diagram of wavelength dependence device;
Fig. 3 is that the automatic test data of wavelength dependence device generate Microsoft Excel figure automatically.
Embodiment
Embodiment 1
The automatic test control method of this wavelength dependence device comprises the following steps:
The first step: turn USB interface by GPIB and connect main frame and computer, open Labview, realize the connection between main frame and program; Described main frame is Agilent8163B main frame; Described Agilent8163B main frame comprises the Agilent81634B power meter module of Agilent81960A tunable laser module and Wavelength tunable;
Second step: to host write command; In VISAWRITE function, write Host Control Command, host computer control is followed successively by: arranging tunable laser wavelength is 1550nm, and arranging wavelength when power meter reads is 1550nm, readout power meter reading; Meanwhile, also can writing some parameter commands of instrument, as read set of time etc. to the setting of power meter unit, power meter, as settings need be changed, only need change corresponding numerical portion, simple and convenient.Such as sens1:pow:unit1; It is W that numeral 1 represents power meter unit; Numerical portion is changed into 0 and represent power meter unit;
3rd step: read main frame and to receive orders the information of the program that feeds back to;
4th step: conversion VISAREAD reads the data layout in buffer zone, converts the data of character string forms to decimal data, and forms form;
5th step: read and write closedown gpib interface;
When above-mentioned steps can realize arranging single wavelength, the reading of readout power meter; How to realize the wavelength continuously adjustabe of tunable laser, the wavelength of power meter is consistent simultaneously, the reading of readout power meter.Shown in following 6th step:
6th step: as shown in Figure 1, the method for realization be in VISAWRITE write order about this numerical portion extraction and isolation of wavelength 1550 out; Then between VISAWRITE and VISAREAD, add a FOR loop program; The numerical portion 1550 will extracted again, realizes the constantly cumulative of numeral by coding and FOR circulation; Stepping wavelength place is set to 0.1, and start wavelength is set to 1550, supposes that the times N of FOR circulation top is set to 11.Then when program is run time, time VISAWRITE and VISAREAD runs first time circulation, the wavelength 1550nm of tunable laser and power meter is set, then the readings of recording power meter; Program proceeds second time circular flow, and now go forward one by one as 1550.1nm in wavelength place, arranges the wavelength 1550.1nm of tunable laser and power meter, then the readings of recording power meter; The like, until circulation has completed for 11 times, now stopping wavelength has been 1551nm.Then the VISA that program enters below closes function down interface; In program, the scanning wavelength scope of tunable laser and stepping wavelength can be arranged as required;
7th step: when in the process of carrying out length scanning, the list data of generation generally can be more, extracted the wavelength of power maximal value and minimum value and their correspondences in form by coding.
8th step: by the data form of automatic test, the Microsoft Excel file required for automatically generating on computers.The present invention, on host interface, can regulate laser instrument or power meter wavelength and some correlation parameters by button; By Labview coding, realize, on programmed control panel, arranging required parameter, only need change some parameters, realize intuitively easy; Realize reading in real time the reading of power meter and preserving simultaneously.Fig. 2 is the automatic test program actual motion front panel schematic diagram of wavelength dependence device.
Although tunable laser has autoscan function, in the process of instrument designing scanning, the reading of power meter reading cannot be carried out; In a program, utilize the autoscan function of instrument, also cannot realize the reading to the corresponding power of each wavelength.Abandon the length scanning process that instrument carries for this reason, the scanning that coding realizes tunable laser wavelength is designed by Labview, and in the process of scanning, make the wavelength of power meter follow the tracks of laser scans wavelength all the time, in Labview, record the performance number of each scanning wavelength simultaneously.
When whole scanning completes, design program isolate scanning wavelength process in the maximal value of power meter and minimum value and the wavelength corresponding to them; Simultaneously when program end of run time, generate Microsoft Excel corresponding to scan-data on computers.When whole program design completes, suppose that wavelength is from 1550nm-1560nm, read a secondary data every 0.1nm, read 101 data and only need click program operation button, the result that after tens seconds, program is run as shown in Figure 3.

Claims (4)

1. an automatic test control method for wavelength dependence device, is characterized in that comprising the following steps:
The first step: turn USB interface by GPIB and connect main frame and computer, open Labview, realize the connection between main frame and program; Described main frame is Agilent8163B main frame; Described Agilent8163B main frame comprises the Agilent81634B power meter module of Agilent81960A tunable laser module and Wavelength tunable;
Second step: to host write command, namely writes Host Control Command in VISAWRITE function, and shown control command is followed successively by: arranging tunable laser wavelength is 1550nm, and arranging wavelength when power meter reads is 1550nm, readout power meter reading;
3rd step: read main frame and to receive orders the information of the program that feeds back to;
4th step: conversion VISAREAD reads the data layout in buffer zone, converts the data of character string forms to decimal data, and forms form;
5th step: read and write closedown gpib interface.
2. the automatic test control method of wavelength dependence device according to claim 1, characterized by further comprising following steps:
6th step: in VISAWRITE write order about this numerical portion extraction and isolation of wavelength 1550 out; Then between VISAWRITE and VISAREAD, add a FOR loop program, the numerical portion 1550 extracted is realized the constantly cumulative of numeral by coding and FOR circulation; In program, the scanning wavelength scope of tunable laser and stepping wavelength can be arranged as required;
7th step: when in the process of carrying out length scanning, extracted the wavelength of power maximal value and minimum value and their correspondences in form by coding;
8th step: by the data form of automatic test, the Microsoft Excel file required for automatically generating on computers.
3. the automatic test control method of wavelength dependence device according to claim 1 and 2, is characterized in that: in second step, writes the parameter command of main frame simultaneously.
4. the automatic test control method of wavelength dependence device according to claim 3, is characterized in that: described parameter command is: power meter unit is arranged, power meter reads set of time.
CN201510509629.3A 2015-08-18 2015-08-18 Automated test control method of wavelength-correlative device Pending CN105115702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510509629.3A CN105115702A (en) 2015-08-18 2015-08-18 Automated test control method of wavelength-correlative device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510509629.3A CN105115702A (en) 2015-08-18 2015-08-18 Automated test control method of wavelength-correlative device

Publications (1)

Publication Number Publication Date
CN105115702A true CN105115702A (en) 2015-12-02

Family

ID=54663743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510509629.3A Pending CN105115702A (en) 2015-08-18 2015-08-18 Automated test control method of wavelength-correlative device

Country Status (1)

Country Link
CN (1) CN105115702A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1995936A (en) * 2005-12-31 2007-07-11 中国科学院半导体研究所 Automated test control system and method for wavelength tunable laser
US20080204712A1 (en) * 2001-03-08 2008-08-28 Busch Kenneth W Dispersive near-infrared spectrometer with automatic wavelength calibration
CN101726806A (en) * 2008-10-15 2010-06-09 中国科学院半导体研究所 Automatic control system for aligning and coupling optical fiber and electrooptical modulator

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080204712A1 (en) * 2001-03-08 2008-08-28 Busch Kenneth W Dispersive near-infrared spectrometer with automatic wavelength calibration
CN1995936A (en) * 2005-12-31 2007-07-11 中国科学院半导体研究所 Automated test control system and method for wavelength tunable laser
CN101726806A (en) * 2008-10-15 2010-06-09 中国科学院半导体研究所 Automatic control system for aligning and coupling optical fiber and electrooptical modulator

Similar Documents

Publication Publication Date Title
CN103308846B (en) Method and device for detecting functional performance of integrated chip based on model identification
CN100561444C (en) A kind of automatic test approach and test macro thereof that drives based on key word
CN104317589B (en) A kind of code automatic generation method and device for being used to load dynamic link library
CN103227779B (en) A kind of communication control method of building equipment, system and device
CN109739766A (en) A kind of system and method for fast construction FPGA digital simulation model
CN107145482A (en) Article generation method and device, equipment and computer-readable recording medium based on artificial intelligence
CN104156342A (en) Method and device for converting Excel format testing case into XML (extensive markup language) format
CN102622234A (en) Development system and method for automatic test case
CN107633867B (en) SPI flash memory test system and method based on FT4222
CN105070321B (en) The quick test circuit and method of memory device
CN102331971A (en) QTP (Quick Test Profession)-based automatic testing method and system
CN102879663A (en) Relay protection device automatic testing system and testing tool special for same
CN105573236A (en) Information processing apparatus, information processing method, information processing program, and storage medium
CN107179910A (en) The logic configuration method that a kind of online editing comes into force immediately
CN106646315A (en) Automatic testing system and automatic testing method for digital measuring instruments
CN103631590A (en) Method for editing automated testing script
CN101458653A (en) Automatic test method for tax controller of cash register
CN102855331A (en) Method of converting EDA (Electronic Document Authorization) files to ATE (Automatic Test Equipment) machine station format files
CN101030160B (en) Tester and method for testing unified series interface command
CN106325860A (en) Automatic maintenance method for aerospace embedded software interface data
CN103616629B (en) Full-automatic diode volt-ampere characteristic testing device
CN104750887A (en) Method for generating parameterized unit in modularized mode
CN105115702A (en) Automated test control method of wavelength-correlative device
CN105426453A (en) Method for controlling log output grade through configuration item
CN102799137B (en) Method for cross-platform transportation of programmable logic controller (PLC) software of wind power control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 241003 No. 12, Zhanghe Road, hi tech Zone, Anhui, Wuhu

Applicant after: Anhui Asky Quantum Technology Co., Ltd.

Address before: 241002 Anhui science and technology innovation public service center, Wuhu national hi tech Zone, Yijiang

Applicant before: Anhui Asky Quantum Technology Co., Ltd.

COR Change of bibliographic data
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151202

RJ01 Rejection of invention patent application after publication