フィルターのクリア

How to use a global variable which has a structure format in simulink stateflow for the c code generation?

1 回表示 (過去 30 日間)
Hi,
I am trying to use similink stateflow and generate c code out of it ultimately. I would like to change a global variable within the stateflow. The issue is that this global variable is in a structure format. For example let's say i would like to change the value for PWM.Duty = 10. where PWM is the structure and Duty is a member within that structure. How can I achieve this? is there a way to give a customized name within a stateflow which has a sturcuture format when the code is generated? otherwise I will need to modify the names after the code is generated which is a big task.
Thanks,
Kamyar

回答 (0 件)

カテゴリ

Help Center および File ExchangeStateflow についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by