Font Size: a A A

Research And Implementation Of Graphic Modeling Technology Based On YHSIM

Posted on:2013-06-21Degree:MasterType:Thesis
Country:ChinaCandidate:D M YanFull Text:PDF
GTID:2298330422973892Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
As a modeling mode, graphic modeling technology can improve the efficiency andquality of the modeling development. The designed model using this technology is moreintuitive and more easy-to-understand. Because YHSIM simulation platform has manyadvantages, such as it has stronger universality and higher real-time, it is easy toconnected to the physical, and can directly use differential equations to model. So theplatform has been widely applied in hardware-in-the-loop simulation in the domestic.The modeling and real-time simulation software YHSIM only provides simulationlanguage programming modeling way. In order to complete system modeling, themethod requires users must study the YHSIM language in a systematic way first. Thismodeling method has high requirements to the users. Established model using thismethod is not enough intuitive. So, research on graphic modeling technique based onYHSIM has very important significance for reducing the difficulty of user modeling,heightening the designed model’s intuitiveness, improving the efficiency and quality ofmodeling, meeting the continuous development of the Hardware In the Loop Simulationapplication’s needs.According to the characteristics of graphic modeling, this thesis deeply analyzedand researched YHSIM-based graphic modeling on the basis of comprehensive analysisof related technologies. Major work and innovation includes:1)According to the characteristics of YHSIM simulation language, this thesisproposes a component construction scheme based on YHSIM’s block. The schemefollowes the division basis of component scale and the design basis of component. Thecomponents’ function is independent, and the components’ reusability is high. It cankeep the YHSIM language’s advantage in modeling and meet the needs of graphicmodeling. Meanwhile, in order to simplify modeling, this thesis proposes a set ofscheme visual representation of component–including a set of graphic elements andcomponent description file format definition. The scheme can resolve the problem in thevisual description of component, and can provide a great convenience for the users tobuild simulation model2)Because the simulation language YHSIM has special program conventions, itmade the piecewise function contain differential equations must be programming in theregion block and dynamic block in the same time. Most users find it difficult to thisproblem. To solve this problem, through the research the piecewise function’s type andthe piecewise function program method using YHSIM, this thesis proposes a piecewisefunction’ component building method based on subcomponent and interface–divide thedifferent types of piecewise function component into subcomponents, define constraint between subcomponents, build the correct connection between the subcomponents usingthe association algorithm. The method guaranteed the integrity of the piecewise functioncomponent and vivid divided the piecewise function component into various blocks. Itcan solve the difficult of programming for piecewise function. It can also realize codeautomatically generated and the code location correctly placed.3)A component model builded by the graphic modeling environment isessentially a description file, can not be used in YHSIM simulation environment directly.And therefore, it is a key step to parse the description file to model code that suitable forYHSIM simulation environment. In response to this demand, this thesis proposes acomponent model automatically generate code based on template–create template, andmap the description file to corresponding source code. It realized the mapping from thecomponent to the code. At the same time, in order to transform the modified code to thecorresponding component properties, this thesis proposes a code parse method based onnote and “dirty” tag. The method realized the mapping from the code to the component.The use of the two methods achieved the consistency association of component andcode. It can help to reduce the emerges of human error, and can improve the efficiencyof modeling development.Based on the above research results, the thesis designed and implemented aYHSIM-based graphic modeling framework. Using this framework, the users can usethe graphic element component to build simulation model vividly and intuitively, it canautomatically generate the model code conformed the simulation language YHSIM’sstandard. The tests shows that this framework has an intuitive and easy-to-used visualinterface that helps users to quickly build a simulation model, to generate the modelcode, to simplify the modeling’ difficulty, to improve the quality of modeling, to meetthe current users’ demand for graphic modeling technology.
Keywords/Search Tags:Hardware In the Loop Simulation (HILS), YHSIM, GraphicModeling, Piecewise Function, Generating the code automatically
PDF Full Text Request
Related items