Simulink: Get Attribute in SimEvents

769 views Asked by At

Recently, "get attribute" block has been obsoleted in SimEvents: https://se.mathworks.com/help/simevents/ref/getattributeobsolete.html

The question is: how can we get an attribute value in SimEvents (using Entity Generator)? I want to use the value for plotting or more importantly use in a Simulink function.

1

There are 1 answers

0
Phil Goddard On

Those blocks were obsoleted in about R2016a.

There's a section in the doc that discusses how to Migrate Legacy SimEvent Models.

Linked off that page is a list describing how to Replace Old Blocks.

And specific to your question there is a page showing how to Connect Port Signals directly, rather than having to use the Get Attributes block.