CN103530227A - Open type script programming system - Google Patents

Open type script programming system Download PDF

Info

Publication number
CN103530227A
CN103530227A CN201310438083.8A CN201310438083A CN103530227A CN 103530227 A CN103530227 A CN 103530227A CN 201310438083 A CN201310438083 A CN 201310438083A CN 103530227 A CN103530227 A CN 103530227A
Authority
CN
China
Prior art keywords
script
editor
user
level module
equipment
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
CN201310438083.8A
Other languages
Chinese (zh)
Other versions
CN103530227B (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.)
FUZHOU DEVELOPMENT ZONE XINGYUN ELECTRONIC AUTOMATION Co Ltd
Original Assignee
FUZHOU DEVELOPMENT ZONE XINGYUN ELECTRONIC AUTOMATION 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 FUZHOU DEVELOPMENT ZONE XINGYUN ELECTRONIC AUTOMATION Co Ltd filed Critical FUZHOU DEVELOPMENT ZONE XINGYUN ELECTRONIC AUTOMATION 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

Images

Landscapes

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

Abstract

The invention provides an open type script programming system which comprises a machine level module, a meta-command level module, a script level module and a user level module. The machine level module comprises basic functions included in equipment, the meta-command level module converts the basic functions of the equipment into meta-commands through a protocol editor, and the meta-commands are hexadecimal specific communication commands converted from the basic functions of the equipment; the script level module combines the meta-commands in the meta-command module into basic scripts or customized scripts through a script editor, and input and output parameters corresponding to the scripts are configured to be used as inlets of user tests; the user level module forms presentation interfaces according to the needs of the users, and the users or user oriented field application engineers can access corresponding authorized scripts through the user level module. The open type script programming system can be movably and flexibly applied to tests of various instruments and equipment, the demands of testing of clients are responded quickly, and an open type equipment testing system for all personnel is constructed.

Description

A kind of open Script Programming system
Technical field
The present invention relates to electronics and self-reacting device equipment technical field, relate in particular 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 modification 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 affect production.
Electronic test equipment system research and development and maintenance, often need each professional personnel, and original a few peoples have each duty concurrently, should safeguard by hardware and software development, needs again scene to realize various customer demands.Divide the work that ,Qi Dui enterprise Requirements is high very little, and workload is large.
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 revising software, as long as revise script, just can tackle different testing requirements; Thereby reduced 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 possessing in equipment, described basic function comprises: numeral input, digital output, analog input or simulation output; Described metainstruction layer module: each basic function of equipment is converted into metainstruction by agreement editing machine, this metainstruction is the concrete communication instruction that the basic function of equipment is converted into 16 systems, described agreement editing machine is the interface of single-chip microcomputer and upper computer software, and it has defined represented meaning, use variable and the constant of each Byte in metainstruction; Described script layer module: by script-editor, the metainstruction in metainstruction layer module is combined into the script of each basis or customization, and is equipped with the input/output argument of corresponding script, as the entrance of user test; Described client layer module: according to user's demand, formed performance interface, user or user oriented field application engineer can pass through this client layer module accesses script of 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, the various instrument and equipments tests of adaptation that can maneuverability, rapid reaction client testing requirement, builds the open device test system towards everyone.The advantages such as this system can be expanded flexibly, user's request response is fast, easy care.
Accompanying drawing explanation
Fig. 1 is the frame principle of system of the present invention.
Fig. 2 is that system applies of the present invention is in the schematic diagram of 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 just 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 possessing in equipment, it is the hardware resource possessing in equipment, described basic function comprises: numeral input (DI: such as reading each LED status), numeral output (DO: such as each switch motion), analog input (AI: such as reading equipment voltage) or simulation 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 agreement editing machine, 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 agreement editing machine is the interface of single-chip microcomputer and upper computer software, it has defined represented meaning, use variable and the constant (as the variable uses of script layer module) of each Byte in metainstruction, and different equipment can be specified identical or different agreements; Described script layer module: by script-editor, the metainstruction in metainstruction layer module is combined into the script of each basis or customization, and is equipped with the input/output argument of corresponding script, as the entrance of user test; Described client layer module: according to user's demand, formed performance interface, user or user oriented field application engineer can pass through this client layer module accesses script of 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 that realizes user test project; Script-editor is used dynamic base to realize, and is the core cell of DLL and internal system realization; The object of script-editor can call for different application systems.
Described script-editor includes script-editor code pattern and two kinds of modules of script-editor user model; Code pattern uses Pascal grammer compile script code, and user model offers FAE(field application engineer) or certain customers by the mode of form, revise test specification;
Described script-editor code pattern: the dynamic operation of code, client's demand can respond fast, without changing software, as long as revise script, just can tackle different testing requirements; The control that this code pattern uses has: Expression parser control, SynEdit control, and its control has been carried out revising encapsulation, MSCOMM serial communication is used in communication; Make the similar Integrated Development Environment IDE of script-editor, realized order, branch, loop structure; Realize between function script and mutually calling, 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 in form, fill in and revise specifications parameter, and in drop-down list, shown that all bottoms or non-bottom operation set are selective, input is furnished with corresponding prompting forms, directly, after operation, each line code executing state, rreturn value are synchronously exported.
Below in conjunction with a specific embodiment, the invention will be further described:
Shown in Figure 2, by system applies of the present invention in 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 according to each metainstruction, write general fender test event script by script layer module, and be equipped with user's input interface; User has judged whether special test request by client layer module, to enter script-editor code or table schema modification or new script, no, the newly-built test machine of user or user oriented field application engineer, select the test script needing, and fill in specifications parameter; Last generating run personnel carry out main interface detection, and single-pass or hyperchannel (multithreading) are carried out 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:
Open after the client software of electrokinetic cell fender test macro, show that user's login frame prompting user inputs account name and logins, this electrokinetic cell fender test macro has 3 kinds of authorities: production operators, production management person, equipment debugging person; Production operators can only be carried out existing project script, production management person's energy entry item specification (script argument), and equipment debugging person can revise script.With production management authority, log on as example below.
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, a passage is a testing apparatus, a corresponding serial ports, a corresponding thread, a script listing; Thereby complete calling of script.
The foregoing is only preferred embodiment of the present invention, all equalizations of doing 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 possessing in equipment, described basic function comprises: numeral input, digital output, analog input or simulation output; Described metainstruction layer module: each basic function of equipment is converted into metainstruction by agreement editing machine, this metainstruction is the concrete communication instruction that the basic function of equipment is converted into 16 systems, described agreement editing machine is the interface of single-chip microcomputer and upper computer software, and it has defined represented meaning, use variable and the constant of each Byte in metainstruction; Described script layer module: by script-editor, the metainstruction in metainstruction layer module is combined into the script of each basis or customization, and is equipped with the input/output argument of corresponding script, as the entrance of user test; Described client layer module: according to user's demand, formed performance interface, user or user oriented field application engineer can pass through this client layer module accesses script of authority separately.
2. a kind of open Script Programming system 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 that realizes user test project; Script-editor is used dynamic base to realize, and is the core cell of DLL and internal system realization; The object of script-editor can call for different application systems.
3. a kind of open Script Programming system according to claim 1, is characterized in that: described script-editor includes script-editor code pattern and two kinds of modules of script-editor user model;
Described script-editor code pattern: the dynamic operation of code, client's demand can respond fast, without changing software, as long as revise script, just can tackle different testing requirements; The control that this code pattern uses has: Expression parser control, SynEdit control, and its control has been carried out revising encapsulation, MSCOMM serial communication is used in communication; Make the similar Integrated Development Environment IDE of script-editor, realized order, branch, loop structure; Realize between function script and mutually calling, 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 in form, fill in and revise specifications parameter, and in drop-down list, shown that all bottoms or non-bottom operation set are selective, input is furnished with corresponding prompting forms, directly, after operation, each line code executing state, rreturn value are synchronously exported.
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 true CN103530227A (en) 2014-01-22
CN103530227B 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)

