Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Port BusObject from 2013b to 2010BSP2
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Anusha Sridharan
el 6 de Oct. de 2016
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 comentarios
La pregunta está cerrada.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!