Using Simulink    

ブロック固有のパラメータ

つぎの表には、すべてのSimulinkブロックに対するブロック固有のパラメータをリストしています。set_param コマンドでブロックパラメータを設定する際には、BlockType パラメータを指定することによってブロックを識別します。BlockType は、ブロック名の後の括弧の中に表示されます。

表には、マスクされたブロックに対する MaskType パラメータ値が含まれていますが、詳細情報は組み込みブロックに対するもののみで、マスクされたブロックに対するものは含まれていません。詳細については、マスクパラメータ を参照してください。

ダイアログボックスプロンプト の欄には、ブロックのダイアログボックス上のパラメータに対するプロンプトのテキストが示してあります。 の欄には、必要な値のタイプ(スカラ、ベクトル、変数)、(垂直バーで区切った)設定可能な値、および(中括弧で囲んだ)デフォルト値が示してあります。

Sourcesライブラリブロックパラメータ 

ブロック(BlockType)/パラメータ
ダイアログボックスプロンプト

Band-Limited White Noise (Continuous White Noise) (マスクされた)

Chirp Signal (chirp) (masked)


Clock (Clock) (no block-specific parameters)


Constant (Constant)


   Value

Constant value

スカラまたはベクトル {1}

Digital Clock (DigitalClock)


   SampleTime

Sample time

スカラ(サンプル周期) {1}
またはベクトル [period offset]

Digital Pulse Generator


From File (FromFile)


   FileName

Filename

ファイル名 {untitled.mat}

From Workspace (FromWorkspace)


   VariableName

Matrix table

行列 {[T,U]}

Pulse Generator (Pulse Generator) (masked)


Ramp (Ramp) (masked)


Random Number (RandomNumber)


   Seed

Initial seed

スカラまたはベクトル {0}

Repeating Sequence (Repeating table) (masked)


Signal Generator (SignalGenerator)


   WaveForm

Wave form

{sine} | square | sawtooth | random

   Amplitude

Amplitude

スカラまたはベクトル {1}

   Frequency

Frequency

スカラまたはベクトル{1}

   Units

Units

{Hertz} | rad/sec

Sine Wave (Sin)


   Amplitude

Amplitude

スカラまたはベクトル {1}

   Frequency

Frequency

スカラまたはベクトル {1}

   Phase

Phase

スカラまたはベクトル {0}

   SampleTime

Sample time

スカラ (サンプル周期) {-1}
またはベクトル [period offset]

Step (Step)


   Time

Step time

スカラまたはベクトル {1}

   Before

Initial value

スカラまたはベクトル {0}

   After

Final value

スカラまたはベクトル {1}

Uniform Random Number (Uniform RandomNumber)

Minimum

Minimum

スカラまたはベクトル {-1}

Maximum

Maximum

スカラまたはベクトル {1}

Seed

Initial Seed

スカラまたはベクトル {0}

SampleTime

Sample Time

スカラまたはベクトル {0}

Sinksライブラリブロックパラメータ 

ブロック(BlockType)/パラメータ
ダイアログボックスプロンプト

Display (Display)


   Format

Format

{short} | long | short_e | long_e | bank

   Decimation

Decimation

スカラ {1}

   Floating

Floating display

{off} on

   SampleTime

Sample time

スカラ (サンプル周期) {-1}
またはベクトル [period offset]

Scope (Scope)


   Location

Position of Scope window on screen

ベクトル {[left top right bottom]}

   Open

(If Scope open when the model is opened. Cannot set from dialog box)

{off} | on

   NumInputPorts

Number of Axes

正の整数 > 0

   TickLabels

Hide tick labels

{on} | off

   ZoomMode

(Zoom button initially pressed)

{on} | xonly | yonly

   AxesTitles

Title (on right click axes)

スカラ {auto}

   Grid

(for future use)

{on} | off

   TimeRange

Time range

スカラ {auto}

   YMin

Y min

スカラ {-5}

   YMax

Y max

スカラ {5}

   SaveToWorkspace

Save data to workspace

{off} | on

   SaveName

Variable name

変数 {ScopeData}

   DataFormat

Format

{matrix | structure}

   LimitMaxRows

Limit rows to last

{on} | off

   MaxRows

(no label)

スカラ {5000}

   Decimation

(Value if Decimation selected)

スカラ {1}

   SampleInput

(Toggles with Decimation)

{off} | on

   SampleTime

(SampleInput value)

スカラ (サンプル周期) {0}
またはベクトル [period offset]

Stop Simulation (StopSimulation) (no block-specific parameters)

To File (ToFile)


   Filename

Filename

ファイル名 {untitled.mat}

   MatrixName

Variable name

変数 {ans}

   Decimation

Decimation

スカラ {1}

   SampleTime

Sample time

スカラ (サンプル周期) {-1}
またはベクトル [period offset]

To Workspace (ToWorkspace)


   VariableName

Variable name

変数 {simout}

   Buffer

Maximum number of rows

スカラ {inf}

   Decimation

Decimation

スカラ {1}

   SampleTime

Sample time

スカラ (サンプル周期) {-1}
またはベクトル [period offset]

XY Graph (XY scope.) (masked)


Discreteライブラリブロックパラメータ 

ブロック(BlockType)/パラメータ
ダイアログボックスプロンプト

Discrete Filter (DiscreteFilter)


   Numerator

Numerator

ベクトル {[1]}

   Denominator

Denominator

ベクトル {[1 2]}

   SampleTime

Sample time

スカラ (サンプル周期) {1}
またはベクトル [period offset]

Discrete State-Space (DiscreteStateSpace)


   A

A

行列 {1}

   B

B

行列 {1}

   C

C

行列 {1}

   D

D

行列 {1}

   X0

Initial conditions

ベクトル {0}

   SampleTime

Sample time

スカラ (サンプル周期) {1}
またはベクトル [period offset]

Discrete-Time Integrator (DiscreteIntegrator)


   IntegratorMethod

Integrator method

{ForwardEuler} | BackwardEuler | Trapezoidal

   ExternalReset

External reset

{none} | rising | falling | either

   InitialConditionSource

Initial condition source

{internal} | external

   InitialCondition

Initial condition

スカラまたはベクトル {0}

   LimitOutput

Limit output

{off} | on

   UpperSaturationLimit

Upper saturation limit

スカラまたはベクトル {inf}

   LowerSaturationLimit

Lower saturation limit

スカラまたはベクトル {-inf}

   ShowSaturationPort

Show saturation port

{off} | on

   ShowStatePort

Show state port

{off} | on

   SampleTime

Sample time

スカラ (サンプル周期) {1}
またはベクトル [period offset]

Discrete Transfer Fcn (DiscreteTransferFcn)


   Numerator

Numerator

ベクトル {[1]}

   Denominator

Denominator

ベクトル {[1 0.5]}

   SampleTime

Sample time

スカラ (サンプル周期) {1}
またはベクトル [period offset]

Discrete Zero-Pole (DiscreteZeroPole)


   Zeros

Zeros

ベクトル {[1]}

   Poles

Poles

ベクトル [0 0.5]

   Gain

Gain

スカラ {1}

   SampleTime

Sample time

スカラ (サンプル周期) {1}
またはベクトル [period offset]

First-Order Hold (First Order Hold) (masked)


Unit Delay (UnitDelay)


   X0

Initial condition

スカラまたはベクトル {0}

   SampleTime

Sample time

スカラ (サンプル周期) {1}
またはベクトル [period offset]

Zero-Order Hold (ZeroOrderHold)


   SampleTime

Sample time

スカラ (サンプル周期) {1}
またはベクトル [period offset]

Continuousライブラリブロックパラメータ 

ブロック(BlockType)/パラメータ
ダイアログボックスプロンプト

Derivative (Derivative) (no block-specific parameters)


Integrator (Integrator)


   ExternalReset

External reset

{none} | rising | falling | either

   InitialConditionSource

Initial condition source

{internal} | external

   InitialCondition

Initial condition

スカラまたはベクトル {0}

   LimitOutput

Limit output

{off} | on

   UpperSaturationLimit

Upper saturation limit

スカラまたはベクトル {inf}

   LowerSaturationLimit

Lower saturation limit

スカラまたはベクトル {-inf}

   ShowSaturationPort

Show saturation port

{off} | on

   ShowStatePort

Show state port

{off} | on

   AbsoluteTolerance

Absolute tolerance

スカラ {auto}

Memory (Memory)


   X0

Initial condition

スカラまたはベクトル {0}

   InheritSampleTime

Inherit sample time

{off} | on

State-Space (StateSpace)


   A

A

行列 {1}

   B

B

行列 {1}

   C

C

行列 {1}

   D

D

行列 {1}

   X0

Initial conditions

ベクトル {0}

Transfer Fcn (TransferFcn)


   Numerator

Numerator

ベクトルまたは行列 {[1]}

   Denominator

Denominator

ベクトル {[1 1]}

Transport Delay (TransportDelay)


   DelayTime

Time delay

スカラまたはベクトル {1}

   InitialInput

Initial input

スカラまたはベクトル {0}

   BufferSize

Initial buffer size

スカラ {1024}

Variable Transport Delay (VariableTransportDelay)


   MaximumDelay

Maximum delay

スカラまたはベクトル {10}

   InitialInput

Initial input

スカラまたはベクトル {0}

   MaximumPoints

Buffer size

スカラ {1024}

Zero-Pole (ZeroPole)


   Zeros

Zeros

ベクトル {[1]}

   Poles

Poles

ベクトル {[0 -1]}

   Gain

Gain

ベクトル {[1]}

Mathライブラリブロックパラメータ 

ブロック(BlockType)/パラメータ
ダイアログボックスプロンプト

Abs (Abs) (no block-specific parameters)


Algebraic Constraint (Algebraic Constraint) (masked)


Combinatorial Logic (CombinatorialLogic)


   TruthTable

Truth table

行列 {[0 0;0 1;0 1;1 0;
 0 1;1 0;1 0;1 1]}

Complex to Magnitude-Angle


Complex to Real-Imag


Dot Product (Dot Product) (masked)


Gain (Gain)


   Gain

Gain

スカラまたはベクトル {1}

Logical Operator (Logic)


   Operator

Operator

{AND} | OR | NAND | NOR | XOR | NOT

   Inputs

Number of input ports

スカラ {2}

Magnitude-Angle to Complex


Math Function (Math)


   Operator

Function

{exp} | log | log10 | square | sqrt | pow | reciprocal | hypot | rem | mod

Matrix Gain (Matrix Gain) (masked)


MinMax (MinMax)


   Function

Function

{min} | max

   Inputs

Number of input ports

スカラ {1}

Product (Product)


   Inputs

Number of inputs

スカラ {2}

Relational Operator (RelationalOperator)


   Operator

Operator

== | != | < | {<=} | >= | >

Relational Operator (RelationalOperator)


   Operator

Operator

== | != | < | {<=} | >= | >

Rounding Function (Rounding)


   Operator

Function

{floor} | ceil | round | fix

Sign (Signum) (no block-specific parameters)


Slider Gain (SliderGain) (masked)


Sum (Sum)


   Inputs

List of signs

スカラまたは符号のリスト {++}

Trigonometric Function (Trigonometry)


   Operator

Function

{sin} | cos | tan | asin | acos | atan | atan2 | sinh | cosh | tanh

Functions and Tablesブロックパラメータ 

ブロック(BlockType)/パラメータ
ダイアログボックスプロンプト

Fcn (Fcn)


   Expr

Expression

expression
   {sin(u(1)*exp(2.3*(-u(2))))}

Look-up Table (Lookup)


   InputValues

Vector of input values

ベクトル {[-5:5]}

   OutputValues

Vector of output values

ベクトル {tanh([-5:5])}

Look-Up Table (2-D) (Lookup Table (2-D))


   RowIndex

Row

ベクトル

   ColumnIndex

Column

ベクトル

   OutputValues

Table

2次元行列

MATLAB Fcn (MATLABFcn)


   MATLABFcn

MATLAB function

MATLAB関数{sin}

   OutputWidth

Output width

スカラまたはベクトル {-1}

S-Function (S-Function)


   FunctionName

S-function name

名前 {system}

   Parameters

S-function parameters

必要ならば付加的なパラメータ

Nonlinearライブラリブロックパラメータ 

ブロック(BlockType)/パラメータ
ダイアログボックスプロンプト

Backlash (Backlash)


   BacklashWidth

Deadband width

スカラまたはベクトル {1}

   InitialOutput

Initial output

スカラまたはベクトル {0}

Coulomb & Viscous Friction (Coulombic and Viscous Friction) (masked)

Dead Zone (DeadZone)


   LowerValue

Start of dead zone

スカラまたはベクトル {-0.5}

   UpperValue

End of dead zone

スカラまたはベクトル {0.5}

Manual Switch


Multiport Switch (MultiPortSwitch)


   Inputs

Number of inputs

スカラまたはベクトル {3}

Quantizer (Quantizer)


   QuantizationInterval

Quantization interval

スカラまたはベクトル {0.5}

Rate Limiter (RateLimiter)


   RisingSlewLimit

Rising slew rate

スカラまたはベクトル {1.}

   FallingSlewLimit

Falling slew rate

スカラまたはベクトル {-1.}

Relay (Relay)


   OnSwitchValue

Switch on point

スカラまたはベクトル {eps}

   OffSwitchValue

Switch off point

スカラまたはベクトル {eps}

   OnOutputValue

Output when on

スカラまたはベクトル {1}

   OffOutputValue

Output when off

スカラまたはベクトル {0}

Saturation (Saturate)


   UpperLimit

Upper limit

スカラまたはベクトル {0.5}

   LowerLimit

Lower limit

スカラまたはベクトル {-0.5}

S-Function (S-Function)


   FunctionName

S-function name

名前 {system}

   Parameters

S-function parameters

必要ならば付加的なパラメータ

Sign (Signum) (no block-specific parameters)


Switch (Switch)


   Threshold

Threshold

スカラまたはベクトル {0}

Signals & Systemsライブラリブロックパラメータ 

ブロック (BlockType)/パラメータ
ダイアログボックスプロンプト

Bus Selector


Configurable Subsystem (SubSystem)

   Choice

Block choice

文字列

   LibraryName

Library name

文字列

Data Store Memory (DataStoreMemory)


   DataStoreName

Data store name

タグ {A}

   InitialValue

Initial value

ベクトル {0}

Data Store Read (DataStoreRead)


   DataStoreName

Data store name

タグ {A}

   SampleTime

Sample time

スカラ (サンプル周期) {-1}
またはベクトル [period offset]

Data Store Write (DataStoreWrite)


   DataStoreName

Data store name

タグ {A}

   SampleTime

Sample time

スカラ (サンプル周期) {-1}
またはベクトル [period offset]

Data Type Conversion


Demux (Demux)


   Outputs

Number of outputs

スカラまたはベクトル {3}

Enable (EnablePort)


   StatesWhenEnabling

States when enabling

{held} | reset

   ShowOutputPort

Show output port

{off} | on

From (From)


   GotoTag

Goto tag

タグ {A}

Goto (Goto)


   GotoTag

Tag

タグ {A}

   TagVisibility

Tag visibility

{local} | scoped | global

Goto Tag Visibility (GotoTagVisibility)


   GotoTag

Goto tag

タグ {A}

Ground (Ground) (no block-specific parameters)


Hit Crossing (HitCross)


   HitCrossingOffset

Hit crossing offset

スカラまたはベクトル {0}

   HitCrossingDirection

Hit crossing direction

rising | falling | {either}

   ShowOutputPort

Show output port

{on} | off

IC (InitialCondition)


   Value

Initial value

スカラまたはベクトル {1}

In (Inport)


   Port

Port number

スカラ {1}

   PortWidth

Port width

スカラ {-1}

   SampleTime

Sample time

スカラ (サンプル周期) {-1}
またはベクトル [period offset]

Merge


Model Info


Mux (Mux)


   Inputs

Number of inputs

スカラまたはベクトル {3}

Out (Outport)


   Port

Port number

スカラ {1}

   OutputWhenDisabled

Output when disabled

{held} | reset

   InitialOutput

Initial output

スカラまたはベクトル {0}

Probe (Probe)


   ProbeWidth

Probe width

{on} | off

   ProbeSampleTime

Probe sample time

{on} | off

   ProbeCompexSignal

Probe complex signal

{on} | off

Subsystem (SubSystem)


   ShowPortLabels

Show/Hide Port Labels Format menu item

{on} | off

Terminator (Terminator) (no block-specific parameters)


Trigger (TriggerPort)


   TriggerType

Trigger type

{rising} | falling | either | function-call

   ShowOutputPort

Show output port

{off} | on

Width (Width) (no block-specific parameters)



 共通のブロックパラメータ マスクパラメータ