CN103092156A - Device replaceable automatic test system and method - Google Patents

Device replaceable automatic test system and method Download PDF

Info

Publication number
CN103092156A
CN103092156A CN2012105836839A CN201210583683A CN103092156A CN 103092156 A CN103092156 A CN 103092156A CN 2012105836839 A CN2012105836839 A CN 2012105836839A CN 201210583683 A CN201210583683 A CN 201210583683A CN 103092156 A CN103092156 A CN 103092156A
Authority
CN
China
Prior art keywords
module
equipment
logic
design
test
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.)
Granted
Application number
CN2012105836839A
Other languages
Chinese (zh)
Other versions
CN103092156B (en
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.)
Leinas Technology (Beijing) Limited by Share Ltd
Original Assignee
CHINA SPACESAT 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 CHINA SPACESAT Co Ltd filed Critical CHINA SPACESAT Co Ltd
Priority to CN201210583683.9A priority Critical patent/CN103092156B/en
Publication of CN103092156A publication Critical patent/CN103092156A/en
Application granted granted Critical
Publication of CN103092156B publication Critical patent/CN103092156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A device replaceable automatic test system and method comprise a device manager module, a logic design module, a dispatcher control module, an operation logic module, a device driver library module and a communication module. A design layer device concept and an entity device are separated in operation, the function of the device in design is emphasized, the orders of the devices are invoked from the aspect of a function, assigning a certain specification device and a certain entity device is of no need, and the fact that the flexible logic design is fixed on a device with a certain specification is avoided. After receiving testing assignments, testing persons only need to find the design with the function, and device resources are completely used.

Description

