slreplace_mux

Replace Mux blocks used to create buses with Bus Creator blocks

Syntax

[muxes, uniqueMuxes, uniqueBds] = slreplace_mux(model, 
reportonly)

Description

slreplace_mux(model) or slreplace_mux(model, true) reports all Mux blocks that create buses in model and in libraries referenced by model.

A signal created by a Mux block is a bus if the signal meets either or both of the following conditions:

slreplace_mux(model, false) replaces all Mux blocks in model that create buses, including Mux blocks in libraries, with Bus Creator blocks. This command saves the model, if changed, and saves and closes any library that it modifies.

[muxes, uniqueMuxes, uniqueBds] = slreplace_mux(model) returns the following output variables:

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS