Customer SolutionsITK Engineering Converts Car Suspension Models Developed in the The MathWorks, Inc. Simulink® Software Environment Using the NI LabVIEW Simulation Module
Author(s):Helmuth Stahl, ITK Engineering
Industry:Automotive
Product:LabVIEW, LabVIEW Simulation Module
The Challenge:Translating models developed in The MathWorks, Inc. Simulink® Software Environment from a car suspension system to the National Instruments LabVIEW Simulation Module.
The Solution:Using the Simulation Translator and powerful NI LabVIEW visualization capabilities as part of the model-structure conversion process.
The Need for LabVIEW Integration The motion equations for this quarter vehicle have been described by a set of coupled differential equations. For the wheel/tire- and chassis-related forces, linear and nonlinear (cubic) dependencies were taken. Within the next steps, these equations got modeled in the Simulink environment. The model contains standard Simulink blocks that we arranged at two hierarchy levels. We implemented the differential equations mentioned above inside two chassis element subsystems. We used fixed values for the suspension system characteristic values, such as masses and spring constants. Based on the actual parameterization, the simulation showed the suspension dynamics when the chassis was impacted at the top by a constant force for a user-defined period of time. The simulation results depicted the behavior over time of the chassis and wheel/tire positions and the corresponding vertical velocities. Due to the parameters we chose, damped oscillating transitions occurred right after the start and end of the force impact. Simulation Model Conversion We found it beneficial to deactivate the Simulink subsytem library links before starting the conversion process. As a result, all subsystems were directly located in the main model. This avoided potential path and access problems right from the beginning. Then we activated the Simulation Translator, which is integrated in the LabVIEW Simulation Module. After we pressed the translate button, the system automatically processed the conversion and generated the corresponding LabVIEW model. During the conversion process, the system built a warning list. It provided hints about blocks or subsystems that required some postprocessing. Using the suspension model described above as an example, some typical postprocessing steps resulting from the Simulation Translator Version 1.0 follow:
In general, we had to do some postprocessing when the blocks in the Simulation model used specific The MathWorks, Inc. MATLAB® constants, such as “inf” or “auto”. The Simulation Translator generated corresponding warning messages, and we had to check the values inserted by the translator. The Simulation Translator offered an easy-to-use method for automatically converting existing simulation models to LabVIEW VIs. However, engineers must account for the postprocessing and verification work, which varied depending on the size and the structure of the Simulink model. Future Simulation Translator versions probably will reduce the postprocessing work. As part of the model structure conversion process, it was also important that the LabVIEW model produced the same simulation results. Beyond that, using the powerful visualization and hardware access capabilities of LabVIEW, we connected the simulation and real hardware with little additional effort. MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc. For more information, contact: Dr. Helmuth Stahl CTO ITK Engineering Lochhamer Strasse 13 82152 Martinsried / Fax: +49 89 8208 59811 E-mail: helmuth.stahl@itk-engineering.com
|