Cited By (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
CN115022150A (en) * 2022-04-21 2022-09-06 中国农业银行股份有限公司 Network emergency method and device

Citations (4)

* 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
US20070055846A1 (en) * 2005-09-02 2007-03-08 Paulo Mendes System and method for performing deterministic processing
US20090077556A1 (en) * 2007-09-19 2009-03-19 Martin Kay Nohr Image media modifier
CN101916221A (en) * 2010-07-23 2010-12-15 中兴通讯股份有限公司 Method and system for performing unit testing on equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055846A1 (en) * 2005-09-02 2007-03-08 Paulo Mendes System and method for performing deterministic processing
CN1859581A (en) * 2005-12-02 2006-11-08 华为技术有限公司 Detecting system for IP set-top tox and realizing method
US20090077556A1 (en) * 2007-09-19 2009-03-19 Martin Kay Nohr Image media modifier
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博士学位论文全文库》 *

Cited By (3)

* 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
CN115022150A (en) * 2022-04-21 2022-09-06 中国农业银行股份有限公司 Network emergency method and device
CN115022150B (en) * 2022-04-21 2024-04-12 中国农业银行股份有限公司 Network emergency method and device

Also Published As

Publication number Publication date
CN103530227B (en) 2016-02-17

Similar Documents

Publication Publication Date Title
US8984349B2 (en) Method and system for automating the process of testing a device
WO2021238006A1 (en) Artificial intelligence chip verification
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
CN111767031B (en) Nuclear power industry internet experiment bed based on emulation
US20160274870A1 (en) Design framework for an iot system
JP2018129020A (en) Method and apparatus for controlling and managing industrial processes using industrial internet operating system
CN103425497B (en) The method and apparatus that a kind of network engineering script is changed across producer
US20160092175A1 (en) Remote Interface to Logical Instruments
CN103092732A (en) System used for dynamically monitoring device by scripts
CN105591779A (en) Method and device for inspecting network element
Lu et al. A component-based UML profile to model embedded real-time systems designed by the MDA approach
CN104009882A (en) Equivalent satellite power supply system testing method and system based on distributed architecture
Ritala et al. UML automation profile: enhancing the efficiency of software development in the automation industry
CN103530227A (en) Open type script programming system
CN113919158A (en) Simulation method and device for flight control panel and storage medium
CN108989406A (en) Software shelf realization method and system based on micro services
CN105468431B (en) Multi-model real-time emulation system
CN105204892B (en) War packet configuration modification system and methods
CN106911499A (en) The method and device that a kind of rapid configuration BMC systems are set
CN102306109A (en) Method for realizing logic programming in communication management machine
CN106354966B (en) The method of the conversion of chip id E project file and rapid configuration artificial debugging environment
Beringer et al. Verification of AUTOSAR software architectures with timed automata
CN109117431A (en) System and method for the source data applied from source to be incorporated into the target data of target application

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