File: node41.html

package info (click to toggle)
rtlinux 3.1pre3-3
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 4,896 kB
  • ctags: 4,228
  • sloc: ansic: 26,204; sh: 2,069; makefile: 1,414; perl: 855; tcl: 489; asm: 380; cpp: 42
file content (106 lines) | stat: -rw-r--r-- 3,119 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>State Space Example</TITLE>
<META NAME="description" CONTENT="State Space Example">
<META NAME="keywords" CONTENT="rtic">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="rtic.css">

<LINK REL="previous" HREF="node40.html">
<LINK REL="up" HREF="node36.html">
<LINK REL="next" HREF="node42.html">
</HEAD>

<BODY bgcolor="white">
<!--Navigation Panel-->
<A NAME="tex2html570"
  HREF="node42.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html568"
  HREF="node36.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html564"
  HREF="node40.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html571"
  HREF="node42.html">Generating a user_controller.c File</A>
<B> Up:</B> <A NAME="tex2html569"
  HREF="node36.html">Examples</A>
<B> Previous:</B> <A NAME="tex2html565"
  HREF="node40.html">State Space Example</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION00335000000000000000">
State Space Example</A>
</H2>
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.

<P>

<P></P>
<DIV ALIGN="CENTER"><A NAME="1631"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 3.5:</STRONG>
State Space Example. This example uses the ``matrix'' token
to read in and update the state space matrices.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
	
		<IMG
 WIDTH="166" HEIGHT="193" ALIGN="BOTTOM" BORDER="0"
 SRC="img51.png"
 ALT="\includegraphics[width=0.3\textwidth]{Figures/simplestSS.eps}">

</DIV></TD></TR>
</TABLE>
</DIV><P></P>

<PRE>
# 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
</PRE>

<P>
<BR><HR>
<ADDRESS>
Michael Barabanov
2001-06-19
</ADDRESS>
</BODY>
</HTML>