Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Port BusObject from 2013b to 2010BSP2
조회 수: 1 (최근 30일)
이전 댓글 표시
Hey i got a Busobject created in Matlab 2013B and now i want to use that in a 2010B Version but i get:
Warning: Variable 'IoInpBus' originally saved as a Simulink.Bus cannot be instantiated as an object and will be read in as a uint32. so now it does not Show up in the Buseditor anymore.
Any ideas on how to fix that ?
Kind regards David
댓글 수: 0
답변 (1개)
Anusha Sridharan
2016년 10월 6일
Due to the changes in the underlying infrastructure between releases, you cannot save bus objects (or any other data type object) in a MAT-file in R2013b and reload them in an older release.
You will have to save your bus objects to a MATLAB script or function and then execute that in an older release to recreate the bus objects.
These are some of methods you can use to do that:
1) Open the Bus Editor from the command line by typing
‘buseditor’
at the MATLAB Command Prompt.
Then go to File->Export to File and save all the bus objects in your workspace as a MATLAB file( .m). It will then ask you if you want to save it as a cell or an object. Choose object.
You can then execute this MATLAB function generated to redefine these bus objects in any release that you want to.
2) Another alternative would be to use the SIMULINK.BUS.SAVE function. You can provide the filename and format (which is object) as parameters to this function.
The following is the documentation link for this function:
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!