For Programmers: Free Programming Magazines  


Home > Archive > Matlab > April 2005 > Delinking .dlls in Simulink









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Delinking .dlls in Simulink
Reshma

2005-04-21, 9:00 am

This is regarding Simulink S-functions. I have created few basic
simulink blocks using C-mex S- functions. The simulation runs fine
but after I run the simulation the underlying S-function .dlls get
linked to the model. However after that I'm not able to modify the
dlls as it stays linked till I close the model. How do I free/unload
the dlls moment the simulation is over.
Thanks in Advance
Regards
Reshma
Steve Amphlett

2005-04-21, 9:00 am

Reshma wrote:
>
>
> This is regarding Simulink S-functions. I have created few basic
> simulink blocks using C-mex S- functions. The simulation runs fine
> but after I run the simulation the underlying S-function .dlls get
> linked to the model. However after that I'm not able to modify the
> dlls as it stays linked till I close the model. How do I
> free/unload
> the dlls moment the simulation is over.
> Thanks in Advance
> Regards
> Reshma


Set your StopFcn callback to something like 'clear mex'. This will
clear all DLLs each time your model stops.

See: <http://www.mathworks.com/access/hel...link/ug/ug.html>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com