Tuesday, March 19, 2024
HomeMatlabWhat’s New in Simulink R2023a? » Man on Simulink

What’s New in Simulink R2023a? » Man on Simulink


Every new launch, I’m at all times excited to share my favourite new Simulink options. As Simulink and our modeling and simulation applied sciences proceed to mature, I’m noticing that my launch highlights have gotten extra geared towards workflows than single options – and that is thrilling!

Right here is my high three for what’s new in Simulink R2023a.

Simulink Debugger

In R2023a, we lastly retired the previous Simulink Debugger. To interchange it, we’re introducing the potential to step block by block within the Simulink canvas. I plan to comply with up with a weblog put up devoted to this, however right here is an animation to offer you an thought of what this new function appears to be like like. What you will notice:
  • I added a breakpoint for the simulation to interrupt when the output of the Sum block is larger than or equal to zero.
  • I enabled the brand new choice “Pause inside time step” to permit block-by-block stepping.
  • I enabled Port Worth Show for many indicators within the mannequin. (For that, hit Ctrl+A to Choose All and click on on “Present port worth show label on chosen indicators” within the toolstrip)
  • The Step In button permits to step inside MATLAB Perform blocks and Stateflow charts seamlessly.
  • Additionally it is potential to step block-by-block in Iterator Subsystems.

Variant Meeting Subsystem

This function was launched in MATLAB R2022b, however I made a decision to attend earlier than highlighting it as a result of we added enhancements making it extra helpful in R2023a.

The important thing benefit of the Variant Meeting Subsystem is that it allows you to add or take away variant selections with out modifying the mannequin. All you need to do is specify a listing of Subsystem or Mannequin information to be included as variant selections. This may be carried out in two methods.

Possibility 1: Label mode

When the variant management mode is about to Label, the listing of variant selections is specified utilizing the Variant selections specifier discipline. On this discipline, you possibly can sort something that can be evaluated as a cell array of strings, the place every string is the identify of a mannequin on the MATLAB path:

With the mannequin configured as within the above screenshot, if I used to be to obtain a brand new Subsystem or Mannequin, I might merely place it within the folder Controller_subsystem_choices and it could mechanically turn out to be a brand new out there variant selection.

Possibility 2: Expression Mode

When the variant management mode is about to Expression, the listing of variant selections is specified by an enumeration, the place every member is the identify of a mannequin on the MATLAB path.

the place the enumeration is outlined as:

As it’s the case for the Variant Subsystem, expression mode permits the Variant Meeting Subsystem to help all of the activation occasions.

Show of Parameter Values in Simscape blocks

Now it is your flip

Take a look on the R2023a launch notes and tell us within the feedback under which R2023a options you want to see lined on this weblog.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments