SystemOptions - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DynamicSystems

  

SystemOptions

  

query and change default options

 

Calling Sequence

Parameters

Description

Global Variables

Option Description and Default Values

Examples

Calling Sequence

SystemOptions( arg1, arg2, ... )

SystemOptions

SystemOptions( reset )

Parameters

argN

-

argument of the form name or name=val

Description

• 

The SystemOptions command is a mechanism for querying and setting the default values of options used by the commands of DynamicSystems package.

• 

An argument of the form name = val specifies the setting for the named variable.

For each argument of this type, SystemOptions returns the prior value of the variable.

• 

If an argument is a name, then the current value of the named variable is returned as the function value.

• 

If called with many arguments, SystemOptions returns an expression sequence containing the values.

• 

If called with no arguments, SystemOptions returns a sequence of all the options and their current values.

• 

If called with the single argument reset, SystemOptions resets all settings to their built-in values and returns a sequence of equations of the form name = val, where val is the built-in value of name.

Global Variables

• 

The DynamicSystems package uses several global variables that must be unassigned. The actual variables used can be modified or queried by calling SystemOptions with the appropriate option. For example, SystemOptions('continuoustimevar' = T) changes the variable used for continuous-time to T (the default is t).

• 

The following table lists the default variables, their meaning, and the associated option

Symbol

Usage

Option

q

discrete time

discretetimevar

s

complex frequency

complexfreqvar

t

continuous time

continuoustimevar

u

input

inputvariable

x

state

statevariable

y

output

outputvariable

z

discrete frequency

discretefreqvar

Option Description and Default Values

• 

cancellation = truefalse

The default value for the option cancellation, which determines whether pole-zero cancellation is applied to the transfer function of a system during creation.  If true, a pole-zero pair p, z, is cancelled (removed) if |pz|max|p|,|z|relativeerror. The default is false.

• 

colors = list( name )

The color sequence used to draw plots with multiple colors. The default is the current list of colors from plots:-setcolors.

• 

complexfreqvar = symbol

The complex frequency variable used to describe continuous systems as transfer functions. The default is s. See discretefreqvar.

• 

conjugate = truefalse

The default value for the option conjugate, which determines whether the complex conjugates of complex roots of a ZPK model are automatically added during system creation. The default is false.

• 

continuoustimevar = symbol

The default continuous-time variable used to describe continuous-time state-space and differential equation systems. The default is t. See discretetimevar.

• 

decibels = truefalse

The default value for the option decibels, which selects the units of gain. The value true selects decibels, the value false selects linear gain. The default is true.

• 

discrete = truefalse

The default value for the option discrete, which determines whether a system is discrete or continuous. The default is false.

• 

discretefreqvar = symbol

The discrete complex frequency variable used to describe discrete systems as transfer functions. The default is z. See complexfreqvar.

• 

discretetimevar = symbol

The default discrete-time index variable used to describe discrete-time state-space and difference equation systems. The default is q. See continuoustimevar.

• 

duration = positive

The default duration of the DynamicSystems[ResponsePlot] command. The default is 10.0.

• 

hertz = truefalse

The default value for the option hertz, which is used by the plot commands to select the unit of frequency. The value true selects hertz (cycles/second), the value false selects radians/second. The default is false.

• 

inputvariable = symbol

The base name used to generate input variables. The generated names include appended integers. The default is u.

• 

linearsolvemethod = none or solve

The method used by LinearAlgebra:-LinearSolve when computing a transfer function from a system matrix. The solve method is more efficient for some systems. The default is none.

• 

outputvariable = symbol

The base name used to generate output variables. The generated names include appended integers. The default is y.

• 

parameters = set( name = complexcons ) or list( name = complexcons )

Specifies numeric values of parameters. Procedures that require numeric values, primarily plot and simulation routines, substitute the numeric value on the right side of each equation for the name on the left side in the model parameters. The default is the empty set.

• 

radians = truefalse

The default value for the option radians, which selects the units for phase. The value true selects radians, the value false selects degrees. The default is false.

• 

relativeerror = nonnegative number

The default value for the option relativeerror, which is used by various procedures to determine how close roots must be to be considered equal. See the cancellation option, above. The default is 0.001.

• 

samplecount = posint

The default value for the option samplecount, which selects the number of samples of a discrete system. The default value is 10.

• 

sampletime = positive number

The default value for the option sampletime, which is used to select the sample time (period) of discrete systems. The default is 1.

• 

statevariable = symbol

The base name used to generate state variables. The generated symbols include appended integers. The default is x.

Examples

withDynamicSystems:

Return a sequence of all options and their values.

SystemOptions

outputvariable=y,complexfreqvar=s,hertz=false,statevariable=x,parameters=,linearsolvemethod=none,inputvariable=u,discretefreqvar=z,samplecount=10,radians=false,continuoustimevar=t,colors=#78000E,#000E78,#4A7800,#3E578A,#780072,#00786A,#604191,#004A78,#784C00,#91414A,#3E738A,#78003B,#00783F,#914186,duration=10.0,cancellation=false,relativeerror=0.001,decibels=true,discretetimevar=q,discrete=false,conjugate=false,sampletime=1.

(1)

Return the value of the statevariable option.

SystemOptionsstatevariable

x

(2)

Reassign statevariable, the global variable that denotes states of a system, and return its prior value.

SystemOptionsstatevariable=state

x

(3)

SystemOptionsstatevariable

state

(4)

Reset all options to their original values and return the sequence of names and values.

SystemOptionsreset

cancellation=false,colors=#78000E,#000E78,#4A7800,#3E578A,#780072,#00786A,#604191,#004A78,#784C00,#91414A,#3E738A,#78003B,#00783F,#914186,complexfreqvar=s,conjugate=false,continuoustimevar=t,decibels=true,discrete=false,discretefreqvar=z,discretetimevar=q,duration=10.0,hertz=false,inputvariable=u,linearsolvemethod=none,outputvariable=y,parameters=,radians=false,relativeerror=0.001,samplecount=10,sampletime=1.,statevariable=x

(5)

See Also

DynamicSystems