CN103530227B - A kind of open Script Programming system - Google Patents

A kind of open Script Programming system Download PDF

Info

Publication number
CN103530227B
CN103530227B CN201310438083.8A CN201310438083A CN103530227B CN 103530227 B CN103530227 B CN 103530227B CN 201310438083 A CN201310438083 A CN 201310438083A CN 103530227 B CN103530227 B CN 103530227B
Authority
CN
China
Prior art keywords
script
layer module
editor
metainstruction
user
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
CN201310438083.8A
Other languages
Chinese (zh)
Other versions
CN103530227A (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.)
Fujian Nebula Electronics Co Ltd
Original Assignee
Fujian Nebula Electronics 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 Fujian Nebula Electronics Co Ltd filed Critical Fujian Nebula Electronics Co Ltd
Priority to CN201310438083.8A priority Critical patent/CN103530227B/en
Publication of CN103530227A publication Critical patent/CN103530227A/en
Application granted granted Critical
Publication of CN103530227B publication Critical patent/CN103530227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a kind of open Script Programming system, comprise machine level module, metainstruction layer module, script layer module and client layer module; Described machine level module: comprise the basic function possessed in equipment, described metainstruction layer module: each basic function of equipment is converted into metainstruction by protocol editor, this metainstruction is the concrete communication instruction that the basic function of equipment is converted into 16 systems; Script layer module: the script by script-editor, the metainstruction in metainstruction layer module being combined into each basis or customization, and be equipped with the input/output argument of corresponding script, as the entrance of user test; Described client layer module: according to the demand of user, the performance interface formed, user or user oriented field application engineer are by the script of this client layer module accesses authority separately.The present invention can the various instrument and equipment test of the adaptation of maneuverability, and rapid reaction client testing requirement, builds the open device test system towards everyone.

Description

A kind of open Script Programming system
Technical field
The present invention relates to electronics and self-reacting device equipment technical field, particularly relate to a kind of open Script Programming system.
Background technology
Electronics and self-reacting device equipment and method of testing thereof are maked rapid progress, and corresponding software control, testing process also change very fast.The testing software of general cooperation hardware is all custom-made, only for particular device or a certain testing process, when the upgrading of technological process change, equipment or the amendment of testing process, capital causes the change of software, the maintenance of software is large, not only cause be short of hands, consuming time many, and can production be affected.
Electronic test equipment system research and development and maintenance, often need the personnel of each specialty, and original a few peoples have each duty concurrently, should safeguard by hardware and software development, need again scene to realize various customer demand.Very little, it is high to enterprise's Requirements, and workload is large in the division of labor.
Summary of the invention
The technical problem to be solved in the present invention, is to provide a kind of open Script Programming system, when the technological process of electronic test equipment system changes, without the need to revising software, as long as amendment script just can tackle different testing requirements; Thus reduce cost of development.
The present invention is achieved in that a kind of open Script Programming system, and described system comprises machine level module, metainstruction layer module, script layer module and client layer module; Described machine level module: comprise the basic function possessed in equipment, described basic function comprises: numeral input, numeral output, analog input or modulating output; Described metainstruction layer module: each basic function of equipment is converted into metainstruction by protocol editor, this metainstruction is the concrete communication instruction that the basic function of equipment is converted into 16 systems, described protocol editor is the interface of single-chip microcomputer and upper computer software, which defines the meaning in metainstruction represented by each Byte, uses variable and constant; Described script layer module: the script by script-editor, the metainstruction in metainstruction layer module being combined into each basis or customization, and be equipped with the input/output argument of corresponding script, as the entrance of user test; Described client layer module: according to the demand of user, the performance interface formed, user or user oriented field application engineer are by the script of this client layer module accesses authority separately.
Tool of the present invention has the following advantages: system of the present invention comprises machine level module, metainstruction layer module, script layer module and client layer module; By the interworking of each module, can the various instrument and equipment test of the adaptation of maneuverability, rapid reaction client testing requirement, builds the open device test system towards everyone.The advantages such as the flexible easily extensible of this system, user's request respond soon, easy care.
Accompanying drawing explanation
Fig. 1 is the frame principle of present system.
Fig. 2 is the schematic diagram that present system is applied to electrokinetic cell fender test macro.
Embodiment
Refer to shown in Fig. 1, from bottom to top, different testing apparatuss, according to identical flow process, can form different test macros in the present invention.Hardware modularity degree is higher, and corresponding basic script reusability is higher, accomplish one write multiplex.
The present invention is a kind of open Script Programming system, and described system comprises machine level module, metainstruction layer module, script layer module and client layer module; Described machine level module: comprise the basic function possessed in equipment, namely the hardware resource possessed in equipment, described basic function comprises: numeral input (DI: such as read each LED status), numeral export (DO: such as each switch motion), analog input (AI: such as read equipment voltage) or modulating output (AO: such as on-load voltage electric current), other (Other: such as latency delays); Described metainstruction layer module: each basic function of equipment is converted into metainstruction by protocol editor, this metainstruction is the concrete communication instruction (as: instruction of serial communication, ethernet communication) that the basic function of equipment is converted into 16 systems, described protocol editor is the interface of single-chip microcomputer and upper computer software, which define the meaning in metainstruction represented by each Byte, use variable and constant (variable uses as script layer module), different equipment can specify identical or different agreements; Described script layer module: the script by script-editor, the metainstruction in metainstruction layer module being combined into each basis or customization, and be equipped with the input/output argument of corresponding script, as the entrance of user test; Described client layer module: according to the demand of user, the performance interface formed, user or user oriented field application engineer are by the script of this client layer module accesses authority separately.
In the present invention, described script-editor is responsible for each concrete communication instruction to be converted to the discernible code of software, defines and the logic realizing user test project; Script-editor uses dynamic base to realize, and is the core cell that DLL and internal system realize; The object of script-editor can call for different application systems.
Described script-editor includes script-editor code pattern and script-editor user model two kinds of modules; Namely code pattern uses Pascal grammer compile script code, and user model is supplied to FAE(field application engineer) or certain customers revise test specification by the mode of form;
Described script-editor code pattern: the dynamic operation of code, the demand of client can respond fast, without the need to changing software, as long as amendment script just can tackle different testing requirements; The control that this code pattern uses has: Expressionparser control, SynEdit control, and has carried out revising encapsulation to its control, and communication uses MSCOMM serial communication; Make the similar Integrated Development Environment IDE of script-editor, achieve order, branch, loop structure; Mutually call between measure for fulfill script, INC file embeds, code annotation, the debugging breakpoints of script, location of mistake;
Described script-editor user model: realize test logic by the mode of table prgraming, effect and each line code of described code pattern are one to one; User model only represents a part for code, carries out security control; Table prgraming mode does not need special programming language, directly fill in amendment specifications parameter in the table, and illustrate all bottoms in drop-down list or non-bottom operation set is selective, input to be furnished with and point out forms accordingly, after direct operation, each line code executing state, rreturn value synchronism output.
Below in conjunction with a specific embodiment, the invention will be further described:
Shown in Figure 2, present system is applied to electrokinetic cell fender test macro.By machine level module, each basic function in integrated electrokinetic cell fender testing apparatus; Then by metainstruction layer module, each basic function is converted into corresponding metainstruction; And carry out writing general fender test event script according to each metainstruction by script layer module, and be equipped with user's input interface; User has judged whether special test request by client layer module, be enter script-editor code or table schema amendment or new script, no, user or the newly-built test machine of user oriented field application engineer, select the test script needed, and fill in specifications parameter; Last generating run personnel carry out main interface detection, and single-pass or hyperchannel (multithreading) perform script listing, and data are preserved.
Here it is worth mentioning that: user is as follows in the mode of operation of client layer module:
After opening the client software of electrokinetic cell fender test macro, display user login frame prompting user inputs account name and logs in, and this electrokinetic cell fender test macro has 3 kinds of authorities: production operators, production management person, equipment debugging person; Production operators can only perform existing project script, and production management person's energy entry item specification (script argument), equipment debugging person can revise script.Example is logged on as below with production management authority.
User's input needs the specifications parameter of test event.These projects are exactly the script of top layer one by one, generally comprise the sub-script of some single or multiple lifts under script.
The main interface of lane testing, the i.e. testing apparatus of a passage, a corresponding serial ports, a corresponding thread, a script listing; Thus complete calling of script.
The foregoing is only preferred embodiment of the present invention, all equalizations done according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.

Claims (3)

1. an open Script Programming system, is characterized in that: described system comprises machine level module, metainstruction layer module, script layer module and client layer module; Described machine level module: comprise the basic function possessed in equipment, described basic function comprises: numeral input, numeral output, analog input or modulating output; Described metainstruction layer module: each basic function of equipment is converted into metainstruction by protocol editor, this metainstruction is the concrete communication instruction that the basic function of equipment is converted into 16 systems, described protocol editor is the interface of single-chip microcomputer and upper computer software, which defines the meaning in metainstruction represented by each byte, uses variable and constant; Described script layer module: the script by script-editor, the metainstruction in metainstruction layer module being combined into each basis or customization, and be equipped with the input/output argument of corresponding script, as the entrance of user test; Described client layer module: according to the demand of user, the performance interface formed, user or user oriented field application engineer are by the script of this client layer module accesses authority separately.
2. the open Script Programming system of one according to claim 1, is characterized in that: described script-editor is responsible for each concrete communication instruction to be converted to the discernible code of software, defines and the logic realizing user test project; Script-editor uses dynamic base to realize, and is the core cell that DLL and internal system realize; The object of script-editor can call for different application systems.
3. the open Script Programming system of one according to claim 1, is characterized in that: described script-editor includes script-editor code pattern and script-editor user model two kinds of modules;
Described script-editor code pattern: the dynamic operation of code, the demand of client can respond fast, without the need to changing software, as long as amendment script just can tackle different testing requirements; The control that this code pattern uses has: expression interpreter Expressionparser control, multiline text editor SynEdit control, and has carried out revising encapsulation to its control, and communication uses MSCOMM serial communication; Make the similar Integrated Development Environment IDE of script-editor, achieve order, branch, loop structure; Mutually call between measure for fulfill script, INC file embeds, code annotation, the debugging breakpoints of script, location of mistake;
Described script-editor user model: realize test logic by the mode of table prgraming, effect and each line code of described code pattern are one to one; User model only represents a part for code, carries out security control; Table prgraming mode does not need special programming language, directly fill in amendment specifications parameter in the table, and illustrate all bottoms in drop-down list or non-bottom operation set is selective, input to be furnished with and point out forms accordingly, after direct operation, each line code executing state, rreturn value synchronism output.
CN201310438083.8A 2013-09-24 2013-09-24 A kind of open Script Programming system Active CN103530227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310438083.8A CN103530227B (en) 2013-09-24 2013-09-24 A kind of open Script Programming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310438083.8A CN103530227B (en) 2013-09-24 2013-09-24 A kind of open Script Programming system

Publications (2)

Publication Number Publication Date
CN103530227A CN103530227A (en) 2014-01-22
CN103530227B true CN103530227B (en) 2016-02-17

Family

ID=49932257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310438083.8A Active CN103530227B (en) 2013-09-24 2013-09-24 A kind of open Script Programming system

Country Status (1)

