Code covered by the BSD License  

Highlights from
Save Simulink Buses definition file

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

Save Simulink Buses definition file

by

 

11 Jun 2012 (Updated )

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

| Watch this File

File Information
Description

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.
Updates
01 Mar 2013

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

Bugfix (thanks to Ivan Smits for discovering it)

Contact us