The replaceable type automatization test system of equipment and method
Technical field
The present invention relates to a kind of automatization test system and method that is applicable to the service logic design and operation of industrial measurement and control, be applicable to the observing and controlling of industry control industry.
Background technology
The observation and control technology of industry control industry is comprehensive by force, service logic is complicated, should satisfy the test of various complexity, and program control various equipment and instruments also will be taken into account security, stability.to use a lot of equipment and instruments in test process, the oscillograph of Agilent for example, the oscillograph of Tyke etc., although be oscillograph equally, has same function, but must specify a kind of model when logical design, otherwise logic can't be described, because logic is to edit take instruction as unit, tens at least of physical device instructions, thousands of at most, carry out the drafting of logic according to the instrument instruction fully, there is the difference in instruction really in two kinds of oscillographs, in order to complete a kind of function, the Agilent oscillograph uses six instructions of five instruction Tyke oscillograph uses, these differences cause and must will select a kind of instrument model when design, it is the oscillograph of Agilent, it is the oscillograph of Tyke.In fact these two kinds of oscillographs can be completed same function, and just instruction there are differences.In reality test due to the finiteness of instrument resource, many times instrument can not put in place, but instrument can not replace again, easily cause test plan one to rechange or wait for that instrument puts in place, and the instrument with identical function does not take full advantage of, and causes the waste of human and material resources.If the equipment of having accomplished is replaceable, only need to consider function when design, find the replacement of instrument with identical function to test according to the instrument marshalling plan during operation, greatly saved time cost, take full advantage of limited instrument resource.
Summary of the invention
Technology of the present invention is dealt with problems: overcome the deficiencies in the prior art, the interchangeable automatization test system of a kind of equipment and method are provided, reduce the loss of human and material resources, improved utilization factor, the versatility when having improved the test logic design of equipment and instrument resource.
Technical solution of the present invention is: the replaceable type automatization test system of a kind of equipment comprises: device manager module, and the logical design module, dispatching control module, the operation logic module, the device drives library module, communication module, wherein:
Device manager module, the content of apparatus for establishing catalogue, ground floor is the equipment root directory, described content is the virtual unit title; The second layer is model device, and described model device refers to the model of certain equipment; The 3rd layer is real equipment; These three layers is set membership from top to bottom, adopts tree structure to represent this architecture; This module will first be set up this three-layer equipment structure before the operation logic module, the device attribute of foundation and method will be called in the operation logic module;
The test logic design module carries out newly-built, the editor of logic by patterned drawing tool, test logic design module output is a kind of script, has recorded logical relation, the instruction method that calls, parameter information.This module is output as * the ML file layout, and this document is moved by the operation logic module loading;
Dispatching control module has comprised the mapping relations of three equipment levels, the control information the when foundation of the mapping relations of three equipment levels of maintenance, editor, operation.The output of dispatching control module is configuration file, is placed under same root directory with driving file in the device drives library module; This module output XML file layout, information when file content is the equipment operation is for operation logic module run time call;
The device drives library module, equipment is connected to test computer by com port, GPIB card, TCP physics mode, and test computer establishes a communications link by Driver Library module and various device again, can send instructions down, can the receiving equipment data.The device drives library module receives the instruction from the operation logic module, and instruction translation is become the physical device instruction and is issued on entity device, and the device drives library module also obtains facility information from entity device, and information is fed back to the operation logic module;
The operation logic module, facility information, logical message, configuration information when loading the test design, and carry out step by step according to logical order and unit step;
Communication module, communication are requisite modules in whole automatization test system, and the data interaction between each module is undertaken by bottom communication.
The replaceable type automated testing method of a kind of equipment, performing step is as follows:
(1) set up test equipment needed thereby catalogue, facility inventory is tree structure, has three layers, and ground floor is the virtual unit title, and the second layer is model device, and the 3rd layer is entity device.After these catalogues build and complete, the logical design device just can use the attribute of model device and method to carry out logical design.The designer does not need to consider entity device when design, does not need the equipment operation yet;
(2) set up the required logic of test, use the logical design device to carry out the design of logic, preserve into the XML file after design is completed and call for the operation module.Can carry out real-time logic debugging in the test logic designer, during debugging, the running status of equipment can be set, can dry run, can actual motion, dry run only starts Driver Library and does not start real equipment, the instruction of calling and method are returned to some random data, only for the accuracy of debugging user logic;
(3) before the operation logic module is carried out, determine according to field condition some operation informations of entity device, comprise the device address, operate in any station terminal, and these information exchanges are crossed dispatching control module be issued under the device drives catalogue;
(4) the loading logic file logic that brings into operation, send instructions under equipment by device drive layer in operational process, obtains the necessary information data by device drive layer from equipment, provides report printing output according to logic.
The present invention's advantage compared with prior art is: the present invention passes through equipment manager, the design level device concept with when operation entity device separate, pay attention to the function of equipment when design, from the function invocation facility instruction of starting with, need not to specify a certain model, a certain entity device, avoid causing logical design flexibly to be fixed on a certain model device, make the tester after receiving test assignment, only need find the design with this function to get final product, take full advantage of device resource.
Description of drawings
Fig. 1 is the schematic diagram of setting up of present device manager;
Fig. 2 is that module of the present invention forms structural drawing;
Fig. 3 is workflow diagram of the present invention.
Embodiment
The present invention will be further described in detail below in conjunction with the drawings and specific embodiments:
As shown in Figure 1, must set up before the equipment manager test, so just can carry out the design of test logic.Equipment manager is in fact a kind of tree structure, and the higher level is the father node of subordinate, and same level is brotherhood.Each node is with some instructions, and instruction is also set membership.These instructions also have one deck mapping relations with real instruction, all convert the executable instruction of real equipment to by mapping layer when actual motion.The table design is as follows in database:
Field name Data type Default value Remarks
ParentID Int 0 Father ID is if be that 0 this rank of expression is the root rank
EquipID Int ? The unique ID of equipment
FunID int ? Device, method, the unique ID of attribute
FunLocalID int ? The unique ID of command mappings layer
As shown in Figure 2, automatization test system by device manager module, logical design module, logic execution module form, communication module, database form, be divided into front-end interface and background service from software, front-end interface is mainly the configuration to equipment, set up virtual unit, model device, entity device, and attribute, method, the event of adding each equipment, and add note, facilitate the designer to use.Identical program architecture is adopted in the encapsulation that entity device drives, comprise the base class encapsulation to distinct interface, comprise the synchronous asynchronous mechanism of serial ports, the synchronous asynchronous mechanism of TCP/UDP, the encapsulation of GPIB, the encapsulation of PCI integrated circuit board, the encapsulation of USB mouth, also to virtual unit, comprise operation file, operating database, algorithms library etc. and encapsulate.Provide unified interface to calling of outside, the specification protocol content adopts the mode of writing of XML, and facilitates expansion and the upgrading of protocol contents.
At first the driving encapsulation of entity device is wanted the content of defining virtual equipment, then defined the content of model device, have the driving of these precondition entity devices to write just with a definite target in view, could do targetedly the mapping relations between instruction.Mapping is also to preserve mapping relations by configuration file, database, and the mapping block during by operation is realized the execution of final instruction.
The logical design module is a patterned design tool software, its pel comprises setting-out, selection node, device directive node, end node, subprocess node, mutual node, have the functions such as variable-definition, device definition, subprocess definition, this module draws the various logic figure by the mode that pulls, the use connecting line couples together, order according to line in the time of flow performing is carried out, run into the place of the judgement of having ready conditions, carry out the logic judgement according to condition, then select to carry out according to correct logic.Preserve into the XML file after the logical design module is completed and be kept at this locality, also can upload onto the server upper for other staff.
Logic execution module front end is that view shows, the rear end is the flow engine service, the operation of flow process is all that the background engine service is in work in fact, engine is shifted duty onto front end and is shown, see logic step in step by step execution on view, can check the information such as variable in flowchart process, daily record.Must carry out the selection of equipment before flow performing, because what select in flow scheme design is virtual unit, model device mostly, entity device, must not specify an equipment to begin to carry out in the reality test.Flow engine can send to device drive layer to instruction, device drive layer is forwarded to the instruction execution level by the command mappings layer, execution level sends to entity device by actual instruction again, and obtain rreturn value information, until information is turned back to flow engine, so complete execution process instruction just finishes, and flow process can return results to decide according to instruction and continue carry out or stop.
As shown in Figure 3, the data stream of native system has been described data flow and the step of system as shown in the figure:
Model test equipment needed thereby catalogue, facility inventory is tree structure, has three layers, and ground floor is the virtual unit title, and the second layer is model device, and the 3rd layer is entity device.After these catalogues build and complete, the logical design device just can use the attribute of model device and method to carry out logical design.The designer does not need to consider entity device when design, does not need the equipment operation yet;
Secondly set up the required logic of test, use the logical design device to carry out the design of logic, preserve into the XML file after design is completed and call for the operation module.Can carry out real-time logic debugging in the test logic designer, during debugging, the running status of equipment can be set, can dry run, can actual motion, dry run only starts Driver Library and does not start real equipment, the instruction of calling and method are returned to some random data, only for the accuracy of debugging user logic;
Before the operation logic module is carried out, determine according to field condition some operation informations of entity device, comprise the device address, operate in any station terminal, and these information exchanges are crossed dispatching control module be issued under the device drives catalogue;
The loading logic file logic that brings into operation sends instructions under equipment by device drive layer in operational process, obtains the necessary information data by device drive layer from equipment, provides report printing output according to logic.
The unspecified content of the present invention is known to the skilled person technology.

