add state flow to simulink model

when i use following command, try to add chart to simulnik model, error happens, how to resolve this
add_block('Stateflow/Chart',...
[ModelName '/' FunctionName '/' 'ScheduleChart'],'Position',BlockPosition);

 Accepted Answer

wenchao zhang
wenchao zhang on 6 Sep 2023
use this command works:
add_block('sflib/Chart',...
[ModelName '/' FunctionName '/' 'ScheduleChart'],'Position',BlockPosition);

More Answers (0)

Categories

Products

Release

R2019a

Community Treasure Hunt

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

Start Hunting!