CN109669721A - One kind can secondary development software platform - Google Patents
One kind can secondary development software platform Download PDFInfo
- Publication number
- CN109669721A CN109669721A CN201811574527.XA CN201811574527A CN109669721A CN 109669721 A CN109669721 A CN 109669721A CN 201811574527 A CN201811574527 A CN 201811574527A CN 109669721 A CN109669721 A CN 109669721A
- Authority
- CN
- China
- Prior art keywords
- instruction
- function
- program
- interface
- development
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/72—Code refactoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides one kind can secondary development software platform method, including step S11 creates data structure;Step S12 designs program development interface;Step S13 establishes program development instruction;Step S14, design external dynamic loads dynamic link library facility, in the case where not needing compiler, the function in dynamic link library is developed as described program and is instructed;And step S15, design main program interface and interface management function.This method not only has succinct, friendly user interface, and has powerful secondary development function, can satisfy different application scene;Reduce the project development period, reduces software management and maintenance cost.
Description
Technical field
The present invention relates to optical communications industry automatic fields, and in particular to one kind can secondary development software platform.
Background technique
With the fast development of optical communications industry, automating coupling technique becomes industry production mainstream, since optic communication produces
Product are many kinds of, and be born many coupling boards for being directed to different product;Software is different on board, is software debugging and life
It produces maintenance and brings a large amount of difficult and duplication of labour.
There are two types of existing coupling board software development thoughts.The first be decomposed according to project demands each action step and
Parameter forms flow chart, is then directly programmed according to flow chart, all steps and parameter all write in code, this mode
Advantage be early development speed quickly, the disadvantage is that the later period debugging and process adjustment it is very cumbersome because often being needed in actual production
Change process, parameter and Function Extension.This, which will lead to, there is the problem of multiple software versions on the same board, undoubtedly this increases
The workload of software maintenance is added;Second is to write in code using each elemental motion as module, and be identified to it, real
Determine that is acted executes sequence according to step mark by software engineer or process engineer in the application of border.This mode solves
It is the problem of frequent change process mentioned above, but the demand for needing to increase new function and new technological process, then helpless;
In addition, the problem of at least one version occurs in the software that this mode also results on same product type board, this is soft
The management and maintenance of part provide huge challenge.
It needs a kind of software platform in a hurry in actual production, the function of all coupling board software versions can be covered,
And simple interface, close friend when using.Method proposed by the present invention will efficiently solve problem mentioned above, all coupling machines
Platform can be programmed and be debugged with the same software version, this not only greatly reduces the project development period, but also drops
Low software management and maintenance difficulties.
Summary of the invention
The purpose of the present invention is reduce software development, management and Maintenance Difficulty for unified different coupling board software versions
The problem of spending, propose it is a kind of can secondary development software method, possess can secondary development function, meet different application scene, subtract
In few project development period, reduce software management and maintenance cost.
To achieve the above object, the present invention propose it is a kind of can secondary development software method, comprising the following steps:
Create data structure;
Design program development interface;
Establish program development instruction;
It designs external dynamic and loads dynamic link library facility, in the case where not needing compiler, by dynamic link library
In function as described program develop instruct;And
Design main program interface and interface management function.
Optionally, for described one kind can secondary development software platform method, creation data structure in, comprising: establish
Hash table, instruction link-list structure and global variable structural body, for storing function information, program instruction information and global change respectively
Measure information.
Optionally, for described one kind can secondary development software platform method, design program development interface in, comprising:
Program development interface describes to instruct in a tabular form, and a line represents an instruction, grid column with include " number ",
" BreakPoint ", " lable ", " Name ", " Para1 ", " Para2 ", " Para3 ", " Para4 ", " Para5 " and " Para6 "
To describe content in every instruction;All instructions in one table from top to bottom, is stored to local text after preservation by program operation order
In part, content in file is loaded into instruction link-list by when operation.
Optionally, for described one kind can secondary development software platform method, function packet in described program development interface
It includes code debugging function, operation/pause function, insertion and deletes command function.
Optionally, for described one kind can secondary development software platform method, establish program development instruction in, comprising:
Establish variable-definition instruction, logic instruction, human-computer interaction instruction, mathematical operation instruction, subfunction call instruction, movement control
Make instruction, communication instruction, data display store instruction and multithreading instruction.
Optionally, for described one kind can secondary development software platform method, design external dynamic load dynamic link
In library facility, comprising:
Function information is obtained by parsing header file and information is stored in Hash table, including function name, input and output ginseng
Several and type;
Using including LoadLibrary, tri- functions of GetProcAddress, FreeLibrary realize that dynamic analyses are dynamic
State links library facility;
Function in the Hash table is loaded into program development instruction, shows help information when calling.
In the case where not needing compiler, using the function in DLL as the instruction of program development.
Optionally, for described one kind can secondary development software platform method, the main program interface include: menu bar,
Graphical display area, display field, system mode viewing area and quick botton area, the menu bar not can configure, the figure
Viewing area, display field, system mode viewing area and the configuration of quick botton area personalizable.
Optionally, for described one kind can secondary development software platform method, the interface management function include: interface song
Line color configuration, user authority management and system configuration;
The border curve color configuration is that the color shown for multi-channel coupling power curve carries out personal settings;
The user authority management includes addition/deletion user account and privilege feature, and user right is divided into administrator's power
Limit, engineer's permission, technician's permission and operative employee's permission;For Permission Levels by upper under, high-grade account can be to inferior grade account
Family is configured, including addition, deletion, change password and change account levels;
The system configuration includes motion control hardware parameter configuration, hardware input and output I/O is configured, main interface is fast controlled
Button arrangement and program Logo display configuration processed.
Beneficial effects of the present invention at least that: propose it is a kind of can secondary development software method, not only there is interface
Succinctly, friendly feature, and there is secondary development and dynamic importing DLL (Dynamic Link Library, dynamic link
Library) function, can make software be suitable for all coupling board platforms, this considerably reduce the project development periods, reduce soft
Part management and maintenance cost.
Detailed description of the invention
Fig. 1 be one kind proposed by the present invention can secondary development software method flow chart.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The purpose of the present invention: propose a kind of base can secondary development software method, make that it is suitable for all optical communications industries
Automation coupling board.
The present invention proposes a kind of compiling based on LabWindows/CVI development platform for automation coupling board software
Journey software platform method, with guarantee software engineer or process engineer can in the case where software does not need recompility,
Secondary development or debugging are carried out to equipment, to meet different application scenarios.Data structure is initially set up for storing data;Its
Secondary design program secondary development interface includes instruction insertion, deletion, single step run (Step) and operation (Run) function;Then it compiles
It programs and develops elementary instruction, so as to secondary development calling;Then design external dynamic loads DLL (Dynamic Link
Library, dynamic link library) function, in the case where not needing compiler, using the function in DLL as program development base
This instruction;Finally design main program interface and main program interface management function.
In the main program interface of one embodiment of the invention, including multiple graphical display areas, show connecting curve, such as can
To be arranged in middle upper part;As the table of display field, coupling data is shown, such as can be below graphical display area;
State box shows that program execution acts operating status, such as can be below table as system mode viewing area;Right side is certainly
Upper and lower difference can be company Logo, product ID, shortcut key button;Each region can be carried out according to customer demand
Individual cultivation.Such as the line number columns that result data is shown can define inside system configuration file;The title of shortcut key
It can be configured inside configuration file.
The program secondary development interface of one embodiment of the invention may include the programmed operating area above table,
Realize insertion/deletion table, input instruction, single-step debug etc.;The intermediate table is program secondary development area, exploitation visitor
The program of family demand;Lower section is the variable states area of observation coverage, shows the numerical value of variable in operational process.
In the present invention, basic function (serial communication, single channel coupling, multi-channel coupling ...) is often used to make on coupling platform
For elementary instruction, is then instructed by program development and realize logical operation and mathematical operation, additional dynamic importing DLL (Dynamic
Link Library, dynamic link library) function to realize adapt to different application scene effect.As shown in Figure 1, specific implementation
Step are as follows:
Step S11 creates data structure;
Step S12 designs program development interface;
Step S13 establishes program development instruction;
Step S14, design external dynamic load dynamic link library facility will be moved in the case where not needing compiler
Function in state chained library is developed as described program to be instructed;And
Step S15 designs main program interface and interface management function.
In one embodiment, for step S11, comprising: establish Hash table, instruction link-list structure and global variable structure
Body, for storing function information, program instruction information and global variable information respectively.
In one embodiment, for step S12, comprising: program development interface describes to instruct in a tabular form, a line generation
One, table instruction, grid column with include " number ", " BreakPoint ", " lable ", " Name ", " Para1 ", " Para2 ",
" Para3 ", " Para4 ", " Para5 " and " Para6 " etc. come describe every instruction in content;Program operation order from top to bottom,
All instructions in a table is stored in local file after preservation, content in file is loaded into instruction link-list by when operation.
For example, the function in described program development interface includes code debugging function, operation/pause function, is inserted into and deletes
Except command function.
In one embodiment, for step S13, in establishing program development instruction, comprising: establish variable-definition and refer to
It enables, logic instruction, human-computer interaction instruction, mathematical operation instruction, subfunction call instruction, motion control instruction, communication refer to
Enable, data show store instruction and multithreading instruction etc..
In one embodiment, for step S14, in design external dynamic load dynamic link library facility, comprising:
Function information is obtained by parsing header file and information is stored in Hash table, including function name, input and output ginseng
Several and type;
Such as using including LoadLibrary, tri- functions of GetProcAddress, FreeLibrary realize dynamic resolutions
Analyse dynamic link library facility;
Function in the Hash table is loaded into program development instruction, shows help information when calling.
In the case where not needing compiler, using the function in DLL as the instruction of program development.
In one embodiment, for step S15, the main program interface includes: menu bar, graphical display area, data
Viewing area, system mode viewing area and quick botton area, the menu bar not can configure, and the graphical display area, data are shown
Area, system mode viewing area and the configuration of quick botton area personalizable.Such as the line number columns that result data is shown can be
Definition inside system configuration file;The title number of shortcut key can configure inside configuration file.
In one embodiment, for step S15, the interface management function includes: border curve color configuration, user
Rights management and system configuration;
The border curve color configuration is that the color shown for multi-channel coupling power curve carries out personal settings;
The user authority management includes addition/deletion user account and privilege feature, and user right is divided into administrator's power
Limit, engineer's permission, technician's permission and operative employee's permission;For Permission Levels by upper under, high-grade account can be to inferior grade account
Family is configured, including addition, deletion, change password and change account levels;
The system configuration includes motion control hardware parameter configuration, hardware input and output I/O is configured, main interface is fast controlled
Button arrangement and program Logo display configuration processed.
In conclusion the present invention propose it is a kind of can secondary development software method, not only there is simple interface, friendly
Feature, and the function with secondary development and dynamic importing DLL (Dynamic Link Library, dynamic link library), can
So that software is suitable for all coupling board platforms, this considerably reduce the project development periods, reduce software management and maintenance
Cost.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with
A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding
And modification, the scope of the present invention is defined by the appended.
Claims (8)
1. the present invention propose it is a kind of can secondary development software method, comprising the following steps:
Create data structure;
Design program development interface;
Establish program development instruction;
Designing external dynamic load dynamic link library facility will be in dynamic link library in the case where not needing compiler
Function is developed as described program and is instructed;And
Design main program interface and interface management function.
2. one kind can secondary development software platform method according to claim 1, which is characterized in that in creation data structure
In, comprising: Hash table, instruction link-list structure and global variable structural body are established, for storing function information, program instruction respectively
Information and global variable information.
3. one kind can secondary development software platform method according to claim 1, which is characterized in that in design program development circle
In face, comprising: program development interface describes to instruct in a tabular form, and a line represents an instruction, and grid column is to include
“number”、“BreakPoint”、“lable”、“Name”、“Para1”、“Para2”、“Para3”、“Para4”、“Para5”
And " Para6 " come describe every instruction in content;Program operation order from top to bottom, deposits all instructions in a table after preservation
Into local file, content in file is loaded into instruction link-list by when operation.
4. one kind can secondary development software platform method according to claim 3, which is characterized in that described program development interface
In function include code debugging function, operation/pause function, insertion and delete command function.
5. one kind can secondary development software platform method according to claim 1, which is characterized in that refer to establishing program development
In order, comprising: establish variable-definition instruction, logic instruction, human-computer interaction instruction, mathematical operation instruction, subfunction calling
Instruction, motion control instruction, communication instruction, data show store instruction and multithreading instruction.
6. one kind can secondary development software platform method according to claim 1, which is characterized in that add in design external dynamic
It carries in dynamic link library facility, comprising:
Pass through parsing header file to obtain function information and information is stored in Hash table, including function name, input/output argument and
Type;
Using including LoadLibrary, tri- functions of GetProcAddress, FreeLibrary realize dynamic analysis dynamic chains
Connect library facility;
Function in the Hash table is loaded into program development instruction, shows help information when calling.
In the case where not needing compiler, using the function in DLL as the instruction of program development.
7. one kind can secondary development software platform method according to claim 1, which is characterized in that the main program interface packet
Include: menu bar, graphical display area, display field, system mode viewing area and quick botton area, the menu bar can not match
It sets, the graphical display area, display field, system mode viewing area and the configuration of quick botton area personalizable.
8. one kind can secondary development software platform method according to claim 1, which is characterized in that the interface management function
It include: border curve color configuration, user authority management and system configuration;
The border curve color configuration is that the color shown for multi-channel coupling power curve carries out personal settings;
The user authority management includes addition/deletion user account and privilege feature, and user right is divided into administrator right, work
Cheng Shi permission, technician's permission and operative employee's permission;By upper under, high-grade account can carry out inferior grade account Permission Levels
Configuration, including addition, deletion, change password and change account levels;
The system configuration include motion control hardware parameter configuration, hardware input and output I/O configuration, main interface fast control by
Button configuration and program Logo display configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811574527.XA CN109669721B (en) | 2018-12-21 | 2018-12-21 | Method capable of developing software for second time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811574527.XA CN109669721B (en) | 2018-12-21 | 2018-12-21 | Method capable of developing software for second time |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109669721A true CN109669721A (en) | 2019-04-23 |
CN109669721B CN109669721B (en) | 2022-04-01 |
Family
ID=66145790
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811574527.XA Active CN109669721B (en) | 2018-12-21 | 2018-12-21 | Method capable of developing software for second time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669721B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6212673B1 (en) * | 1997-03-31 | 2001-04-03 | International Business Machines Corporation | Component-neutral builder interface |
CN102236602A (en) * | 2011-07-21 | 2011-11-09 | 南京大学 | Visual software test design platform |
CN104461503A (en) * | 2014-11-06 | 2015-03-25 | 华自科技股份有限公司 | Method and system for dynamically forming software interfaces |
CN105224353A (en) * | 2014-06-26 | 2016-01-06 | 北京北方微电子基地设备工艺研究中心有限责任公司 | The method and system of dynamic load interface navigation |
-
2018
- 2018-12-21 CN CN201811574527.XA patent/CN109669721B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6212673B1 (en) * | 1997-03-31 | 2001-04-03 | International Business Machines Corporation | Component-neutral builder interface |
CN102236602A (en) * | 2011-07-21 | 2011-11-09 | 南京大学 | Visual software test design platform |
CN105224353A (en) * | 2014-06-26 | 2016-01-06 | 北京北方微电子基地设备工艺研究中心有限责任公司 | The method and system of dynamic load interface navigation |
CN104461503A (en) * | 2014-11-06 | 2015-03-25 | 华自科技股份有限公司 | Method and system for dynamically forming software interfaces |
Also Published As
Publication number | Publication date |
---|---|
CN109669721B (en) | 2022-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109143953B (en) | PLC program verification method based on intermediate language | |
CN109117362B (en) | PLC program verification system based on intermediate language | |
CN108897676B (en) | Flight guidance control software reliability analysis system and method based on formalization rules | |
Fuchs et al. | Identification of design patterns for IEC 61131-3 in machine and plant manufacturing | |
CN103123598A (en) | Online debugging implementation method of compiling soft programmable logic controller (PLC) | |
CN106444613A (en) | Implementation method and system of equipment driving controller assembly | |
CN104462943A (en) | Non-intrusive performance monitoring device and method for service system | |
CN105786500A (en) | Automatic generation method of embedded controller program framework | |
CN105591779A (en) | Method and device for inspecting network element | |
Hopsu et al. | On portability of IEC 61499 compliant structures and systems | |
KR20210087745A (en) | System for realizing smart factory | |
Ritala et al. | UML automation profile: enhancing the efficiency of software development in the automation industry | |
CN110532167A (en) | A kind of state machine model timing property verification method based on model conversion | |
CN106325242A (en) | MES system based on modularized control units | |
WO2014170992A1 (en) | Programming tool | |
Colla et al. | Applying the IEC-61499 model to the shoe manufacturing sector | |
CN109669721A (en) | One kind can secondary development software platform | |
Hujo et al. | Toward a graphical modeling tool for response-time requirements based on soft and hard real-time capabilities in industrial cyber-physical systems | |
CN110442520B (en) | Cross debugging system and method based on PLC programming language | |
Kuzmin et al. | Modeling, Specification and Construction of PLC-programs | |
CN115857882A (en) | Integrated development environment system | |
CN104238438A (en) | PLC universal platform and design method thereof | |
Frey et al. | “Safety automata”—A new specification language for the development of PLC safety applications | |
CN102306109A (en) | Method for realizing logic programming in communication management machine | |
Luder et al. | Formal models for the verification of IEC 61499 function block based control applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |