Save Simulink Buses definition file

版本 1.4.0.0 (3.0 KB) 作者: Gijs van Oort
Automatically asks whether to save the Simulink Buses definition when saving Simulink file.
273.0 次下载
更新时间 2013/3/19

查看许可证

If you update the Buses definition in the Simulink Bus Editor, the changes will not automatically be saved when saving the Simulink document. This script detects changes in the Buses definition, and asks if you want to save the new buses definition (unconditional save is not wise; if you did a 'clear all' or if you opened another Simulink model that also contains buses, you generally do not want to save!).

Usage: Right click in the Simulink window, choose Model Properties|Callbacks. In 'PostSaveFcn' type 'UpdateCreateBusesFile' (this will run the script every time you save the Simulink file). In 'PostLoadFcn' type 'CreateBuses' (this will load the buses definition when you load the Simulink model).

引用格式

Gijs van Oort (2024). Save Simulink Buses definition file (https://www.mathworks.com/matlabcentral/fileexchange/37114-save-simulink-buses-definition-file), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Programmatic Model Editing 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.4.0.0

Bugfix (thanks to Ivan Smits for discovering it)

1.3.0.0

New version of the file, which includes better comparison of the bus definitions and a checkbox for showing all buses or differences only.

1.0.0.0