CN108362960A - Automatization test system based on MATLAB and method - Google Patents

Automatization test system based on MATLAB and method Download PDF

Info

Publication number
CN108362960A
CN108362960A CN201810014475.4A CN201810014475A CN108362960A CN 108362960 A CN108362960 A CN 108362960A CN 201810014475 A CN201810014475 A CN 201810014475A CN 108362960 A CN108362960 A CN 108362960A
Authority
CN
China
Prior art keywords
test
matlab
control unit
unit under
test cell
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
CN201810014475.4A
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.)
Guangzhou Huiruisitong Information Technology Co Ltd
Original Assignee
Guangzhou Huiruisitong Information 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 Guangzhou Huiruisitong Information Technology Co Ltd filed Critical Guangzhou Huiruisitong Information Technology Co Ltd
Priority to CN201810014475.4A priority Critical patent/CN108362960A/en
Publication of CN108362960A publication Critical patent/CN108362960A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a kind of automatization test system and method based on MATLAB, the system comprises control unit, test cell and unit under tests, described control unit is connect with test cell and unit under test respectively, the test cell is connect with the unit under test, described control unit is by the state of MATLAB programming Controls test cell and unit under test, and the data that output test result;The test cell is used to receive the signal of unit under test or provides test signal for unit under test;The unit under test is used to send measured signal or receives the test signal that test cell is sent out.The present invention, come the working condition of measuring equipment and test product, and efficiently obtains test result by MATLAB programmings, to realize that efficient, at low cost, versatility is good, programmability is good, use flexibly automatic test.

Description