Claims (2)

1. the replaceable type automatization test system of equipment is characterized in that comprising: device manager module, and the logical design module, dispatching control module, the operation logic module, the device drives library module, communication module, wherein:
Device manager module, the content of apparatus for establishing catalogue, ground floor is the equipment root directory, described content is the virtual unit title; The second layer is model device, and described model device refers to the model of certain equipment; The 3rd layer is real equipment; These three layers is set membership from top to bottom, adopts tree structure to represent this architecture; This module will first be set up this three-layer equipment structure before the operation logic module, the device attribute of foundation and method will be called in the operation logic module;
The test logic design module carries out newly-built, the editor of logic by patterned drawing tool, test logic design module output is a kind of script, has recorded logical relation, the instruction method that calls, parameter information.This module is output as the XML file layout, and this document is moved by the operation logic module loading;
Dispatching control module has comprised the mapping relations of three equipment levels, the control information the when foundation of the mapping relations of three equipment levels of maintenance, editor, operation.The output of dispatching control module is configuration file, is placed under same root directory with driving file in the device drives library module; This module output XML file layout, information when file content is the equipment operation is for operation logic module run time call;
The device drives library module, equipment is connected to test computer by com port, GPIB card, TCP physics mode, and test computer establishes a communications link by Driver Library module and various device again, can send instructions down, can the receiving equipment data.The device drives library module receives the instruction from the operation logic module, and instruction translation is become the physical device instruction and is issued on entity device, and the device drives library module also obtains facility information from entity device, and information is fed back to the operation logic module;
The operation logic module, facility information, logical message, configuration information when loading the test design, and carry out step by step according to logical order and unit step;
Communication module, communication are requisite modules in whole automatization test system, and the data interaction between each module is undertaken by bottom communication.
2. the replaceable type automated testing method of equipment is characterized in that comprising that performing step is as follows:
(1) set up test equipment needed thereby catalogue, facility inventory is tree structure, has three layers, and ground floor is the virtual unit title, and the second layer is model device, the 3rd layer entity equipment; After these catalogues build and complete, the logical design device uses attribute and the method for model device to carry out logical design; The designer does not need to consider entity device when design, does not need the equipment operation yet;
(2) set up the required logic of test, use the logical design device to carry out the design of logic, preserve into the XML file after design is completed and call for the operation module; Carry out real-time logic debugging in the test logic designer, the running status of equipment is set during debugging, dry run or actual motion, dry run only starts Driver Library and does not start real equipment, the instruction of calling and method are returned to some random data, only for the accuracy of debugging user logic;
(3) before the operation logic module is carried out, determine according to field condition some operation informations of entity device, comprise the device address, operate in any station terminal, and these information exchanges are crossed dispatching control module be issued under the device drives catalogue;
(4) the loading logic file logic that brings into operation, send instructions under equipment by device drive layer in operational process, obtains the necessary information data by device drive layer from equipment, provides report printing output according to logic.
CN201210583683.9A 2012-12-26 2012-12-26 Equipment replaceable automatic test system and method Active CN103092156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210583683.9A CN103092156B (en) 2012-12-26 2012-12-26 Equipment replaceable automatic test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210583683.9A CN103092156B (en) 2012-12-26 2012-12-26 Equipment replaceable automatic test system and method

