| Simulink® | ![]() |
The capabilities of the Bus Editor are also available programatically. Some of these capabilities, like importing and exporting M-files and MAT-files, are not specific to bus objects, and are described elsewhere in the MATLAB® and Simulink® documentation. The Simulink software provides the following API functions for use specifically with bus objects (class Simulink.Bus) and bus elements (class Simulink.BusElement):
Convert a cell array containing bus information to bus objects in the base workspace
Create bus objects for blocks, optionally saving them in an M-file in a specified format
Export specified bus objects or all bus objects from the base workspace to an M-file in a specified format
In addition, when you use Simulink.SubSystem.convertToModelReference to convert an atomic subsystem to a referenced model, you can save any bus objects created during the conversion to an M-file.
![]() | Using the Bus Editor | Virtual and Nonvirtual Buses | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |