Unable to print image of Subsystem in Simulink model in 2016b

5 次查看(过去 30 天)
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?

采纳的回答

Fangjun Jiang
Fangjun Jiang 2020-9-2
In R2016b, it seems that the Subsystem needs to be open first. Add a line open_system() first.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Subsystems 的更多信息

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by