CN103092156B - Equipment replaceable automatic test system and method - Google Patents

Equipment replaceable automatic test system and method Download PDF

Info

Publication number
CN103092156B
CN103092156B CN201210583683.9A CN201210583683A CN103092156B CN 103092156 B CN103092156 B CN 103092156B CN 201210583683 A CN201210583683 A CN 201210583683A CN 103092156 B CN103092156 B CN 103092156B
Authority
CN
China
Prior art keywords
module
equipment
logic
test
design
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.)
Active
Application number
CN201210583683.9A
Other languages
Chinese (zh)
Other versions
CN103092156A (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

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]

Abstract

Equipment replaceable automatic test system and method, comprise device manager module, logical design module, dispatching control module, operation logic module, device drives library module, communication module; The present invention passes through equipment manager, design level device concept is separated with entity device during operation, the function of equipment is focused on when designing, to start with invocation facility instruction from function, without the need to specifying a certain model, a certain entity device, avoiding causing logical design to be flexibly fixed in a certain model device, making tester after receiving test assignment, only need find the design with this function, take full advantage of device resource.

Description

Equipment replaceable automatic test system and method
Technical field
The present invention relates to a kind of automatization test system and the method that are 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, and should meet the test of various complexity, program control various equipment and instrument, also wants compromise between security, stability.A lot of equipment and instrument to be used in test process, the oscillograph of such as Agilent, the oscillograph etc. of Tyke, although be oscillograph equally, there is same function, but a kind of model must be specified when logical design, otherwise logic cannot be described, because logic is edited in units of instruction, physical device instruction tens at least, thousands of at most, the drafting of logic is carried out completely according to instrument instructions, really there is the difference in instruction in two kinds of oscillographs, in order to complete a kind of function, Agilent oscillograph uses five instruction Tyke oscillographs to use six instructions, these differences cause must will select a kind of INSTRUMENT MODEL when designing, it is the oscillograph of Agilent, it is the oscillograph of Tyke.In fact these two kinds of oscillographs can complete same function, and just instruction there are differences.When reality test due to the finiteness of instrument resource, many times instrument can not put in place, but instrument can not be replaced again, and instrument puts in place easily to cause test plan one to rechange or wait for, and the instrument with identical function does not make full use of, cause the waste of human and material resources.If accomplished that equipment is replaceable, only needing when designing to consider function, having found the instrument with identical function to replace according to instrument marshalling plan during operation and testing, greatly saved time cost, taken 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, provide the interchangeable automatization test system of a kind of equipment and method, reduce the loss of human and material resources, improve the utilization factor of equipment and instrument resource, improve test logic design time versatility.
Technical solution of the present invention is: a kind of equipment replaceable automatic test system, comprising: device manager module, logical design module, dispatching control module, operation logic module, device drives library module, communication module, wherein:
Device manager module, the content of apparatus for establishing catalogue, ground floor is equipment root directory, and described content is virtual unit title; The second layer is model device, and described model device refers to the model of certain equipment; Third layer is real equipment; These three layers is set membership from top to bottom, adopts tree structure to represent this architecture; This module first will set up this three-layer equipment structure before operation logic module, and the device attribute of foundation and method will be called in operation logic module;
Test logic design module, carried out newly-built, the editor of logic by patterned drawing tool, it is a kind of script that test logic design module exports, and have recorded logical relation, the instruction method called, parameter information.It is × ML file layout that this module exports, and this file is run logic module load operating;
Dispatching control module contains the mapping relations of three equipment levels, safeguards the control information when foundation of the mapping relations of three equipment levels, editor, operation.The output of dispatching control module is configuration file, under being placed on same root directory with the driving file in device drives library module; This module exports XML file form, and information when file content is equipment operation, for operation logic module run time call;
Device drives library module, equipment is connected to test computer by com port, GPIB card, TCP physics mode, and test computer is established a communications link by Driver Library module and various equipment again, can send instructions down, can receiving equipment data.Device drives library module receives the instruction from operation logic module, and instruction translation is become physical device instruction and is issued on entity device, and device drives library module also obtains facility information from entity device, and information feed back to operation logic module;
Operation logic module, load facility information, logical message, configuration information during test design, and logically order and unit step performs step by step;
Communication module, communication is requisite module in whole automatization test system, and the data interaction between each module is undertaken by bottom communication.
A kind of equipment replaceable automated testing method, 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 virtual unit title, and the second layer is model device, and third layer is entity device.These catalogues have built rear logical design device and the attribute of model device and method just can be used to carry out logical design.When designing, designer does not need to consider entity device, does not need equipment to run yet;
(2) set up the logic needed for test, use logical design device to carry out the design of logic, preserve into XML file after having designed and call for running module.Real-time logic debugging can be carried out in test logic designer, the running status of equipment can be set during debugging, can dry run, can actual motion, dry run only starts Driver Library and does not start real equipment, the instruction of calling and method return some random data, only supply the accuracy of debug user logic;
(3) before operation logic module performs, according to some operation informations of field condition determination entity device, device address to be comprised, operates in any station terminal, and under these information are issued to device drives catalogue by dispatching control module;
(4) loading logic file brings into operation logic, is sent instructions in operational process by device drive layer under equipment, obtains necessary information data by device drive layer from equipment, provides report printing export according to logic.
The present invention's advantage is compared with prior art: the present invention passes through equipment manager, design level device concept is separated with entity device during operation, the function of equipment is focused on when designing, to start with invocation facility instruction from function, without the need to specifying a certain model, a certain entity device, avoiding causing logical design to be flexibly fixed in a certain model device, making tester after receiving test assignment, only need find the design with this function, take full advantage of device resource.
Accompanying drawing explanation
Fig. 1 be present device manager set up schematic diagram;
Fig. 2 is module of the present invention composition structural drawing;
Fig. 3 is workflow diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention will be further described in detail:
As shown in Figure 1, must set up before equipment manager test, so just can carry out the design of test logic.Equipment manager is in fact a kind of tree structure, and 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 and real instruction also have one deck mapping relations, all convert the executable instruction of real equipment to by mapping layer when actual motion.Table design is as follows in a database:
Field name Data type Default value Remarks
ParentID Int 0 Father ID, if being 0 this rank of expression is root rank
EquipID Int The unique ID of equipment
FunID int The unique ID of device, method, attribute
FunLocalID int The unique ID of command mappings layer
As shown in Figure 2, automatization test system is made up of device manager module, logical design module, logic execution module, communication module, database form, front-end interface and background service is divided into from software, front-end interface is mainly to the configuration of equipment, set up virtual unit, model device, entity device, and add attribute, method, the event of each equipment, and add annotation, facilitate designer to use.The encapsulation that entity device drives adopts identical program architecture, comprise and the base class of distinct interface is encapsulated, comprise the synchronous asynchronous mechanism of serial ports, the synchronous asynchronous mechanism of TCP/UDP, the encapsulation of GPIB, the encapsulation of PCI board, the encapsulation of USB port, also to virtual unit, comprise operation file, operating database, algorithms library etc. and encapsulate.Provide unified interface to calling of outside, specification protocol content employing XML writes mode, facilitates expansion and the upgrading of protocol contents.
First the driving encapsulation of entity device is wanted to the content of defining virtual equipment, then define the content of model device, have the driving of these precondition entity devices to write and just shoot the arrow at the target, the mapping relations between instruction could be done targetedly.Mapping also is preserve mapping relations by configuration file, database, and mapping block during by running realizes the execution of final instruction.
Logical design module is a patterned design tool software, its pel comprises setting-out, selects node, device directive node, end node, subprocess node, interaction node, there is the functions such as variable-definition, device definition, subprocess definition, this module draws various logic figure by the mode pulled, use connecting line couples together, perform according to the order of line when flow performing, run into the place of having ready conditions and judging, carry out Logic judgment according to condition, then select to perform according to correct logic.Preserve into XML file after logical design module completes and be kept at this locality, also can upload onto the server upper for other staff.
Logic execution module front end is view display, rear end is flow engine service, the operation of flow process is all that background engine service is in work in fact, engine is shifted front end onto duty and is shown, view being seen, logic step is in execution step by step, can check the information such as the variable in flowchart process, daily record.Must carry out the selection of equipment before flow performing, because what select when flow scheme design is virtual unit, model device mostly, not entity device, must specify an equipment to start to perform when reality test.Flow engine can send to device drive layer instruction, device drive layer is forwarded to instruction execution level by 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 terminates, and flow process can return results according to instruction and decide to continue to perform or stop.
As shown in Figure 3, the data stream of native system as shown in the figure, describes data flow and the step of system:
First set up test equipment needed thereby catalogue, facility inventory is tree structure, has three layers, and ground floor is virtual unit title, and the second layer is model device, and third layer is entity device.These catalogues have built rear logical design device and the attribute of model device and method just can be used to carry out logical design.When designing, designer does not need to consider entity device, does not need equipment to run yet;
Secondly set up the logic needed for test, use logical design device to carry out the design of logic, preserve into XML file after having designed and call for running module.Real-time logic debugging can be carried out in test logic designer, the running status of equipment can be set during debugging, can dry run, can actual motion, dry run only starts Driver Library and does not start real equipment, the instruction of calling and method return some random data, only supply the accuracy of debug user logic;
Before operation logic module performs, according to some operation informations of field condition determination entity device, device address to be comprised, operates in any station terminal, and under these information are issued to device drives catalogue by dispatching control module;
Loading logic file brings into operation logic, is sent instructions in operational process by device drive layer under equipment, obtains necessary information data by device drive layer from equipment, provides report printing export according to logic.
The unspecified content of the present invention is known to the skilled person technology.

