next up previous
Next: Generating a user_controller.c File Up: Examples Previous: State Space Example

State Space Example

This one allows the user to update the full 26th order state space matrices. The files A.mat, B.mat, and C.mat are not shown here, since each have dimensions, respectively, of 26x26, 26x5, and 5x26, which amounts to a lot of numbers.

Figure 3.5: State Space Example. This example uses the ``matrix'' token to read in and update the state space matrices.
\includegraphics[width=0.3\textwidth]{Figures/simplestSS.eps}

# This project is a simpler version of the previous state space
# example. This uses the matrix token which reads in the matrix
# from an ASCII file.

# first the required information
inputs 2
outputs 1
data_size 3

# now let's build the window
start_col n
  title 'State Space\nController\nExample'          
  matrix 'Dynamic Matrix A',5,5,'/home/efh4v/Devel/rtic/user/A.mat',0 
  matrix 'Input Matrix B',5,2,'/home/efh4v/Devel/rtic/user/B.mat',1 
  matrix 'Output Matrix C',1,5,'/home/efh4v/Devel/rtic/user/C.mat',2 
end_col



Michael Barabanov 2001-06-19