Beruflich Dokumente
Kultur Dokumente
ADAMS/Car RealTime
The information in this document is furnished for informational use only, may be revised from time to time, and
should not be construed as a commitment by MSC.Software Corporation. MSC.Software Corporation assumes no
responsibility or liability for any errors or inaccuracies that may appear in this document.
Copyright Information
This document contains proprietary and copyrighted information. MSC.Software Corporation permits licensees of
MSC.ADAMS® to print out or copy this document or portions thereof solely for internal use in connection with the
licensed software. No part of this document may be copied for any other purpose or distributed or translated into any
other language without the prior written permission of MSC.Software Corporation.
Copyright © 2005 MSC.Software Corporation. All rights reserved. Printed in the United States of America.
Trademarks
ADAMS, EASY5, MSC, MSC., MSC.ADAMS, MSC.EASY5, and all product names in the MSC.ADAMS Product
Line are trademarks or registered trademarks of MSC.Software Corporation and/or its subsidiaries.
NASTRAN is a registered trademark of the National Aeronautics Space Administration. MSC.Nastran is an enhanced
proprietary version developed and maintained by MSC.Software Corporation.
Government Use
Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in FAR 12.212
(Commercial Computer Software) and DFARS 227.7202 (Commercial Computer Software and Commercial
Computer Software Documentation), as applicable.
1 Introducing ADAMS/Car RealTime
Overview
ADAMS/Car RealTime is primarily a simplified vehicle model,
containing only 14 degrees-of-freedom, which you can execute
faster than real-time. This section introduces you to the basics of
ADAMS/Car RealTime and tutorials in the later chapters:
■ ADAMS/Car RealTime Vehicle Model, 4
Standalone Tutorial
The standalone tutorial teaches you how to run ADAMS/Car RealTime Standalone Basic.
In the tutorial, you will:
■ Review model data.
■ Run a standalone test (simulation) of the model that drives the vehicle in a
100 (m) radius circle with a speed profile that varies from 20 to 26 (m/s).
■ View animations and plots in ADAMS/PostProcessor.
■ Run a MATLAB/Simulink Simulation.
■ View results in MATLAB/Simulink scopes and as animations and plots.
Embedded Tutorial
In the embedded tutorial, you will use the embedded configuration, which is a plug-in to
ADAMS/Car that lets you extract parameters from ADAMS/Car models for use in
ADAMS/Car RealTime.
Getting Started Using ADAMS/Car RealTime
6 Introducing ADAMS/Car RealTime
2 Using Standalone ADAMS/Car RealTime
Overview
The following tutorial teaches you how to run ADAMS/Car
RealTime in standalone mode. In the tutorial, you will learn the
basics for:
■ Starting ADAMS/Car RealTime, 8
■ Loading and Reviewing the Vehicle Model, 9
■ Testing the Model, 10
■ Reviewing the Model in ADAMS/PostProcessor, 12
■ Simulating the Model Using MATLAB/Simulink Solver, 15
Getting Started Using ADAMS/Car RealTime
8 Using Standalone ADAMS/Car RealTime
1 At the command prompt, enter the command to start the MSC.ADAMS Toolbar,
and then select Enter. The standard command that MSC provides is adamsx, where x
is the version number, for example adams05r2.
The MSC.ADAMS Toolbar appears.
Tip: You can also use the ADAMS/Car RealTime tool from your desktop if it
was installed.
The ADAMS/Car RealTime window appears as shown on the next page. The
default mode is Build, with no model loaded. If you have used ADAMS/Chassis,
the user interface should look very familiar to you.
Getting Started Using ADAMS/Car RealTime
Using Standalone ADAMS/Car RealTime 9
1 If not already selected, from the Main toolbar, select the Build Mode tool .
4 In the main pane of the dialog box, double-click the file MDI_Demo_Vehicle.xml.
The model loads.
Getting Started Using ADAMS/Car RealTime
10 Using Standalone ADAMS/Car RealTime
5 In treeview, select its various model subsystems to see the model data and get an
idea of the model’s complexity.
You will see that it is significantly simpler than ADAMS/Car and ADAMS/Chassis
models. It still captures, however, the essential handling, braking, and acceleration
behavior of a four-wheeled vehicle.You will also see that the property files for
components, such as springs, dampers, and tires, are the same as those used in
ADAMS/Car and ADAMS/Chassis.
1 Switch from Build mode to Test mode by selecting the Test Mode tool on the
Main toolbar.
2 On the left side of the window, in the treeview, click the plus sign (+) in front of the
Events folder to expand it and see all of the events in ADAMS/Car RealTime. This
area of the treeview is called the bookshelf because, like a shelf of books, it
contains all the events or results in ADAMS/Car RealTime.
3 Double-click DrivingMachine.
A new fingerprint appears in the lower portion of the treeview, called the
fingerprint tree. The property editor on the right shows the details of the fingerprint.
The default name for the event is MDI_Demo_Vehicle_dm, where dm stands for
Getting Started Using ADAMS/Car RealTime
Using Standalone ADAMS/Car RealTime 11
Driving Machine). Because only one model has been loaded, the event editor
automatically chose that model to be used for the simulation (the one you loaded in
Build mode). You can change the name of the event by editing the value in the
Name text box in the event property editor and selecting Return.
You need to select a Driving Machine file to specify what maneuver the vehicle
will undergo, which we’ve provided.
4 Select the Open File tool to the right of the Driving Machine file text box.
The run window appears and you see a status bar that tracks the simulation
progress. When the run is done and you are finished looking at the messages, close
the run window and return to ADAMS/Car RealTime.
Getting Started Using ADAMS/Car RealTime
12 Using Standalone ADAMS/Car RealTime
To start ADAMS/PostProcessor:
1 Switch from Test mode to Review mode by selecting the Review Mode tool on
the Main toolbar.
2 In the lower-left portion of the treeview, select MDI_Demo_Vehicle_dm from
fingerprint_1.
Figure 2. ADAMS/PostProcessor
Menu toolbar
Page
Treeview
Property editor
Dashboard
Status toolbar
4 In the dashboard, in the Animation tab, right-click the Trace Marker text box. Point
to Marker, and then select Browse.
The ADAMS/View Database Navigator appears.
5 In the Database Navigator, beneath MDI_Demo_Vehicle, select ges_chassis/cm. This
places the ges_chassis.cm marker into the Trace Marker text box.
9 Select OK.
An empty viewport appears.
10 In the dashboard, set Source to Result Sets.
The MDI_Demo_Vehicle appears in the Simulation list and is selected. (Select it if it
is not selected.)
11 To plot results:
a. From the Result Set list, select Vehicle.
b. From the Component pane, select CM_Tracking_Ay.
c. Select Surf. You should see a plot of the lateral acceleration of the vehicle-
sprung-mass mass center versus time.
12 Make other plots. When you are finished, exit ADAMS/Postprocessor.
ADAMS/View appears.
13 Exit ADAMS/View.
14 Return to ADAMS/Car RealTime.
Getting Started Using ADAMS/Car RealTime
Using Standalone ADAMS/Car RealTime 15
The ADAMS/Car RealTime GUI is now broadcasting data over a socket to be received
by the Simulink S-function version of the vehicle-model solver program. It will remain in
broadcast mode until the window is closed.
ADAMS/Car RealTime waits to talk to MATLAB/Simulink and pass the vehicle
model and event data to the MATLAB/Simulink version of the real-time solver. Do
not terminate this shell window.
3 Start MATLAB/Simulink. (Double-click the MDL file
\TOPDIR\acarrt\examples\Simulink\abs_control.mdl. This launches MATLAB/Simulink
and sets the working directory to be the one that contains abs_control.mdl.)
4 Set your MATLAB path to include the path to the DLL for the vehicle model. The
DLL is located in the /acarrt/platform folder of your MSC.ADAMS installation,
where platform is either rh_linux or win32. For example, on Windows, if you
installed MSC.ADAMS using the default settings of the installer, you would set
the path to:
path(path, 'C:\MSC.Software\MSC.ADAMS\2005\acarrt\win32')
5 Open abs_control.mdl, either:
■ Type abs_control <enter> in the MATLAB command window.
■ Double-click abs_control.mdl in the Current Directory tab.
6 Select the Start simulation button in the toolbar of the MDL window.
The simulation starts and ends soon afterwards.
Getting Started Using ADAMS/Car RealTime
Using Standalone ADAMS/Car RealTime 17
1 Terminate the ADAMS/Car RealTime run window and return to the interface.
2 Switch back to Review Mode.
3 Select the MDI_Demo_Vehicle_dm result in fingerprint_1.
4 Launch ADAMS/PostProcessor and view the animation. (A trace marker does not
help much for this simulation run.)
Next Step
You have now learned the basics of using the standalone configuration of ADAMS/Car
RealTime. Exit ADAMS/Car RealTime or continue with the next tutorial.
Getting Started Using ADAMS/Car RealTime
18 Using Standalone ADAMS/Car RealTime
3 Using Embedded ADAMS/RealTime
Overview
As explained earlier, ADAMS/Car RealTime is available as two
different configurations: standalone and embedded. In this tutorial,
you use the plugin for ADAMS/Car that extracts parameters from
ADAMS/Car models for use in ADAMS/Car RealTime, letting you
use a validated ADAMS/Car model in the real-time context.
■ Starting ADAMS/Car and the ADAMS/Car RealTime
Embedded, 20
■ Loading an Assembly, 21
■ Extracting Parameters, 21
Getting Started Using ADAMS/RealTime
20 Using Embedded ADAMS/RealTime
3 In the list of plugin names, find ADAMS/Car RealTime, and then select Load.
4 Select OK.
ADAMS/Car loads ADAMS/Car RealTime. The interface now includes a new
menu, RealTime.
Getting Started Using ADAMS/RealTime
Using Embedded ADAMS/RealTime 21
Loading an Assembly
Before using the ADAMS/Car RealTime plugin, you must have an ADAMS/Car model
loaded, from which to extract the parameters.
To load an assembly:
1 From the File menu, point to Open, and then select Assembly.
The Open Assembly dialog box appears.
2 Right-click the Assembly Name text box, point to Search, and then select
<acarrt_shared>/assemblies.tbl.
The Select File dialog box appears, displaying the folder assemblies.tbl.
3 Double-click MDI_Demo_Vehicle.asy.
The Open Assembly dialog box returns.
4 Select OK.
The model loads. It will take a few seconds.
Extracting Parameters
To extract parameters:
5 Leave all other settings at their default values, and then select OK.
The Message window appears, with warnings that you can ignore. ADAMS/Car
RealTime embedded is deriving the real-time model parameters. You may need to
select OK occasionally when it indicates the settings it uses.
When the parameter derivation is complete, ADAMS/Car RealTime appears.
6 Select Build Mode (if not already there), and then open a model from the
<private>/systems.tbl database. You should see a model with the name test_model.xml.
Select it to load it into ADAMS/Car RealTime.
7 You can now run real-time simulations with parameters extracted from the
ADAMS/Car model, as you did in the first tutorial.