Automatization test system based on MATLAB and method
Technical field
The present invention relates to a kind of automatization test system and method, more particularly to a kind of automatic test based on MATLAB System and method.
Background technology
Currently, the application of radiotechnics is more and more wider, Related product has been ubiquitous in daily life.For For the producer for producing radio products, how to ensure that the quality of manufacture product is a critically important problem.In order to ensure to produce Quality, it usually needs manufacture test is done to properties of product, to filter out substandard products or defective products.Particularly, to frequency microwave without Test before line electricity product is dispatched from the factory is extremely important, and there are many product Specifications, such as gain, sensitivity, anti-interference Ability, transmission power, power stepping, power consumption etc..During being screened to product, the test that effective acquisition is more is needed Data could analyze the direction of the problem of finding out product and follow-up Optimal improvements.
Generally manufacture product is tested using manual testing or special test board at present, but due to test item It is numerous, manual testing's inefficiency;The purchase cost of special test board (such as Litepoint) is very high.
Invention content
It is an object of the invention to overcome the deficiencies of existing technologies and insufficient, a kind of automation based on MATLAB is provided Test system by MATLAB programmings come the working condition of measuring equipment and test product, and efficiently obtains test result, To realize that efficient, at low cost, versatility and programmability be good, automatic test of use flexibly.
Another object of the present invention is to provide a kind of automated testing methods based on MATLAB.
The purpose of the present invention can be achieved through the following technical solutions:
Automatization test system based on MATLAB, including control unit, test cell and unit under test, the control Unit is connect with test cell and unit under test respectively, and the test cell is connect with the unit under test, described control unit By the state of MATLAB programming Controls test cell and unit under test, and the data that output test result;The test cell is used Test signal is provided in the signal for receiving unit under test transmission or for unit under test;The unit under test is for sending measured signal Or receive the test signal that test cell is sent out.
Further, described control unit is connect by universal asynchronous receiving-transmitting transmitter (UART) with unit under test.
Further, described control unit is connect by general purpose interface bus (GPIB) with test cell.
Further, described control unit is connect by general purpose interface bus with one of test cell, test cell Between pass through general purpose interface bus extend line connection.
Further, the test cell, which includes signal source, frequency spectrograph, comprehensive test instrument, ammeter or voltmeter etc., has The apparatus elements of gpib interface.
Further, test output result includes data form part, data depicted portion and test result part.
Another object of the present invention can be achieved through the following technical solutions:
Automated testing method based on MATLAB includes the following steps:
1) control unit is programmed by MATLAB, add or delete test item;
2) control unit is connect with unit under test, and serial ports is created in MATLAB, and has configured serial ports parameter, opens string Mouthful;
3) control unit is connect with test cell, test cell object is created in MATLAB, and configured Connecting quantity, Open object;
4) control unit control test cell is operated in i.e. by state needed for test item, and control unit controls at unit under test In corresponding working state, delay to unit under test stable working state;
5) control unit read test cell data or unit under test data, and preserved after MATLAB is handled;
6) control unit judges whether test item meets the requirements, if met the requirements, carries out next test item, lays equal stress on 7) multiple step 4) if being unsatisfactory for requiring, is thened follow the steps to step 6);Or control unit is sequentially completed without judging Step 7) is executed after all test items;
7) control unit outputs test result data.
Further, serial ports parameter described in step 2) is serial port, baud rate, data bit, time-out time.
Further, control unit described in step 3) obtains each test cell parameter by scanning, right in MATLAB Each test cell creates object, and Connecting quantity is arranged.
Further, control unit described in step 5) can multiple read test cell data or unit under test data.
Compared with prior art, the present invention having the following advantages that and advantageous effect:
1, Auto-Test System and method provided by the present invention based on MATLAB be compared with manual testing, efficient, It is easy to operate, and more tests are recycled for same test item and are averaged as a result, making reliable test result;With special test Board is compared, and at low cost, versatility and programmability are good, use flexibly, can add or delete in a program as needed test .
2, the present invention is programmed using MATLAB, and MATLAB programmings are simple, are easily achieved.When actual test, need to only it allow MATLAB full speed runnings, waiting are completed.
3, universal asynchronous receiving-transmitting transmitter (UART) is most common interface, general purpose interface bus in radio products (GPIB) be also instrument general standard interface, therefore have very strong versatility.
Description of the drawings
Fig. 1 is a schematic diagram of the automatization test system the present invention is based on MATLAB.
Fig. 2 is that the present invention is based on another schematic diagrames of the automatization test system of MATLAB.
Fig. 3 is a flow chart of the automated testing method the present invention is based on MATLAB.
Fig. 4 is another flow chart of the automated testing method the present invention is based on MATLAB.
Specific implementation mode
Present invention will now be described in further detail with reference to the embodiments and the accompanying drawings, but embodiments of the present invention are unlimited In this.
As shown in Figure 1, a kind of automatization test system based on MATLAB is present embodiments provided, including control unit, Test cell and unit under test, control unit are connect with test cell and unit under test respectively, test cell and unit under test Connection, control unit is by the state of MATLAB programming Controls test cell and unit under test, and the data that output test result;It surveys Examination unit is used to receive the signal of unit under test transmission or provides test signal for unit under test;Unit under test is tested for sending Signal receives the test signal that test cell is sent out.
Wherein, test cell may include having multiple, GPIB connecting lines is respectively adopted, each test cell is connected to control list Then each test cell is connected to unit under test by member.
Control unit is connect by universal asynchronous receiving-transmitting transmitter (UART) with unit under test.The UART in radio products It is most common interface, it is good using the interface generality.
Control unit is connect by general purpose interface bus (GPIB) with test cell.General purpose interface bus is measuring instrument General standard interface, therefore this automatization test system has very strong versatility.
Test cell can be signal source, frequency spectrograph, comprehensive test instrument, ammeter or voltmeter, can also be that having GPIB connects Other test equipments of mouth.Control unit passes through UART interface or gpib interface to the control command of unit under test and test cell It is sent out in the form of character string.
Test output result includes data form part, data depicted portion and test result part.Test result can root Corresponding format output is generated according to demand, and result is shown with visual chart, is conveniently checked.
As shown in Fig. 2, present embodiments provide another automatization test system based on MATLAB, the embodiment with it is upper In one embodiment automatization test system the difference is that, control unit passes through general purpose interface bus and one of test is single Member connects, and passes through general purpose interface bus between test cell and extends line connection.Specifically, control unit is connected to by GPIB extractions Then test cell 1 extends line by GPIB and connect test cell 1 with test cell 2.Namely when the survey of control terminal connection When test instrument is more, the connection that GPIB extension lines can be used that GPIB lines is replaced to realize test cell and control unit, GPIB extensions Line ratio GPIB lines are at low cost, while being not take up the interface of control unit, as control unit be computer when, the USB of computer can be saved Port.
As shown in figure 3, present embodiments providing a kind of automatic test approach based on MATLAB, this method includes following step Suddenly:
Step 1: control unit is programmed by MATLAB, add or delete test item;
Step 2: control unit is connect with unit under test, serial ports is created in MATLAB, and has configured serial ports parameter, is beaten Open string mouth;
Step 3: control unit is connect with test cell, test cell object is created in MATLAB, and configures good connection Parameter opens object;
Step 4: control unit control test cell is operated in i.e. by state needed for test item, control unit control is tested Unit is in corresponding working state, delay to unit under test stable working state;
Step 5: control unit read test cell data or unit under test data, and preserved after MATLAB is handled;
Step 6: control unit judges whether test item meets the requirements, if met the requirements, next test is carried out , and step 4 is repeated to step 6, if being unsatisfactory for requiring, then follow the steps seven;
The data Step 7: control unit outputs test result.
In step 1, add or delete test item can be corresponding macro to each test item establishment one in MATLAB, when When being 1, indicate that the test item is added;When for 0, indicate to test without this, example is as follows:
RX_GAIN_TEST=1;
TX_POWER_TEST=1;
……
It is compared to automated test tool to need in sequence to test, it usually needs complete all test items, ability It obtains a certain test result, cannot achieve and only choose fc-specific test FC item to be tested.In step 1, add or delete test item Can only be added according to testing requirement needs test item to be tested, and the testing sequence of each test item can be adjusted flexibly.
Serial ports parameter is serial port, baud rate, data bit, time-out time etc. in step 2.
Control unit is connect by gpib interface with test cell in step 3, and (such as by instrument control software Keysight IO Libraries Suite) it scans the main address of instrument (PrimaryAddress) of each measuring instrument and establishes Link, using the tmtool tools in MATLAB, scans the GPIB card numbers (BoardIndex) of linked instrument.For each Object is respectively created in instrument, and the connections such as connection type (type), GPIB card numbers and instrument main address ginseng has been configured in MATLAB Number, and open object.
In step 5 control unit can repeatedly read test cell data or unit under test data, to same test item, Repeatedly test is averaged as a result, making reliable test result cycle.By GPIB lines by query order read test cell datas or Person reads the corresponding data of unit under test by UART serial ports, is preserved into array after MATLAB is handled.
In step 7, test data may be output in EXCEL, and draw data profile, export test result, and print Prompt is completed.
As shown in figure 4, present embodiments provide another automated testing method based on MATLAB, the embodiment with it is upper In one embodiment automated testing method the difference is that, in step 6, control unit without judge, but successively will Each test item executes step 7 after the completion of all testing.Whether control unit carries out judge being determined according to actual test demand , in production if need to only pick out non-defective unit or defective products, carry out whether test item meets if control unit in step 6 It is required that judgement, just terminate to test to after picking out non-defective unit or defective products, the test of whole test items need not be completed.But In R&D process, it usually needs the indices for knowing research and development product, for analyzing Curve guide impeller, the control unit in step 6 The judgement then whether met the requirements without test item terminates test after being sequentially completed each test item.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. the automatization test system based on MATLAB, which is characterized in that the system comprises control unit, test cell and Unit under test, described control unit are connect with test cell and unit under test respectively, the test cell and the unit under test Connection, described control unit is by the state of MATLAB programming Controls test cell and unit under test, and the number that outputs test result According to;The test cell is used to receive the signal of unit under test or provides test signal for unit under test;The unit under test is used In the test signal that transmission measured signal or reception test cell are sent out.
2. the automatization test system according to claim 1 based on MATLAB, which is characterized in that described control unit is logical Universal asynchronous receiving-transmitting transmitter is crossed to connect with unit under test.
3. the automatization test system according to claim 1 based on MATLAB, which is characterized in that described control unit is logical General purpose interface bus is crossed to connect with test cell.
4. the automatization test system according to claim 1 based on MATLAB, which is characterized in that described control unit is logical It crosses general purpose interface bus to connect with one of test cell, line connection is extended by general purpose interface bus between test cell.
5. the automatization test system according to claim 1 based on MATLAB, which is characterized in that the test cell is Signal source, frequency spectrograph, comprehensive test instrument, ammeter with general purpose interface bus interface or voltmeter.
6. the automatization test system according to claim 1 based on MATLAB, which is characterized in that the output test knot Fruit includes data form part, data depicted portion and test result part.
7. the automated testing method based on MATLAB, which is characterized in that the described method comprises the following steps:
1) control unit is programmed by MATLAB, add or delete test item;
2) control unit is connect with unit under test, and serial ports is created in MATLAB, and has configured serial ports parameter, opens serial ports;
3) control unit is connect with test cell, test cell object is created in MATLAB, and configured Connecting quantity, is opened Object;
4) control unit control test cell is operated in i.e. by state needed for test item, and at control unit control unit under test In corresponding working state, delay to unit under test stable working state;
5) control unit read test cell data or unit under test data, preserve after MATLAB is handled;
6) control unit judges whether test item meets the requirements, if met the requirements, carries out next test item, and repeat to walk It is rapid 4) to step 6), if being unsatisfactory for requiring, then follow the steps 7);Or control unit is sequentially completed all without judging Step 7) is executed after test item;
7) control unit outputs test result data.
8. the automated testing method according to claim 7 based on MATLAB, which is characterized in that gone here and there described in step 2) Mouth parameter is serial port, baud rate, data bit, time-out time.
9. the automated testing method according to claim 7 based on MATLAB, which is characterized in that controlled described in step 3) Unit processed obtains each test cell parameter by scanning, and object, setting connection ginseng are created to each test cell in MATLAB Number.
10. the automated testing method according to claim 7 based on MATLAB, which is characterized in that the step 5) control Unit processed can multiple read test cell data or unit under test data.
CN201810014475.4A 2018-01-08 2018-01-08 Automatization test system based on MATLAB and method Pending CN108362960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810014475.4A CN108362960A (en) 2018-01-08 2018-01-08 Automatization test system based on MATLAB and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810014475.4A CN108362960A (en) 2018-01-08 2018-01-08 Automatization test system based on MATLAB and method

