Unable to print image of Subsystem in Simulink model in 2016b
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Ruhi Phulbandhe
il 2 Set 2020
Commentato: Ruhi Phulbandhe
il 8 Set 2020
The command:
print('-sBatteryEmulator','-dbitmap','ModelName')
is giving an error :Attempt to call a method on an empty value
This command works well in 2020 and 2019 but gives the error in 2016b
I am attaching the model image for reference ,here BatteryEmulator is the subsystem whose image I want to generate ,but I am unable to generate the image of what's inside subsystem in 2016b.
can you please tell me why it is not working in 2016b?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/355211/image.bmp)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/355211/image.bmp)
0 Commenti
Risposta accettata
Fangjun Jiang
il 2 Set 2020
In R2016b, it seems that the Subsystem needs to be open first. Add a line open_system() first.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Subsystems in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!