How to fix the compilation error "Two workspace variable refer to same simulink object"
古いコメントを表示
Invalid setting in 'PowerPointControlOutput/Power_Point_Ctrl_Output_FSM' for parameter 'IDX_VR_PP_RESET_CKT'
Caused by:
- Error evaluating properties of Simulink.Parameter object 'IDX_VR_PP_RESET_CKT' in workspace 'base' (used by block 'Power_and_Energy_lib/PowerPointControlOutput/Power_Point_Ctrl_Output_FSM')
- Model 'Power_and_Energy_Integrated_Modified' is using workspace variables 'IDX_VR_DELAYED_ACCESSORY_RELAY_CKT' and 'IDX_VR_PP_RESET_CKT' but these variables refer to the same object. Update the MATLAB code that created these objects to create separate objects. Use the copy method to copy Simulink data objects
回答 (1 件)
D Z
2021 年 10 月 5 日
0 投票
I've met the same errors too. I just recreated the parameters one by one otherthan copy from one to one on the Model Explorer,and it solved.
When i created them by copy , if change storage class one of them, all of them will change too; but create them one by one will not.
Hoping this helps
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!