Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
slref.pdf
Скачиваний:
39
Добавлен:
26.03.2015
Размер:
16.01 Mб
Скачать

3

Function Reference

Model Construction (p. 3-2)

Model construction functions

Simulation (p. 3-7)

Simulation functions

Linearization and Trimming (p. 3-10)

Linearization and trimming

 

functions

Data Type (p. 3-11)

Data type functions

3 Function Reference

Model Construction

addterms

add_block add_line add_param attachConfigSet

attachConfigSetCopy

Add terminators to unconnected ports in model

Add block to model

Add line to Simulink system

Add parameter to Simulink system

Associate configuration set or configuration reference with model

Copy configuration set or configuration reference and associate it with model

bdclose

Close any or all Simulink system

 

windows unconditionally

bdIsLoaded

Whether block diagram is in memory

bdroot

Return name of top-level Simulink

 

system

closeDialog

Close configuration parameters

 

dialog

close_system

Close Simulink system window or

 

block dialog box

delete_block delete_line delete_param

Delete block from Simulink system Delete line from Simulink system

Delete system parameter added via add_param command

dependencies.fileDependencyAnalysisFind model file dependencies

dependencies.toolboxDependencyAnalysisFind toolbox dependencies

detachConfigSet

Dissociate configuration set or

 

configuration reference from model

disableimplicitsignalresolution Convert model to use only explicit signal resolution

3-2

Model Construction

docblock

find_mdlrefs

find_system

gcb gcbh gcs

getActiveConfigSet

getCallbackAnnotation getConfigSet

getConfigSets

getfullname getVariable get_param

hasVariable

hilite_system intersect

legacy_code libinfo

load_system

Get or set editor invoked by Simulink DocBlock

Find Model blocks and referenced models at all levels or at top level only

Find systems, blocks, lines, ports, and annotations

Get pathname of current block Get handle of current block

Get pathname of current system

Get model’s active configuration set or configuration reference

Get information about annotation

Get one of model’s configuration sets or configuration references

Get names of all of model’s configuration sets or configuration references

Get pathname of block or line

Get value of variable from workspace

Get system and block parameter values

Determine if variable exists in workspace

Highlight Simulink object Returns intersection of two vectors

of Simulink.VariableUsage objects Use Legacy Code Tool

Get information about library blocks referenced by model

Invisibly load Simulink model

3-3

3 Function Reference

modeladvisor

Open Model Advisor

new_system

Create empty Simulink system

openDialog

Open configuration parameters

 

dialog

open_system

Open Simulink system window or

 

block dialog box

replace_block

Replace blocks in Simulink model

save_system

Save Simulink system

setActiveConfigSet

Specify model’s active configuration

 

set or configuration reference

setdiff

set_param

Returns difference between two

vectors of Simulink.VariableUsage objects

Set Simulink system and block parameter values

signalbuilder

Create and access Signal Builder

 

blocks

simulink

Open Simulink block library

Simulink.BlockDiagram.addBusToVectorAdd Bus to Vector blocks to convert virtual bus signals into vector signals

Simulink.BlockDiagram.copyContentsToSubSystemCopy contents of block diagram to empty subsystem

Simulink.BlockDiagram.createSubSystemCreate subsystem containing specified set of blocks

Simulink.BlockDiagram.deleteContentsDelete contents of block diagram

Simulink.BlockDiagram.loadActiveConfigSetLoad, associate, and activate configuration set with model

Simulink.BlockDiagram.saveActiveConfigSetSave active configuration set of model

Simulink.Bus.cellToObject

Convert cell array containing bus

 

information to bus objects

3-4

Model Construction

Simulink.Bus.createMATLABStruct Create MATLAB structure with same shape and attributes as bus signal

Simulink.Bus.createObject

Create bus objects for blocks

Simulink.Bus.objectToCell

Convert bus objects to cell array

 

containing bus information

Simulink.Bus.save

Save bus objects in MATLAB file

Simulink.findVars

Returns information about

 

workspace variables used or

 

not used by models and blocks.

Simulink.saveVars

Save workspace variables and their

 

values in MATLAB code format

Simulink.SoftwareTarget.concurrentExecutionCreate configuration for concurrent execution

Simulink.SubSystem.convertToModelReferenceConvert atomic subsystem or function call subsystem to model reference

Simulink.SubSystem.copyContentsToBlockDiagramCopy contents of subsystem to empty block diagram

Simulink.SubSystem.deleteContentsDelete contents of subsystem

simulinkproject

Open Simulink Project Tool

slCharacterEncoding

Change MATLAB character set

 

encoding

sldiscmdl

Discretize model that contains

 

continuous blocks

slIsFileChangedOnDisk

Determine whether model has

 

changed since it was loaded

slmdldiscui slreplace_mux

slupdate

Open Model Discretizer GUI

Replace Mux blocks used to create buses with Bus Creator blocks

Replace blocks from previous releases with latest versions

3-5

3 Function Reference

upgradeadvisor

Open Upgrade Advisor

view_mdlrefs

Display graph of model reference

 

dependencies

3-6

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]