Hi Guy

You have just encountered one of the problems that sometimes comes up.
The libraries get updated but designs containing blocks from the
libraries don't. When you try to open the design later Matlab crashes.
So we are stuck with an outdated design and no way to update it :(

There are a couple of things you can do to prevent this. Firstly,
comment out the lines in your startup.m file that loads the libraries
(load_system(casper_library) and load_system(xps_library)). This may
help to make the blocks into 'Bad Links' instead of crashing Matlab. You
can then open the library as you would a .mdl file and replace the 'Bad
Links' blocks from the library. I have had limited success with this
though.

You could backdate your git repo to a time just after the design was
last updated, open the design, update blocks, save it, then check out a
newer version of the libraries etc. This may take a while.

A script in the casper_library folder (update_librefs.sh) searches for
block names in the specified model file and updates them with a more
current version. I just ran that from the command line in Linux to
update the packetiser_test.mdl file in casper_library/Tests and could
open it without Matlab crashing (try ./update_librefs.sh
Tests/packetiser_test.mdl from the command line). 

Unfortunately it seems that that particular test was unfinished as the
Test file does not look complete. So I am not sure how useful it will be
to you.

Regards
Andrew


On Tue, 2012-08-28 at 13:44 +0200, Guy kenfack wrote:
> 
>         Hi Andrew,
>         I'm writting you for this small trouble, I know that you will
>         be probably able to help me.I'm currently using the la test
>         ska-sa lib.(i've also tried with the casper-astro)
>         How can I open the file : "packetizer_test.mdl"
> 
> it is located here : " /mlib_devel_10_1/casper_library/Tests/"
> 
>  
> 
> or can you try to open it with your new casper library(ska-sa) And ,
> then try to send me the new file.
> 
> thanks,
> 



Reply via email to