create a system object - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Dynamic Systems : System Object : DynamicSystems/NewSystem

DynamicSystems[NewSystem] - create a system object

Calling Sequence

NewSystem(opts)

NewSystem(sys, opts)

NewSystem(tf, opts)

NewSystem(z, p, k, opts)

NewSystem(num, den, opts)

NewSystem(a, b, c, d, opts)

NewSystem(de, invars, outvars, opts)

Parameters

sys

-

System; system object

tf

-

algebraic or Matrix(algebraic); transfer function

z

-

list(algebraic) or Matrix(list(algebraic)); zeros

p

-

list(algebraic) or Matrix(list(algebraic)); poles

k

-

algebraic or Matrix(algebraic); gain(s)

num

-

list(algebraic) or Matrix (list(algebraic)); numerator coefficients

den

-

list(algebraic) or Matrix (list(algebraic)); denominator coefficients

a

-

Matrix; state-space matrix A

b

-

Matrix; state-space matrix B

c

-

Matrix; state-space matrix C

d

-

Matrix; state-space matrix D

de

-

equation or list(equation); diff-equations

invars

-

name, anyfunc(name) or list of same; input variables

outvars

-

name, anyfunc(name) or list of same; output variables

opts

-

(optional) equation(s) of the form option = value; specify options for the NewSystem command

Description

• 

The NewSystem command creates a System object. Five system types are supported: transfer-function (TF), zero-pole-gain (ZPK), coefficients (Coeff), state-space (SS), and differential/difference equations (DE).

• 

The input can be specified as one of the five system types. The output has the same type as the input.

• 

If no input is provided, a unity-gain transfer-function system is created.

• 

The parameter sys is a system object; it is copied to the output. All options are ignored.

• 

The optional parameter tf is the transfer function of a TF system. For a single-input/single-output system, tf is a rational function (ratpoly). For a multi-input/multi-output system, tf is a Matrix of rational functions. The indeterminate of the polynomials depends on whether the system is continuous or discrete; a continuous system typically uses s while a discrete system typically uses z as the indeterminate. The actual names are assigned by DynamicSystems[SystemOptions].

• 

The optional parameters z, p, and k are the zeros, poles, and gain, respectively, of a ZPK system. For a single-input/single-output system, z and p are lists and k is an algebraic expression. For a multi-input/multi-output system, z and p are Matrices of lists and k is a Matrix of algebraic expressions.

• 

The optional parameters num and den are the coefficients of the numerator and denominator, respectively, of a Coeff system. For a single-input/single-output system, num and den are lists, the first element being the coefficient of the highest order term. For a multi-input/multi-output system, num and den are Matrices of lists.

• 

The optional parameters a, b, c, and d are the four state-space matrices, A, B, C, and D, respectively, of an SS system.

• 

The optional parameter de is the difference/differential equation(s) of a DE system. A list is used to specify more than one equation.

• 

The parameters invars and outvars specify the input and output variables of difference/differential equations. They are not required, but if either is not specified then the corresponding keyword parameter inputvariable or outputvariable must be assigned. If both positional and keyword parameters are specified, the keyword parameter take precedence.

Examples

withDynamicSystems:

sys1:=NewSystem

sys1:=Algebraic Equationcontinuous1 output(s); 1 input(s)inputvariable=utoutputvariable=yt

(1)

PrintSystemsys1

Algebraic Equationcontinuous1 output(s); 1 input(s)inputvariable=utoutputvariable=ytae=yt=ut

(2)

sys2:=NewSystem1,2,1,2,3

sys2:=Coefficientscontinuous1 output(s); 1 input(s)inputvariable=u1soutputvariable=y1s

(3)

PrintSystemsys2

Coefficientscontinuous1 output(s); 1 input(s)inputvariable=u1soutputvariable=y1snum1,1=1,2den1,1=1,2,3

(4)

tf_mimo_z:=Matrix1z2,z2z3+5z2+7z+6,1z,cz2+az+b

tf_mimo_z:=1z2z2z3+5z2+7z+61zcaz+z2+b

(5)

sys3:=NewSystemtf_mimo_z,discrete,sampletime=0.001,systemname=Sample discrete MIMO system

sys3:=Transfer Functiondiscrete; sampletime = .1e-2systemname=Sample discrete MIMO system2 output(s); 2 input(s)inputvariable=u1z,u2zoutputvariable=y1z,y2z

(6)

PrintSystemsys3

Transfer Functiondiscrete; sampletime = .1e-2systemname=Sample discrete MIMO system2 output(s); 2 input(s)inputvariable=u1z,u2zoutputvariable=y1z,y2ztf1,1=1z2tf2,1=1ztf1,2=z2z3+5z2+7z+6tf2,2=cz2+az+b

(7)

See Also

DynamicSystems, DynamicSystems[AlgEquation], DynamicSystems[Coefficients], DynamicSystems[DiffEquation], DynamicSystems[StateSpace], DynamicSystems[SystemObject], DynamicSystems[SystemOptions], DynamicSystems[TransferFunction], DynamicSystems[ZeroPoleGain]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam