Overview
Comment:Customised figures.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 65b5567de9d5393c1eda0897f4151fccd8907b997f5b4a75b1ce31865f6b8e0d
User & Date: gawthrop@users.sourceforge.net on 2002-05-21 18:50:11
Other Links: branch diff | manifest | tags
Context
2002-05-22
07:33:11
New collocated P controller check-in: 143bdcdf29 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2002-05-21
18:50:11
Customised figures. check-in: 65b5567de9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:46:31
MTT input block "sys_sfun_input.mexglx" created to provide inputs from MTT input file to plant model within Simulink.
The command "mtt sys sfun zip" now also creates a simple sys.mdl file which connects the input block to the plant block correctly.
check-in: 1766067043 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/rep/nppp_rep.make from [93cfab61d5] to [fee3bb99e4].

31
32
33
34
35
36
37
38
39
40
41
42
43
44

45
46
47
48
49
50
51
31
32
33
34
35
36
37



38
39
40

41
42
43
44
45
46
47
48







-
-
-



-
+








${SYS}_nppp.view: ${SYS}_nppp.ps
	nppp_rep.sh ${SYS} view

${SYS}_nppp.ps: ${SYS}_nppp.fig
	nppp_rep.sh ${SYS} ps

${SYS}_nppp.fig: ${SYS}_nppp.gdat
	nppp_rep.sh ${SYS} fig

${SYS}_nppp.gdat: ${SYS}_nppp.dat2
	nppp_rep.sh ${SYS} gdat

${SYS}_nppp.dat2: ${nppp_reps}
${SYS}_nppp.fig ${SYS}_nppp.dat2: ${nppp_reps}
	nppp_rep.sh ${SYS} dat2

${SYS}_nppp.m: 
	nppp_rep.sh ${SYS} m

${SYS}_nppp_numpar.m:
	nppp_rep.sh ${SYS} numpar.m

Modified mttroot/mtt/lib/rep/nppp_rep.sh from [43681cce8e] to [5e19f4f312].

153
154
155
156
157
158
159
160
161

162
163
164
165

166
167
168
169


170
171
172
173
174
175
176














177
178
179
180
181
182
183
184
185
186
153
154
155
156
157
158
159


160




161




162
163







164
165
166
167
168
169
170
171
172
173
174
175
176
177



178
179
180
181
182
183
184







-
-
+
-
-
-
-
+
-
-
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-







  j=[];
  for i = 1:length(T_open)
    j = [j; find(T_open(i)*ones(size(t))==t)];
  endfor
  y_open = y(j,:);
  u_open = u(j,:);

  ##if extras.visual
    ## Plots
  ## Plots
    gset grid; xlabel "Time (sec)"; title "${sys}"
    ty = [t y] ; 
    tu =  [t u]; 
  

    ty_open = [T_open y_open];
    tu_open = [T_open u_open];
  
    gplot  tu \
    gset nokey
    gset format x "%i"
        title "u", tu_open with impulses title "Sample times"
    figfig("${sys}_u","eps");
  
    gplot  ty \
        title "y", ty_open with impulses title "Sample times"
    figfig("${sys}_y","eps");
  
    gset format y "%4.1f"
    gset term fig monochrome portrait fontsize 20 size 20 20 metric \
	     thickness 4
    gset output "${sys}_nppp.fig"

    title("");
    grid;
    xlabel("Time (s)");
    ylabel("u");
    subplot(2,1,2); plot(t,u,'-',  T_open, u_open,"^");  
    grid;
    ylabel("y");
    subplot(2,1,1); plot(t,y,'-', T_open, y_open,"^"); 

    system("gv ${sys}_y.eps&");
    system("gv ${sys}_u.eps&");
  ##endif
endfunction

EOF
}

make_nppp_numpar() {
echo Creating ${nppp_numpar_file}
248
249
250
251
252
253
254
255
256


257
258
259
260
261
262
263
264
265
266



267
268
269
270
271
272
273
246
247
248
249
250
251
252


253
254
255
256
257
258
259
260
261



262
263
264
265
266
267
268
269
270
271







-
-
+
+







-
-
-
+
+
+







        ## Make the numpar stuff
        make_nppp_numpar;
	;;
    m)
        ## Make the code
        make_nppp;
	;;
    dat2)
	## The dat2 language (output data)
    dat2|fig)
    ## The dat2 language (output data) & fig file
	make_dat2; 
	;;
    gdat)
        cp ${dat2_file} ${dat2s_file} 
	dat22dat ${sys} ${rep} 
        dat2gdat ${sys} ${rep}
	;;
    fig)
	gdat2fig ${sys}_${rep}
	;;
#    fig)
#	gdat2fig ${sys}_${rep}
#	;;
    ps)
	fig2dev -Leps ${sys}_${rep}.fig > ${sys}_${rep}.ps
	;;

    view)
	echo Viewing ${sys}_${rep}.ps
        gv ${sys}_${rep}.ps&


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]