Country Link
CN (1) CN103530227B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797794A (en) * 2017-10-17 2018-03-13 北京华航唯实机器人科技股份有限公司 Edit methods, device, storage medium, processor and the terminal of program code
CN115022150B (en) * 2022-04-21 2024-04-12 中国农业银行股份有限公司 Network emergency method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859581A (en) * 2005-12-02 2006-11-08 华为技术有限公司 Detecting system for IP set-top tox and realizing method
CN101916221A (en) * 2010-07-23 2010-12-15 中兴通讯股份有限公司 Method and system for performing unit testing on equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8074059B2 (en) * 2005-09-02 2011-12-06 Binl ATE, LLC System and method for performing deterministic processing
US20090077556A1 (en) * 2007-09-19 2009-03-19 Martin Kay Nohr Image media modifier

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859581A (en) * 2005-12-02 2006-11-08 华为技术有限公司 Detecting system for IP set-top tox and realizing method
CN101916221A (en) * 2010-07-23 2010-12-15 中兴通讯股份有限公司 Method and system for performing unit testing on equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
开放式数控***可重构技术研究;杜少华;《CNKI博士学位论文全文库》;20121015;全文 *

Also Published As

Publication number Publication date
CN103530227A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
CN104216785B (en) General policies task system and its implementation
US8984349B2 (en) Method and system for automating the process of testing a device
CN105447643B (en) Scientific workflow system and method for cloud computing platform
CN103984612B (en) Unattended pressure testing method based on HPL tool
US10551807B2 (en) Method for connecting an input/output interface of a tester equipped for control unit development
CN104778124A (en) Automatic testing method for software application
US11307550B2 (en) Sequence control of program modules
CN105930270B (en) A method of realizing the online configuration of algorithm, operation and debugging
CN109614093B (en) Visual intelligent contract system and intelligent contract processing method
US9785415B2 (en) Remote interface to logical instruments
CN104133588B (en) A kind of protective relaying device graphical development method based on script
CN103092732A (en) System used for dynamically monitoring device by scripts
CN104503752A (en) Method and device for controlling webpage to call system functions in intelligent equipment
CN104462943A (en) Non-intrusive performance monitoring device and method for service system
CN105354073B (en) A kind of stand-alone application networking method based on android system and system
CN103530227B (en) A kind of open Script Programming system
CN104009882A (en) Equivalent satellite power supply system testing method and system based on distributed architecture
CN100407663C (en) Universal testing system and method for telecommunication intelligent service
Ritala et al. UML automation profile: enhancing the efficiency of software development in the automation industry
CN113919158A (en) Simulation method and device for flight control panel and storage medium
Khaliluzzaman et al. Pre and post controller based MVC architecture for web application
Baran et al. Information System for Quality Control of Polyethylene Production in a Circular Economy.
CN102306109A (en) Method for realizing logic programming in communication management machine
CN106911499A (en) The method and device that a kind of rapid configuration BMC systems are set
CN106796430A (en) Monitoring control device test device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 350000 Productivity Promotion Center, No. 8, star hair Road, Mawei District, Fujian, Fuzhou 3, 304

Applicant after: FUJIAN NEBULA ELECTRONICS CO., LTD.

Address before: 350000 Productivity Promotion Center, 8 star road, Mawei District, Fujian, Fuzhou 3, China, 304

Applicant before: Fuzhou Development Zone Xingyun Electronic Automation Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: FUZHOU DEVELOPMENT ZONE XINGYUN ELECTRONIC AUTOMATION CO., LTD. TO: FUJIAN NEBULA ELECTRONIC CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP02 Change in the address of a patent holder

Address after: Mawei District 350000 Fujian city of Fuzhou province Kuaian Majiang Shishi Avenue Road No. 6 1-4 floor

Patentee after: FUJIAN NEBULA ELECTRONICS CO., LTD.

Address before: 350000 Productivity Promotion Center, No. 8, star hair Road, Mawei District, Fujian, Fuzhou 3, 304

Patentee before: FUJIAN NEBULA ELECTRONICS CO., LTD.

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Open type script programming system

Effective date of registration: 20200703

Granted publication date: 20160217

Pledgee: China Exim Bank Fujian branch

Pledgor: FUJIAN NEBULA ELECTRONICS Co.,Ltd.

Registration number: Y2020980003784