Publications (1)

Publication Number Publication Date
CN108362960A true CN108362960A (en) 2018-08-03

Family

ID=63011045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810014475.4A Pending CN108362960A (en) 2018-01-08 2018-01-08 Automatization test system based on MATLAB and method

Country Status (1)

Country Link
CN (1) CN108362960A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743221A (en) * 2018-12-25 2019-05-10 中国电子科技集团公司第五十四研究所 A kind of test method suitable for communication equipment
CN110350987A (en) * 2019-06-25 2019-10-18 成都九洲迪飞科技有限责任公司 A kind of cross-platform RF index automatization test system and test method based on QT

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7966622B1 (en) * 2006-03-31 2011-06-21 The Mathworks, Inc. Interfacing a device driver with an application using a virtual driver interface and a strategy
CN203012544U (en) * 2012-10-30 2013-06-19 中国科学技术大学 Intelligent linear heating temperature control apparatus
CN104569934A (en) * 2014-12-31 2015-04-29 中国气象局气象探测中心 Radar fault-handling system
CN105223528A (en) * 2015-10-20 2016-01-06 国家电网公司 A kind of adjustable cable shelf depreciation analogue means
CN206389333U (en) * 2017-01-06 2017-08-08 安徽理工大学 Based on Embedded solar cell test system
CN107203165A (en) * 2017-07-08 2017-09-26 河北北方学院 SCM Based remote measuring and controlling system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7966622B1 (en) * 2006-03-31 2011-06-21 The Mathworks, Inc. Interfacing a device driver with an application using a virtual driver interface and a strategy
CN203012544U (en) * 2012-10-30 2013-06-19 中国科学技术大学 Intelligent linear heating temperature control apparatus
CN104569934A (en) * 2014-12-31 2015-04-29 中国气象局气象探测中心 Radar fault-handling system
CN105223528A (en) * 2015-10-20 2016-01-06 国家电网公司 A kind of adjustable cable shelf depreciation analogue means
CN206389333U (en) * 2017-01-06 2017-08-08 安徽理工大学 Based on Embedded solar cell test system
CN107203165A (en) * 2017-07-08 2017-09-26 河北北方学院 SCM Based remote measuring and controlling system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李军 等: "基于MATLAB平台和GPIB接口的测试系统开发及应用", 《南京师范大学学报(工程技术版)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743221A (en) * 2018-12-25 2019-05-10 中国电子科技集团公司第五十四研究所 A kind of test method suitable for communication equipment
CN110350987A (en) * 2019-06-25 2019-10-18 成都九洲迪飞科技有限责任公司 A kind of cross-platform RF index automatization test system and test method based on QT

