From: Marno on
Hi,

I'm trying to generate a .dll from a SimMechanics vehicle model. This works, but now I want to use the .dll standalone on a computer without Matlab Simulink/SimMechanics. I want to change the parameters in the .dll, just by changing some values in a .txt file which will be imported by the .dll.

I found that it is really hard to change the parameters of the SimMechanics blocks, such as mass and inertia. I don't want to change them during the simulation. Only before init. I found the following link just to study the mechanism for a simple model:

http://www.mathworks.com/access/helpdesk/help/toolbox/physmod/mech/ug/f14-47882.html

I tried to implement the code, but without succes. Does anybody has the source code of the mech_dpen demo including the example code???? I need to know how you can implement the code, so I can use this sequence for much larger models.

Thanks in advance!

Marno