Documentation Center

  • Trial Software
  • Product Updates

getBlockValue

Current value of Control Design Block in Generalized Model

Syntax

val = getBlockValue(M,blockname)

Description

val = getBlockValue(M,blockname) returns the current value of the Control Design Block blockname in the Generalized Model M. (For uncertain blocks, the "current value" is the nominal value of the block.)

Input Arguments

M

Generalized LTI Model or Generalized matrix.

blockname

Name of the Control Design Block in the model M whose current value is evaluated.

To get a list of the Control Design Blocks in M, enter M.Blocks.

Output Arguments

val

Numerical LTI model or numerical value, equal to the current value of the Control Design Block blockname.

Examples

Create a tunable genss model, and evaluate the current value of the Control Design Blocks of the model.

G = zpk([],[-1,-1],1);
C = ltiblock.pid('C','PID');
a = realp('a',10);  
F = tf(a,[1 a]);
T = feedback(G*C,1)*F;

Cval = getBlockValue(T,'C')
Continuous-time I-only controller:
 
      1 
Ki * ---
      s 
 
With Ki = 0.001

Cval is a numeric pid controller object.

aval = getBlockValue(T,'a')
aval =

    10

aval is a numeric scalar, because a is a real scalar parameter.

See Also

| |

Was this topic helpful?