These tools help you build a Simscape Multibody Second Generation (2G) model that provides the same behavior as your Simscape Multibody First Generation (1G) model. MATLAB code scans your 1G model, automatically converts as many of the 1G blocks as it can, and provides diagnostics indicating which 1G conventions need to be modified in order for the model to be compatible with 2G modeling conventions. You can then assemble the automatically created 2G blocks into a model that behaves as the original 1G model.
Please read the README.txt file and the PDF file to get started. The PDF file explains the conversion process enabled by this tool, the diagnostics messages, and guides you through a tutorial exercise to help you get started converting your model. This tool works for MATLAB releases R2013a and higher.
See how to use Simscape Multibody to model a cam-follower mechanism:
Learn more about multibody simulation with Simscape Multibody by watching this webinar
Find other Simscape examples by searching posts for the keyword "physical modeling"
Learn more about MathWorks Simscape Products:
Steve Miller (2020). Simscape Multibody 1G Conversion Assistant (https://www.mathworks.com/matlabcentral/fileexchange/62763-simscape-multibody-1g-conversion-assistant), MATLAB Central File Exchange. Retrieved .
It does not seem to work correctly. Running the tutorial produces errors as follows:
*** Creating Body Body A
Error using createSM2GBodies (line 102)
There is no block named 'sm_lib/Body Elements/Solid'
Error in convertSM1G2G (line 85)
num_bdy_warn = createSM2GBodies(body_param,Dst_mdl);
Error in SM1G_Conversion_Assistant_UI>Run_pushbutton_Callback (line
Error in gui_mainfcn (line 95)
Error in SM1G_Conversion_Assistant_UI (line 44)
- Show complete stack trace
Error while evaluating UIControl Callback.
Hi Thanh - I'm not sure what your comment means. If you change the model and press update diagram (CTRL-D), the Mechanics Explorer will update and reflect your changes.
the new version does not support live update mechanics explorer from model's change
Added examples saved for use in R2019a.
Added examples saved for use in R2018b.
Added examples saved in R2018a.
Added test files for R2017b.
Minor update to description.