Closing a MDL file

  • Follow


Hello,

I need to check for some valid data before opening a mdl file. If
the data is valid, i continue and open the Simulink model, else I
must not allow the user to open the model. Will PreLoadFnc be of any
help?

Thanks in Advance,
Hari
0
Reply girirao77 (1) 3/17/2006 9:36:05 AM

Harish wrote:
> Hello,
>
> I need to check for some valid data before opening a mdl file. If
> the data is valid, i continue and open the Simulink model, else I
> must not allow the user to open the model. Will PreLoadFnc be of any
> help?
>
> Thanks in Advance,
> Hari

I don't think PreLoadFcn is what you're looking for. As I understand
PreLoadFcn callbacks will be executed after you try to open a model,
before Simulink starts loading the model. I don't know of any way to
stop the model from loading at this point.

Your best option is to create an m file that the user must call (maybe
with the model name as a parameter); then you can check for valid data
and proceed to open the model if it is valid.

HTH,
Ashish.

0
Reply ashish.sadanandan (750) 3/17/2006 10:13:58 PM


1 Replies
18 Views

(page loaded in 0.047 seconds)

Similiar Articles:











7/8/2012 10:27:58 PM


Reply: