It is of great significance to automatically generate code from structured flowchart. There are some deficiencies in existing researches, and their key algorithms and technologies are not elaborated, also there are ve...It is of great significance to automatically generate code from structured flowchart. There are some deficiencies in existing researches, and their key algorithms and technologies are not elaborated, also there are very few full-featured integrated development platforms that can generate code automatically based on structured flowchart. By analyzing the characteristics of structured flowchart, a structure identification algorithm for structured flowchart is put forward. The correctness of algorithm is verified by enumeration iteration. Then taking the identified flowchart as input, an automatic code generation algorithm is proposed. Also the correctness is verified by enumeration iteration. Finally an integrated development platform is developed using those algorithms, including flowchart modeling, code automatic generation, CDT\GCC\GDB etc. The correctness and effectiveness of algorithms proposed are verified through practical operations.展开更多
Embedded real-time systems employ a variety of operating system platforms. Consequently, for automatic code generation, considerable redevelopment is needed when the platform changes. This results in major challenges ...Embedded real-time systems employ a variety of operating system platforms. Consequently, for automatic code generation, considerable redevelopment is needed when the platform changes. This results in major challenges with respect to the automatic code generation process of the architecture analysis and design language (AADL). In this paper, we propose a method of template-based automatic code generation to address this issue. Templates are used as carriers of automatic code generation rules from AADL to the object platform. These templates can be easily modified for different platforms. Automatic code generation for different platforms can be accomplished by formulating the corresponding generation rules and transformation templates. We design a set of code generation templates from AADL to the object platform and develop an automatic code generation tool. Finally, we take a typical data processing unit (DPU) system as a case study to test the tool. It is demonstrated that the autogenerated codes can be compiled and executed successfully on the object platform.展开更多
针对汽车无钥匙系统中电源分配模块(PDM,Power Distribution Module)控制系统要求,基于MATLAB/Simulink建立了电源分配控制算法模型,并通过离线仿真对其控制算法的可行性进行了验证。同时,利用Targetlink软件完成了自动代码生成,并与专...针对汽车无钥匙系统中电源分配模块(PDM,Power Distribution Module)控制系统要求,基于MATLAB/Simulink建立了电源分配控制算法模型,并通过离线仿真对其控制算法的可行性进行了验证。同时,利用Targetlink软件完成了自动代码生成,并与专家(PE,Processor Expert)模式下生成的底层代码相融合,将其下载到控制器中进行了硬件在环验证,较手工代码而言,提高了开发效率。最后,利用Control Desk软件设计出测试系统界面,测试表明,PDM满足无钥匙系统要求。展开更多
The electronic control unit (ECU) in electrical powered hybrid and fuel cell vehicles is exceedingly complex. Rapid prototyping control is used to reduce development time and eliminate errors during software develop...The electronic control unit (ECU) in electrical powered hybrid and fuel cell vehicles is exceedingly complex. Rapid prototyping control is used to reduce development time and eliminate errors during software development. This paper describes a high-efficiency development method and a flexible tool chain suitable for various applications in automotive engineering. The control algorithm can be deployed directly from a Matlab/Simulink/Stateflow environment into the ECU hardware together with an OSEK real-time operating system (RTOS). The system has been successfully used to develop a 20-kW fuel cell system ECU based on a Motorola PowerPC 555 (MPC555) microcontroller. The total software development time is greatly reduced and the code quality and reliability are greatly enhanced.展开更多
Quickly getting back the synchronism of a disturbed interconnected multi-area power system due to variations in loading condition is recognized as prominent issue related to automatic generation control(AGC).In this r...Quickly getting back the synchronism of a disturbed interconnected multi-area power system due to variations in loading condition is recognized as prominent issue related to automatic generation control(AGC).In this regard,AGC system based on fuzzy logic,i.e.,so-called FLAGC can introduce an effectual performance to suppress the dynamic oscillations of tie-line power exchanges and frequency in multi-area interconnected power system.Apart from that,simultaneous coordination scheme based on particle swarm optimization(PSO)along with real coded genetic algorithm(RCGA)is suggested to coordinate FLAGCs of the all areas.To clarify the high efficiency of aforementioned strategy,two different interconnected multi-area power systems,i.e.,three-area hydro-thermal power system and five-area thermal power system have been taken into account for relevant studies.The potency of this strategy has been thoroughly dealt with by considering the step load perturbation(SLP)in both the under study power systems.To sum up,the simulation results have plainly revealed dynamic performance of FLAGC as compared with conventional AGC(CAGC)in each power system in order to damp out the power system oscillations.展开更多
文摘It is of great significance to automatically generate code from structured flowchart. There are some deficiencies in existing researches, and their key algorithms and technologies are not elaborated, also there are very few full-featured integrated development platforms that can generate code automatically based on structured flowchart. By analyzing the characteristics of structured flowchart, a structure identification algorithm for structured flowchart is put forward. The correctness of algorithm is verified by enumeration iteration. Then taking the identified flowchart as input, an automatic code generation algorithm is proposed. Also the correctness is verified by enumeration iteration. Finally an integrated development platform is developed using those algorithms, including flowchart modeling, code automatic generation, CDT\GCC\GDB etc. The correctness and effectiveness of algorithms proposed are verified through practical operations.
基金the National Natural Science Foundation of China (Grant Nos. 61672074 and 91538202)Project of the State Key Laboratory of Software Development Environment of China (SKLSDE-2016ZX-16).
文摘Embedded real-time systems employ a variety of operating system platforms. Consequently, for automatic code generation, considerable redevelopment is needed when the platform changes. This results in major challenges with respect to the automatic code generation process of the architecture analysis and design language (AADL). In this paper, we propose a method of template-based automatic code generation to address this issue. Templates are used as carriers of automatic code generation rules from AADL to the object platform. These templates can be easily modified for different platforms. Automatic code generation for different platforms can be accomplished by formulating the corresponding generation rules and transformation templates. We design a set of code generation templates from AADL to the object platform and develop an automatic code generation tool. Finally, we take a typical data processing unit (DPU) system as a case study to test the tool. It is demonstrated that the autogenerated codes can be compiled and executed successfully on the object platform.
文摘针对汽车无钥匙系统中电源分配模块(PDM,Power Distribution Module)控制系统要求,基于MATLAB/Simulink建立了电源分配控制算法模型,并通过离线仿真对其控制算法的可行性进行了验证。同时,利用Targetlink软件完成了自动代码生成,并与专家(PE,Processor Expert)模式下生成的底层代码相融合,将其下载到控制器中进行了硬件在环验证,较手工代码而言,提高了开发效率。最后,利用Control Desk软件设计出测试系统界面,测试表明,PDM满足无钥匙系统要求。
基金Supported by the National High-Tech Research and Development (863) Program of China (No. 2003AA)
文摘The electronic control unit (ECU) in electrical powered hybrid and fuel cell vehicles is exceedingly complex. Rapid prototyping control is used to reduce development time and eliminate errors during software development. This paper describes a high-efficiency development method and a flexible tool chain suitable for various applications in automotive engineering. The control algorithm can be deployed directly from a Matlab/Simulink/Stateflow environment into the ECU hardware together with an OSEK real-time operating system (RTOS). The system has been successfully used to develop a 20-kW fuel cell system ECU based on a Motorola PowerPC 555 (MPC555) microcontroller. The total software development time is greatly reduced and the code quality and reliability are greatly enhanced.
文摘Quickly getting back the synchronism of a disturbed interconnected multi-area power system due to variations in loading condition is recognized as prominent issue related to automatic generation control(AGC).In this regard,AGC system based on fuzzy logic,i.e.,so-called FLAGC can introduce an effectual performance to suppress the dynamic oscillations of tie-line power exchanges and frequency in multi-area interconnected power system.Apart from that,simultaneous coordination scheme based on particle swarm optimization(PSO)along with real coded genetic algorithm(RCGA)is suggested to coordinate FLAGCs of the all areas.To clarify the high efficiency of aforementioned strategy,two different interconnected multi-area power systems,i.e.,three-area hydro-thermal power system and five-area thermal power system have been taken into account for relevant studies.The potency of this strategy has been thoroughly dealt with by considering the step load perturbation(SLP)in both the under study power systems.To sum up,the simulation results have plainly revealed dynamic performance of FLAGC as compared with conventional AGC(CAGC)in each power system in order to damp out the power system oscillations.