Please support hot reload with Visual Studio 2022

Visual Studio 2022 was released in November and includes hot reload support for C/C++ development. It would be great if MATLAB and Simulink S-Functions building this code using the MEX tool could use hot reload to let developers get through multiple edit/build cycles faster. Right now, to change one line of code in a mex binary after finding a bug in a Simulink S-Function, you have to stop Simulink, clear mex, make the change, run mex to build the mexw64 binary, then "update model" in Simulink to cause the mex binaries to be reloaded into the MATLAB process space, and then run your Simulink model.

1 Comment

Looking for some answers on this, can we use VS 2022 hot reload with MEX files? For simulations with a long initialization time to go from start to a point where you want to test, being able to use hot reload or hotfix would be very helpful. Any examples?

Sign in to comment.

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Asked:

on 10 Jan 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!