MATLAB: MATLAB Simulink communication in real time

MATLABsimulink

Hi, In my simulink model I am reading a variable's value from MATLAB workspace. Now if I change that variable's value in workspace while simulink is running, then simulink does not get the updated value. It keeps reading the preassigned value. Is there any way by which simulink model can get updated values from MATLAB workspace in real time (without using RT licence or xPC target)
Thanks Mitesh

Best Answer

One way to tune the parameter based on a change in a variable in the MATLAB workspace is to 'update' the model while it is still simulating (Ctrl+D). What is your use case? Are you controlling the model simulation from another MATLAB script?