Claims (2)

1. equipment replaceable automatic test system, is characterized in that comprising: device manager module, logical design module, dispatching control module, operation logic module, device drives library module, communication module, wherein:
Device manager module, the content of apparatus for establishing catalogue, ground floor is equipment root directory, and content is virtual unit title; The second layer is model device, and described model device refers to the model of certain equipment; Third layer is real equipment; These three layers is set membership from top to bottom, adopts tree structure to represent this architecture; This device manager module first will set up this three-layer equipment structure before operation logic module, and the device attribute of foundation and method will be called in operation logic module;
Test logic design module, carried out newly-built, the editor of logic by patterned drawing tool, it is a kind of script that test logic design module exports, and have recorded logical relation, the instruction method called, parameter information; This module exports as XML file form, and this file is run logic module load operating;
Dispatching control module contains the mapping relations of three equipment levels, safeguards the control information when foundation of the mapping relations of three equipment levels, editor, operation; The output of dispatching control module is configuration file, under being placed on same root directory with the driving file in device drives library module; This dispatching control module exports XML file form, and information when file content is equipment operation, for operation logic module run time call;
Device drives library module, equipment is connected to test computer by com port, GPIB card, TCP physics mode, and test computer is established a communications link by Driver Library module and various equipment again, can send instructions down, can receiving equipment data; Device drives library module receives the instruction from operation logic module, and instruction translation is become physical device instruction and is issued on entity device, and device drives library module also obtains facility information from entity device, and information feed back to operation logic module;
Operation logic module, load facility information, logical message, configuration information during test design, and logically order and unit step performs step by step;
Communication module, communication is requisite module in whole automatization test system, and the data interaction between each module is undertaken by bottom communication;
The data flow of system and step:
First set up test equipment needed thereby catalogue, facility inventory is tree structure, has three layers, and ground floor is virtual unit title, and the second layer is model device, and third layer is entity device; These catalogues have built rear logical design device and the attribute of model device and method just can be used to carry out logical design; When designing, designer does not need to consider entity device, does not need equipment to run yet;
Secondly set up the logic needed for test, use logical design device to carry out the design of logic, preserve into XML file after having designed and call for running module; Real-time logic debugging can be carried out in test logic designer, the running status of equipment can be set during debugging, can dry run, can actual motion, dry run only starts Driver Library and does not start real equipment, the instruction of calling and method return some random data, only supply the accuracy of debug user logic;
Before operation logic module performs, according to some operation informations of field condition determination entity device, device address to be comprised, operates in any station terminal, and under these information are issued to device drives catalogue by dispatching control module;
Loading logic file brings into operation logic, is sent instructions in operational process by device drive layer under equipment, obtains necessary information data by device drive layer from equipment, provides report printing export according to logic.
2. equipment replaceable automated testing method, is characterized in that comprising performing step as follows:
(1) set up test equipment needed thereby catalogue, facility inventory is tree structure, has three layers, and ground floor is virtual unit title, and the second layer is model device, and third layer is entity device; These catalogues have built rear logical design device and have used the attribute of model device and method to carry out logical design; When designing, designer does not need to consider entity device, does not need equipment to run yet;
(2) set up the logic needed for test, use logical design device to carry out the design of logic, preserve into XML file after having designed and call for running module; Real-time logic debugging is carried out in test logic designer, arrange the running status of equipment 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 return some random data, only supply the accuracy of debug user logic;
(3) before operation logic module performs, according to some operation informations of field condition determination entity device, device address to be comprised, operates in any station terminal, and under these information are issued to device drives catalogue by dispatching control module;
(4) loading logic file brings into operation logic, is sent instructions in operational process by device drive layer under equipment, obtains necessary information data by device drive layer from equipment, provides report printing export 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 CN103092156A (en) 2013-05-08
CN103092156B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103676911B (en) * 2013-12-25 2017-05-17 上海寰创通信科技股份有限公司 Equipment control system and control method
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
CN111309616B (en) * 2020-02-20 2023-06-27 珠海市运泰利自动化设备有限公司 Implementation method of test platform
CN111782509B (en) * 2020-06-15 2022-11-29 西北工业大学 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7197417B2 (en) * 2003-02-14 2007-03-27 Advantest America R&D Center, Inc. Method and structure to develop a test program for semiconductor integrated circuits

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN103092156A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN103092156B (en) Equipment replaceable automatic test system and method
CN108519952B (en) A kind of distributed WEB automatization test system and method
CN106569801A (en) Complex parameter-based configuration display control system
CN102750301B (en) Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description
CN110795219A (en) Resource scheduling method and system suitable for multiple computing frameworks
CN103336805B (en) A kind of report customization automatic generation method based on graphical mapping relations and device
CN106021099A (en) System and method for achieving UI automatic test of intelligent terminal
CN105608254A (en) Automated design method and platform oriented to intelligent hardware system development
CN107733735B (en) Script recording system and method implanted in pressure measurement device
CN107015901B (en) Log analysis method and device
CN101246448A (en) Automatized script implementing method
CN104699613B (en) A kind of spacecraft-testing demand automatic creation system and its method
CN102542116B (en) Method and device of DFM (Design for Manufacturability) analysis automation
CN111813661A (en) Global service data drive automatic test method, device, equipment and medium
CN107729233A (en) The emulation mode and device of a kind of controller software
CN109633421A (en) A kind of test method of SOC chip, device, equipment and storage medium
CN101833606A (en) A kind of design and verification method for integrated circuit
CN110162365A (en) A kind of method and system being automatically brought into operation SAP business software
CN104657262A (en) High-real-time automatic testing system and testing method
CN103440200B (en) A kind of height based on dual operating systems real-time big data quantity test back method
CN110569154B (en) Chip interface function testing method, system, terminal and storage medium
CN106294121A (en) Aircraft embedded real-time diagnosis reasoning algorithm test method
CN102135939B (en) Test case operation dispatching device and method
CN106295809A (en) Aircraft embedded real-time diagnosis reasoning algorithm pilot system
CN107741909A (en) A kind of automated testing method and system for distributed block storage

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.