This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This problem has been fixed in SimDriveline 1.0.2 (R14SP2). If you are using a previous version, read the following:
We have verified that there is a bug in SimDriveline 1.0.1 (R14SP1) in the way that it handles memory after the simulation of a SimMechanics model. To work around this issue, download a revised version of the MDL-files. Here are the required steps:
1. Quit MATLAB
2. Rename the following MDL-files:
$MATLAB/toolbox/physmod/drive/drive/driveline.mdl
$MATLAB/toolbox/physmod/drive/drivedemos/drive_clutch_engage.mdl
$MATLAB/toolbox/physmod/drive/drivedemos/drive_full_car.mdl
$MATLAB/toolbox/physmod/drive/drivedemos/drive_hard_stop.mdl
$MATLAB/toolbox/physmod/drive/drivedemos/drive_sgear.mdl
$MATLAB/toolbox/physmod/drive/drivedemos/drive_simpson.mdl
$MATLAB/toolbox/physmod/drive/drivedemos/drive_spring.mdl
$MATLAB/toolbox/physmod/drive/drivedemos/drive_strans.mdl
$MATLAB/toolbox/physmod/drive/drivedemos/drive_vgear.mdl
(where $MATLAB is the MATLAB root directory on your machine, as returned by typing
at the MATLAB command prompt.)
Rename the files to filename.mdl.old
3. Download the attached files. Extract the archive file to the $MATLAB directory. The files should be placed in the same directories mentioned in step 2.
Place the fix_opaque.p file anywhere on the MATLAB path.
4. Restart MATLAB
5. After restarting MATLAB, issue the following command at the MATLAB prompt:
6. Run the command fix_opaque('<model_name>') in MATLAB on any model that you created before the change in this solution that is still displaying the problems described above. New models created with SimDriveline after replacing the files above will not exhibit the problems.
Best Answer