View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Save Simulink Buses definition file

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 3.01 KB File ID: #37114 Version: 1.4
image thumbnail

Save Simulink Buses definition file



11 Jun 2012 (Updated )

Automatically asks whether to save the Simulink Buses definition when saving Simulink file.

| Watch this File

File Information

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).

Required Products Simulink
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
01 Mar 2013 1.3

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

19 Mar 2013 1.4

Bugfix (thanks to Ivan Smits for discovering it)

Contact us