|
> Hi Juan,
>
> When you say "dynamically modify", do you mean as the model is running? If so, I don't think this is possible. As far as I know, the block parameters are fixed for the duration of the simulation. However, you can parameterize the model with MATLAB variables defined in a MATLAB script and change those from a GUI in between simulation, so yes it is possible to have a generic model and change its configuration using MATLAB variables, as long as they still result in a valid mechanical configuration. I would suggest you watch the following webinar, which goes through a very similar example (synthetizing a four-bar mechanism):
>
> http://www.mathworks.com/company/events/webinars/wbnr30773.html
>
> HTH,
>
> Arnaud
Hello Arnaud,
Thank you very much for your quick response. The webminar was certainly instructive. As a clarification for my question, I want to enable the user to generate conceptual design of any mechanism. where he/she will define bodies, grounds, joints, sensors, and actuators. during this process through mouse clicks, and key board inputs graphical representations of whatever is being defined will be loaded into the workspace of the gui, simultaneously a simulink model will be generated with the same properties as the graphical representations (ie, lengths, positions, orientations). and finally through an s function simulation data will be shared by the gui and simmechanics.
As a result when i say change block parameters i mean some of the initial user inputs for some parameters might not be the ones required for a valid assembly and to satisfy all constraints. For the user should assemble the mechanism before running the simulation. So I guess to be more precise I want to know if there is something such as a built in kinematic solver that can make the necessary adjustments to avoid erroneous configurations of the assembly due to users trial and error.
thanx once again!
|