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 Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!