Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Port BusObject from 2013b to 2010BSP2

1 visualizzazione (ultimi 30 giorni)
David
David il 30 Set 2016
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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

Risposte (1)

Anusha Sridharan
Anusha Sridharan il 6 Ott 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:

Questa domanda è chiusa.

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by