CN103729181A - Software modular method based on CSS platform - Google Patents
Software modular method based on CSS platform Download PDFInfo
- Publication number
- CN103729181A CN103729181A CN201310740375.7A CN201310740375A CN103729181A CN 103729181 A CN103729181 A CN 103729181A CN 201310740375 A CN201310740375 A CN 201310740375A CN 103729181 A CN103729181 A CN 103729181A
- Authority
- CN
- China
- Prior art keywords
- software
- file
- css
- platform
- api function
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a software modular method based on a CSS platform. The method includes the first step of establishing a software project for generating library files on the CSS platform, the second step of establishing header files and source files of API function codes corresponding to the library files, setting corresponding compiling modes and corresponding compiling paths and carrying out compiling to generate the library files, and the third step of adding the corresponding library files and the header files in control software, carrying out statement on referred functions to call corresponding API functions corresponding to the library files. Through the method, modularization, high efficiency and facilitation of a DSP control program based on the CSS platform are achieved, and the confidentiality of source codes of a core control algorithm can be improved.
Description
Technical field
The present invention relates to a kind of software modularity method based on CCS software platform, especially relate to a kind of method of the CCS software desk Implementation DSP control algolithm code module based on Texas Instruments, belong to signal processing technology field.
Background technology
Flourish along with New Energy Industry, the shared proportions shared in power equipment industry of large power power electronic appliance such as wind electric converter, photovoltaic DC-to-AC converter, APF, energy storage inverter, SVG are increasing, also make Power Electronic Technique obtain the chance of high speed development simultaneously.Power Electronic Technique great majority have all been used ac-dc conversion technology, its control algolithm presents differentiation according to the difference of control object, but bottom and basic moral control core algorithm for system are all identical, for example SVPWM algorithm, PARK mapping algorithm module, CLARK mapping algorithm module, pi regulator algoritic module, sampling computational algorithm module, digital filter algoritic module etc.Meanwhile, the differentiation of control strategy can have a strong impact on stability, high efficiency and the security of controlled system.Therefore, system control strategy and algorithmic code become very important core in product, and other people can steal operation product software code very easily, understand the core control strategy of system, and this product is easily replicated.
Summary of the invention
It is convenient that technical matters to be solved by this invention is to provide a kind of subsequent calls, the software modularity method based on CCS software platform of good confidentiality.
For solving the problems of the technologies described above, the invention provides a kind of software modularity method based on CSS platform, comprise the following steps: (1) sets up the software project that generates Lib library file at CSS platform; (2) set up header file and the source file of the api function code that Lib library file is corresponding, and corresponding pattern compiler and path are set, compiling generates Lib library file; (3) in control software, add corresponding Lib library file and header file, and the function relating to is stated, to call the api function that Lib library file is corresponding.
Preferably, when setting up source file, in described source file, set up principal function and the control algolithm corresponding with described api function.
Preferably, when setting up header file, in header file, set up structure and association.
Preferably, for the many multivariable control algolithms of needs, input, centre and output variable are carried out to assignment, calculating in the mode of structure, association respectively.
By software modularity method of the present invention, each submodule is designed to the api function interface of standard, and is all to exist with static Lib library file, thereby has realized the high efficiency of software programming., without software developer, authorize, software operation person can not open or revise the security of relevant control algolithm assurance source code meanwhile.
Accompanying drawing explanation
Fig. 1 is the overview flow chart of the software modularity method based on CCS software platform of the present invention.
Fig. 2 is api function Lib library file product process figure of the present invention.
Fig. 3 is api function Lib library file call flow chart of the present invention.
Embodiment
Specific embodiments of the invention provide a kind of CCS software desk Implementation DSP based on Texas Instruments (2812,28335 etc. chip) control algolithm code module method, belong to signal processing technology field.The method can be by controlling relevant hardware bottom layer algorithm to DSP, Power Electronic Technique control algolithm is packaged into the api function existing with Lib library file form.
The present invention is directed to the software architecture (being called for short " architecture ") of controlling platform software structure and adopting basic platform part, bottom hardware correlative code is made to standard format, design api function interface, is packaged into Lib library file by api function control algolithm.Conventional power electronics algoritic module is as follows: SVPWM algoritic module, PARK mapping algorithm module, CLARK mapping algorithm module, pi regulator algoritic module, sampling computational algorithm module, digital filter algoritic module etc.By designing corresponding api function interface for these power electronics algoritic modules, and be packaged into lib document form, peopleware can call as required corresponding module and carry out software programming.
In the present embodiment, need set up in advance the software project that generates Lib library file, design corresponding source file and header file, define suitable pattern compiler and path, compiling generates Lib library file; And, utilize the data structure mode of structure, association to carry out method to set up to the input in header file, centre and output variable and correlation parameter.In use, control in software and only need directly the library file of required api function to be called, add corresponding Lib library file and header file parameter, and involved function is stated.
Fig. 1 is the overview flow chart of the software modularity method based on CCS software platform, can draw the general design idea of the method according to its flow process.First, carry out software source code design, the api function that can realize difference in functionality encapsulates and generates Lib library file, and in new systematic control algorithm, calls needed api function, thereby has reached software function realization.By such method, new systematic control algorithm software obtains just can generating output variable after input variable.
Fig. 2 shows the design of programmed algorithm source code and is compiled into the step of Lib library file, i.e. the step based on setting up api function and corresponding Lib library file under CCS software platform.Concrete, first, at CCS software platform, set up in advance new project, namely generate the software project of Lib library file, the output type that defines this Project is Library(.lib) file; Subsequently, set up source file (.c) and the header file (.h) of corresponding api function code, and corresponding pattern compiler and path are set, compiling generates Lib library file.While setting up source file, in api function source file, set up principal function, the function that will realize according to this api function goes to design control algolithm, and principal function can remove to define according to the data type of needed output variable the return type of this function.When setting up header file, if the variable that contains multiple different types of data in output variable in defining variable principal function in api function header file, set up structure, association's data type and can include the variable of multiple different types of data, for the many multivariable control algolithms of needs, input, centre and output variable are carried out to assignment, calculating in the mode of structure, association respectively, and the output variable that function returns can meet calling of other api function.
After complete the design of api function header file and source file, under build option column, carry out the setting of complier and archiver, after having compiled, under adding, the Debug of root directory file finds .lib file, this file has comprised the function of api function, and realizes and calling in can the program below.
Accompanying drawing 3 shows the step of the Lib library file that calls required api function, i.e. the Lib library file based on Using API Function under CCS software platform.If now relate to the function of api function in the program by control algolithm, in control software, add corresponding Lib library file and header file, and the function relating to is stated, to call the api function that Lib library file is corresponding.Concrete, the .lib file of this api function is manually placed in the lib file of off-the-shelf item, and in the projct/Libraries on CCS software platform, add corresponding api function Lib library file, and in header file header, define variable related in this api function and this api function type of statement.
By a kind of like this software modularity method based on CCS software platform, the present invention makes standard format by the correlative code of the control software of DSP, design api function interface, and be packaged into Lib library file form.This novel method can reduce software developer's workload, has also improved software confidentiality simultaneously.Therefore, by setting up Lib library file, complete the realization of relevant api function, software developer can require to select suitable api function according to different control strategies, the Lib library file that directly call function is relevant as need to be utilized certain api function time, saves software developer's workload greatly; Software developer does not need to provide source code only need provide api function interface to software user, can realize like this software code especially core algorithm part is encrypted, and makes unauthorized person can't see source code, has guaranteed the security of code.Each submodule is designed to the api function interface of standard, and is all to exist with static Lib library file, when, realized the high efficiency of software programming., without software developer, authorize, software operation person can not open or revise the security of relevant control algolithm assurance source code meanwhile.
The present invention is illustrated according to the preferred embodiment, is to be understood that above-described embodiment does not limit the present invention in any form, and all employings are equal to replaces or technical scheme that the form of equivalent transformation obtains, within all dropping on protection scope of the present invention.
Claims (4)
1. the software modularity method based on CSS platform, is characterized in that, comprises the following steps:
(1) at CSS platform, set up the software project that generates Lib library file;
(2) set up header file and the source file of the api function code that Lib library file is corresponding, and corresponding pattern compiler and path are set, compiling generates Lib library file;
(3) in control software, add corresponding Lib library file and header file, and the function relating to is stated, to call the api function that Lib library file is corresponding.
2. the software modularity method based on CSS platform according to claim 1, is characterized in that:
When setting up source file, in described source file, set up principal function and the control algolithm corresponding with described api function.
3. the software modularity method based on CSS platform according to claim 2, is characterized in that:
When setting up header file, in header file, set up structure and association.
4. the software modularity method based on CSS platform according to claim 3, is characterized in that, for the many multivariable control algolithms of needs, input, centre and output variable is carried out to assignment, calculating in the mode of structure or association respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310740375.7A CN103729181A (en) | 2013-12-27 | 2013-12-27 | Software modular method based on CSS platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310740375.7A CN103729181A (en) | 2013-12-27 | 2013-12-27 | Software modular method based on CSS platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103729181A true CN103729181A (en) | 2014-04-16 |
Family
ID=50453267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310740375.7A Pending CN103729181A (en) | 2013-12-27 | 2013-12-27 | Software modular method based on CSS platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103729181A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528171A (en) * | 2016-11-24 | 2017-03-22 | 郑州云海信息技术有限公司 | Method, device and system for designing interface between heterogeneous computing platforms |
CN107133036A (en) * | 2017-04-26 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | The management method and device of a kind of module |
CN109683890A (en) * | 2018-11-16 | 2019-04-26 | 东软集团股份有限公司 | The modular method, apparatus of cascading style sheets, storage medium and equipment |
CN112114895A (en) * | 2020-08-25 | 2020-12-22 | 通号城市轨道交通技术有限公司 | Method and device for separating data and program of rail transit control system |
CN114675095A (en) * | 2020-12-27 | 2022-06-28 | 核工业理化工程研究院 | Three-level inverter debugging method and device based on semi-physical simulation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7568184B1 (en) * | 2004-04-14 | 2009-07-28 | Sun Microsystems, Inc. | Software documentation generator |
CN102662728A (en) * | 2012-04-13 | 2012-09-12 | 大唐移动通信设备有限公司 | Algorithm verifying method and algorithm verifying system |
CN103345747A (en) * | 2013-06-26 | 2013-10-09 | 公安部第三研究所 | Optimized picture shape feature extraction and structuring description device and method based on horizontal coordinate |
-
2013
- 2013-12-27 CN CN201310740375.7A patent/CN103729181A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7568184B1 (en) * | 2004-04-14 | 2009-07-28 | Sun Microsystems, Inc. | Software documentation generator |
CN102662728A (en) * | 2012-04-13 | 2012-09-12 | 大唐移动通信设备有限公司 | Algorithm verifying method and algorithm verifying system |
CN103345747A (en) * | 2013-06-26 | 2013-10-09 | 公安部第三研究所 | Optimized picture shape feature extraction and structuring description device and method based on horizontal coordinate |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528171A (en) * | 2016-11-24 | 2017-03-22 | 郑州云海信息技术有限公司 | Method, device and system for designing interface between heterogeneous computing platforms |
CN106528171B (en) * | 2016-11-24 | 2019-09-24 | 郑州云海信息技术有限公司 | Method of interface, apparatus and system between a kind of heterogeneous computing platforms subsystem |
CN107133036A (en) * | 2017-04-26 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | The management method and device of a kind of module |
CN109683890A (en) * | 2018-11-16 | 2019-04-26 | 东软集团股份有限公司 | The modular method, apparatus of cascading style sheets, storage medium and equipment |
CN109683890B (en) * | 2018-11-16 | 2022-02-08 | 东软集团股份有限公司 | Method, device, storage medium and equipment for modularizing cascading style sheet |
CN112114895A (en) * | 2020-08-25 | 2020-12-22 | 通号城市轨道交通技术有限公司 | Method and device for separating data and program of rail transit control system |
CN114675095A (en) * | 2020-12-27 | 2022-06-28 | 核工业理化工程研究院 | Three-level inverter debugging method and device based on semi-physical simulation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103729181A (en) | Software modular method based on CSS platform | |
US9235381B2 (en) | Method and device for the programming and configuration of a programmable logic controller | |
Kumar Agarwal et al. | Three‐phase single‐stage grid tied solar PV ECS using PLL‐less fast CTF control technique | |
Mikkili et al. | Types‐1 and‐2 fuzzy logic controllers‐based shunt active filter Id–Iq control strategy with different fuzzy membership functions for power quality improvement using RTDS hardware | |
Kumari et al. | Maiden application of cascade tilt‐integral–tilt‐derivative controller for performance analysis of load frequency control of interconnected multi‐source power system | |
CN114610640B (en) | Fuzzy test method and system for trusted execution environment of Internet of things | |
CN103198240A (en) | Method and device for protecting security of code | |
CN103853938A (en) | High-throughput sequencing data processing and analysis flow control method | |
Banković et al. | A building block method for modeling and small-signal stability analysis of the autonomous microgrid operation | |
Coutinho et al. | SARDANA: The software for building SCADAS in Scientific Environments | |
Corbett et al. | Accelerator control middle layer | |
Si et al. | Attempt to generalize fractional-order electric elements to complex-order ones | |
Zhu et al. | Development and application of a model‐based collaborative analysis and design framework for microgrid power systems | |
Ahmed et al. | Modelling and Passivity-based Control of a Non Isolated DC-DC Converter in a Fuel Cell System | |
CN104750482A (en) | Method for constructing dynamic script execution engine based on MapReduce | |
Batchkova et al. | IEC 61499 based control of cyber-physical systems | |
CN114968260A (en) | Hybrid pre-compiling method and device, electronic equipment and storage medium | |
CN106649118A (en) | Generating method of SSA single path of Java code based on AST | |
Felix et al. | A Framework Based on Model Driven Engineering and Model Weaving to Support Data-Driven Interoperability for Smart Grid Applications | |
Sanz et al. | RIO EPICS device support application case study on an ion source control system (ISHP) | |
CN118550516B (en) | Implementation method of function template or class template binary library capable of using any type of parameters | |
Marten et al. | Conversion of CIM CGMES data sets to the open source software pandapower–case study including an ENTSO-E test network | |
Jennings | Development and application of a computerised design tool for remote area power supply systems | |
Kunzler et al. | Wide frequency band single-phase amplitude and phase angle detection based on integral and derivative actions | |
CN102880469A (en) | Method for realizing mapping from ExclusiveArea to OSResource in AUTOSAR |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140416 |
|
RJ01 | Rejection of invention patent application after publication |