No BSD License  

Highlights from
simbus

from simbus by Sanjai Singh
The DataBus Blockset provides a method for manipulating signals from a vector in SIMULINK.

DataBus Blockset
DataBus Blockset

Description:

The DataBus Blockset provides a method for manipulating signals from a vector in SIMULINK. Signals can be selected, set, and changed - all by name, rather than index.

This is useful for handling multiple signals of varying lengths.

Installation:

  • Get the files for your system from our FTP site.
  • Create the directory $MATLAB\toolbox\simbus
  • Copy the distribution files to the directory $MATLAB\toolbox\simbus
  • Edit $MATLAB\matlabrc.m to include the directory $MATLAB\toolbox\simbus

Usage:

Type buslib at the MATLAB prompt to open the main block library.

Type help simbus at the MATLAB prompt for a list of available functions and a summary of the SIMULINK bus vector data structure.

The Insert Signal(s) block can be used to initialize a bus and/or insert signals into an exisiting bus. If Show bus name is not selected, the Insert Signal(s) block will output a vector of zeros which is the length of the DataBus.

Limitations:

Currently the "insert" block requires that at least one signal be selected. If no inputs are connected to the block, the block will output a vector of zeros which is the length of the DataBus.

The bus definition files must exist in the current directory.

Please direct questions and comments to:

Sanjai Singh : ssingh@mathworks.com

Contact us at files@mathworks.com