Hi Laura, Thank you for your suggestions. I made progress with your suggestions, but there are still some problems.
I commented out the xps_library portion of my matlab startup script. Indeed, now I am able to open the tutorial 3 model file without a segfault. I see the yellow blocks show up as "bad links". I can delete them. I looked at the original .mdl file in a text editor and saw what I need to add. I addpath the xps_library area to the matlab path. This next step took me a while to figure out (maybe it is obvious to others). Inside the simulink library browser I had to go to View->Refresh Tree View (or F5) to have simulink catch the newly added xps_library. I add appropriate yellow blocks. I can save this new model file. But when I edit back the xps_library into the startup script and restart sysgen, and open the newly saved tutorial 3 file, I segfault again! So I decide it is a pain in the neck, but I can go through adding the xps_library path by hand each time to be able to open this model. So I commented out the xps_library in startup, manually addpath and refresh tree view after opening model. The model is all there now. So I want to compile the model, and I run bee_xps, and press the Run XPS button, it fails with the following message: Detected Linux OS Warning: The fourth output, VERSN, of FILEPARTS will be removed in a future release. > In fileparts at 35 In gen_xps_files at 121 In bee_xps>run_Callback at 150 In bee_xps at 82 ############################# ## System Update ## ############################# config = source: @pipeline_init_xblock config = source: @pipeline_init_xblock config = source: @pipeline_init_xblock config = source: @pipeline_init_xblock config = source: @pipeline_init_xblock Error using ==> gen_xps_files at 199 Error due to multiple causes. Any ideas? Gopal On 05/07/2012 04:12 PM, Laura Vertatschitsch wrote: > Hey Gopal, > > One thing you can try is to start matlab without loading the yellow > blocks, open the model file and add them in fresh from the library, save > and return to normal usage. > > This will require you comment out the load xps_library portion of your > matlab startup script. Start matlab, and open the desired model file. > Doing this, you may be able to see the yellow blocks show up as "bad > links" with red dashes around them. From there you can delete them, and > manually add them back in from the xps library. You may need to consult > the tutorial, or look at the original model .mdl file in a text editor, > to make sure you set the parameters appropriately. From there you > should be able to save the .mdl file, close matlab, go back to the > startup file and uncomment back to the regular usage. Hopefully it > opens up fine this time. > > If this solution works, perhaps I can write something more detailed to > the wiki page for the Tutorials. Would that be an appropriate edit for > the wiki? I think something stated on that page would help - we have > seen several new roach users encounter this issue. > > Gopal, I was also strongly advised when I started out to use 11.5 and > the stable release of the tools. This solution fixed the problem on > that setup, hopefully it does on 13 as well. > > --Laura > > On Mon, May 7, 2012 at 12:44 PM, Gopal Narayanan <go...@astro.umass.edu > <mailto:go...@astro.umass.edu>> wrote: > > Hello All, > > I am running Matlab R2011A on a 64-bit Debian Linux System. I also have > tested this issue in two other machines, one running Ubuntu (64 bit as > well), and the other running Windows XP-64 with similar results. The > Xilinx System Generator version in all cases is 13.3.4175. > > I have successfully created, compiled and programmed our ROACH board > with tutorials 1 and 2. I am able to download the tutorial model files > from the CASPER website and open Tutorials 1 and 2, and compile/simulate > them. However, when I download the r_spec_2048_103.mdl or the > r_spec_2048_105.mdl (both are tutorial 3 files) from the CASPER git > site, and open within simulink, immediately I get a segfault crash in > matlab. > > I attach the crash dump for my ubuntu machine with this. I contacted > Matlab technical support, but after looking at it, they blame Xilinx > System Generator for this problem even indicating an url that apparently > show memory leaks in sysgen: > > http://www.xilinx.com/support/answers/34287.htm > > I thought I would write to you all to find if anyone has had issues like > mine. And if you have some helpful tips to fix the issue. Alternatively, > if someone could send me an updated saved version of the tutorial 3 file > saved with a more recent system generator version, I would appreciate > it! Maybe I could try with this updated version. > > Thanks a bunch. > > Gopal > -- > Gopal Narayanan Ph #: (413) 545 0925 > <tel:%28413%29%20545%200925> > Department of Astronomy e-mail: > go...@astro.umass.edu <mailto:go...@astro.umass.edu> > University of Massachusetts Amherst MA 01003 > > -- Gopal Narayanan Ph #: (413) 545 0925 Department of Astronomy e-mail: go...@astro.umass.edu University of Massachusetts Amherst MA 01003