Publications (2)

Publication Number Publication Date
CN103092156A true CN103092156A (en) 2013-05-08
CN103092156B CN103092156B (en) 2016-02-10

Family

ID=48204855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210583683.9A Active CN103092156B (en) 2012-12-26 2012-12-26 Equipment replaceable automatic test system and method

Country Status (1)

Country Link
CN (1) CN103092156B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103676911A (en) * 2013-12-25 2014-03-26 上海寰创通信科技股份有限公司 Equipment control system and control method
CN105224430A (en) * 2015-10-29 2016-01-06 艾德克斯电子(南京)有限公司 A kind of test macro and method of testing
CN108228407A (en) * 2018-01-31 2018-06-29 深圳市证通电子股份有限公司 Apparatus function test method, apparatus and readable storage medium storing program for executing
CN111309616A (en) * 2020-02-20 2020-06-19 珠海市运泰利自动化设备有限公司 Test platform and implementation method thereof
CN111782509A (en) * 2020-06-15 2020-10-16 西北工业大学 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5805796A (en) * 1996-03-27 1998-09-08 Dell Usa, Lp System architecture for implementing modular diagnostics
US20050154551A1 (en) * 2003-02-14 2005-07-14 Advantest Corporation Method and structure to develop a test program for semiconductor integrated circuits
CN1851638A (en) * 2005-09-13 2006-10-25 华为技术有限公司 Automation test system and method
JP2009116876A (en) * 2007-11-05 2009-05-28 Advantest Corp Simulation system and method for test device, and program product
CN101833498A (en) * 2009-07-31 2010-09-15 北京伟晨豪嘉科技有限责任公司 Automatic detection system of embedded type system based on testing script technique

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5805796A (en) * 1996-03-27 1998-09-08 Dell Usa, Lp System architecture for implementing modular diagnostics
US20050154551A1 (en) * 2003-02-14 2005-07-14 Advantest Corporation Method and structure to develop a test program for semiconductor integrated circuits
CN1851638A (en) * 2005-09-13 2006-10-25 华为技术有限公司 Automation test system and method
JP2009116876A (en) * 2007-11-05 2009-05-28 Advantest Corp Simulation system and method for test device, and program product
CN101833498A (en) * 2009-07-31 2010-09-15 北京伟晨豪嘉科技有限责任公司 Automatic detection system of embedded type system based on testing script technique

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103676911A (en) * 2013-12-25 2014-03-26 上海寰创通信科技股份有限公司 Equipment control system and control method
CN105224430A (en) * 2015-10-29 2016-01-06 艾德克斯电子(南京)有限公司 A kind of test macro and method of testing
CN105224430B (en) * 2015-10-29 2018-11-20 艾德克斯电子(南京)有限公司 A kind of test macro and test method
CN108228407A (en) * 2018-01-31 2018-06-29 深圳市证通电子股份有限公司 Apparatus function test method, apparatus and readable storage medium storing program for executing
CN111309616A (en) * 2020-02-20 2020-06-19 珠海市运泰利自动化设备有限公司 Test platform and implementation method thereof
CN111782509A (en) * 2020-06-15 2020-10-16 西北工业大学 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism
CN111782509B (en) * 2020-06-15 2022-11-29 西北工业大学 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism

Also Published As

Publication number Publication date
CN103092156B (en) 2016-02-10

Similar Documents

Publication Publication Date Title
CN110795219B (en) Resource scheduling method and system suitable for multiple computing frameworks
CN104468778B (en) A kind of cloud manufacturing execution system and its manufacture execution method based on cloud service
CN102750301B (en) Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description
CN109684681A (en) Using the high layering verification method of UVM verification platform
CN103092156B (en) Equipment replaceable automatic test system and method
CN111813661B (en) Global service data drive automatic test method, device, equipment and medium
CN101246448A (en) Automatized script implementing method
CN100375057C (en) Automatic test auxiliary system and corresponding software automatic test method
CN109876445A (en) A kind of high decoupling bootstrap technique and system of Behavior-based control tree
CN113051040A (en) Remote distributed joint simulation method in different places
CN110162365A (en) A kind of method and system being automatically brought into operation SAP business software
CN107733735A (en) Script recording system and method
CN101833606A (en) A kind of design and verification method for integrated circuit
CN113282795A (en) Data structure chart generating and updating method and device, electronic equipment and storage medium
CN104657262A (en) High-real-time automatic testing system and testing method
CN110569154B (en) Chip interface function testing method, system, terminal and storage medium
CN106295809A (en) Aircraft embedded real-time diagnosis reasoning algorithm pilot system
CN102135939B (en) Test case operation dispatching device and method
CN114020273A (en) Complex system software integration method
CN108959094A (en) A kind of definition and methods for using them of the test program based on data structure
CN105868104B (en) A kind of cross-platform graphic user interface automatic test approach
CN112633850A (en) Method for realizing service flow automation by managing, calling and monitoring RPA robot
CN105045709B (en) A kind of capability-based test equipment exchanges method
CN115346669A (en) Medical artificial intelligence reasoning method and system based on low-code programming
CN107018160B (en) Manufacturing resource and clouding method based on layering

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 100081 Beijing City, Haidian District Zhongguancun South Street building 402 Shenzhou

Patentee after: Leinas Technology (Beijing) Limited by Share Ltd

Address before: 100081 Beijing City, Haidian District Zhongguancun South Street building 402 Shenzhou

Patentee before: China Spacesat Co., Ltd.