Similar Documents

Publication Publication Date Title
CN104333415B (en) A kind of multichannel automatic test approach and system for testing optical module
CN106155950B (en) Parameter processing method and device
CN206400286U (en) A kind of test system based on hardware in loop equipment
CN104914845B (en) A kind of car body controller fault testing method and system based on industrial personal computer
CN106546839A (en) Attitude control engine ground checkout equipment debugs test system and method automatically
CN106646053A (en) Antenna testing device and method for batch production WiFi/Bluetooth products
CN104808096B (en) Based on the list-directed wireless module automatic testing equipment of instrument and method
CN206209081U (en) A kind of Auto-Test System of power module
CN108362960A (en) Automatization test system based on MATLAB and method
CN109143034A (en) Chip ADC automatic performance test system and method
CN106294056A (en) Chip adjustment method and device
CN107491369A (en) A kind of detection method and system of quick PCIE3.0 signal integrities
CN110609183A (en) IVI technology-based identification module and automatic test system of complete machine
CN109470974A (en) A kind of testing lines system and method based on wireless technology
CN201497780U (en) Rapid cyclic-detection device for two-wire industrial instruments
CN110596314A (en) Operation method and control system of moisture meter control software
CN108833029A (en) A kind of 1800M RF consistency transmitting intermodulation testing method and device
CN202974086U (en) Automatic calibration system for radio fuse tester
CN110708216A (en) Switch LLDP protocol test method and test system
CN109375121B (en) Automatic test system and method
CN209560007U (en) A kind of testing lines system based on wireless technology
CN211318672U (en) Fault diagnosis system for multiport network nonlinear analog circuit
CN208334532U (en) A kind of multi-core cable switching detection device based on Radio Transmission Technology
CN208026841U (en) A kind of protective relaying device intelligent checking system
CN201653544U (en) Laser ageing detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
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: 20180803

RJ01 Rejection of invention patent application after publication