Hi Dave,
On Mon, Sep 23, 2013 at 6:57 PM, David MacMahon <[email protected]>wrote: > Hi, Nimish, > > As far as I know, the newer Simulink versions are (still) backwards > compatible with the .mdl file format. The .slx file format is NOT > backwards compatible with earlier versions of Simulink. The xps_library > and casper_library block libraries are therefore still in the .mdl file > format so as to be compatible with as wide a range of Simulink versions as > possible. > > Are you sure that the new Simulink requires that you save the model files > in .slx format or do they just recommend that you do that? > I was under the impression that you are required to save model files as .slx, because that is how it now stores model files by default. However, it does give an option to save them as .mdl files in a drop-down list. So, .slx format is indeed recommended, but not required. I am using .mdl for now for easy integration with CASPER related development. > > If you've upgraded your mlib_devel version, you might want to try running > "update_casper_blocks(bdroot)" with your block diagram opened. That will > (try to) replace the CASPER blocks in your model with new copies of the > blocks from the newer mlib_devel. Unfortunately, I have not been able to > make this script work for all possibilities so you might not be able to use > it, but it's certainly worth a try as it updates everything automatically > for you. If you try it and encounter problems, please let me know > (preferably via the list). > I did upgrade my mlib_devel to use the latest commit in casper-astro repository based on Andrew Marten's suggestion on another thread. I followed the procedure you have described. That seems to have worked fine. I am attaching a log here. There are several warnings before it updates the old blocks with new versions. I believe these are safe to ignore. Could you please confirm? I am able to update the diagram successfully. Thanks, Nimish > > Thanks, > Dave > > On Sep 23, 2013, at 3:22 PM, Nimish Sane wrote: > > > Hi all, > > > > We recently decided to upgrade our toolflow from 11.5 (and Matlab 2009b) > to 14.5 (and Matlab 2012b). I have followed all the instruction on the Wiki > page and had no issues in installation, etc. > > > > I now have to port my model files to be able to use with these versions. > All model files have now been changed to .slx files. As per MATLAB > documentation ( > http://www.mathworks.com/help/simulink/examples/converting-from-mdl-to-slx-model-file-format-in-a-simulink-project.htmlOR > http://www.mathworks.com/help/simulink/ug/upgrade-model-files-to-slx-and-preserve-revision-history.html), > one has to open .mdl files and save them as .slx and that should work. > > > > I am doing this and also manually replacing some yellow/green blocks > from the library (updated couple of days ago). (One question here is should > the xps_library be also changed from .mdl to .slx?) > > > > If I do routine "Update Diagram", there are errors (sometimes problems > with initialization commands, sometimes no message), and MATLAB at times > crashes with segmentation faults. > > > > Does one have experience porting old .mdl files to new .slx files (and > toolflow in general)? Does one need to do something to get this working? > > > > Thanks in advance, > > > > Nimish > > > > > > > > -- > > Nimish Sane > > > > Center for Solar-Terrestrial Research > > New Jersey Institute of Technology > > University Heights > > Newark, NJ 07102-1982 USA > > Tel: (973) 642 4958 > > Fax: (973) 596 3617 > > [email protected] > >
>> update_casper_blocks(bdroot) configuring solver for block diagram test_katadc_r2_v3... Set 'SolverType' to 'Variable-step' Set 'Solver' to 'VariableStepDiscrete' Set 'SolverMode' to 'SingleTasking' Set 'SingleTaskRateTransMsg' to 'None' Set 'InlineParams' to 'on' searching for CASPER blocks to update in test_katadc_r2_v3...Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/bram/mem/ram' : Xilinx Single Port Random Access Memory Block block (mask) does not have a parameter named 'use_rpm' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/status' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/status' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/status' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch0/status' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/bram/mem/ram' : Xilinx Single Port Random Access Memory Block block (mask) does not have a parameter named 'use_rpm' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/status' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/status' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/status' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc0_ch1/status' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/bram/mem/ram' : Xilinx Single Port Random Access Memory Block block (mask) does not have a parameter named 'use_rpm' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/status' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/status' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/status' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch0/status' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/bram/mem/ram' : Xilinx Single Port Random Access Memory Block block (mask) does not have a parameter named 'use_rpm' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/status' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/status' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/status' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/data_adc1_ch1/status' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/bram/mem/ram' : Xilinx Single Port Random Access Memory Block block (mask) does not have a parameter named 'use_rpm' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/status' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/status' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/status' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch0/status' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/bram/mem/ram' : Xilinx Single Port Random Access Memory Block block (mask) does not have a parameter named 'use_rpm' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/status' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/status' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/status' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc0_ch1/status' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/bram/mem/ram' : Xilinx Single Port Random Access Memory Block block (mask) does not have a parameter named 'use_rpm' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/ctrl' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/status' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/status' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/status' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch0/status' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/bram/mem/ram' : Xilinx Single Port Random Access Memory Block block (mask) does not have a parameter named 'use_rpm' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/ctrl' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/status' : SubSystem block (mask) does not have a parameter named 'arith_type' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/status' : SubSystem block (mask) does not have a parameter named 'bitwidth' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/status' : SubSystem block (mask) does not have a parameter named 'bin_pt' > In update_casper_blocks at 60 Warning: In instantiating linked block 'test_katadc_r2_v3/oflow_adc1_ch1/status' : SubSystem block (mask) does not have a parameter named 'gw_name' > In update_casper_blocks at 60 found 17 updating block test_katadc_r2_v3/XSG core config... updating block test_katadc_r2_v3/atten0... updating block test_katadc_r2_v3/atten1... updating block test_katadc_r2_v3/data_adc0_ch0... updating block test_katadc_r2_v3/data_adc0_ch1... updating block test_katadc_r2_v3/data_adc1_ch0... updating block test_katadc_r2_v3/data_adc1_ch1... updating block test_katadc_r2_v3/edge_detect... updating block test_katadc_r2_v3/edge_detect1... updating block test_katadc_r2_v3/en... updating block test_katadc_r2_v3/katadc... updating block test_katadc_r2_v3/katadc1... updating block test_katadc_r2_v3/oflow_adc0_ch0... updating block test_katadc_r2_v3/oflow_adc0_ch1... updating block test_katadc_r2_v3/oflow_adc1_ch0... updating block test_katadc_r2_v3/oflow_adc1_ch1... updating block test_katadc_r2_v3/trigger... done updating 17 blocks in test_katadc_r2_v3

