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!