Mercurial > hg > ltpda
comparison m-toolbox/sltpda/sltpda_buildLoops.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 function loops = sltpda_buildloops(sys) | |
2 | |
3 % Build an array of loop structures from the loop blocks on the given | |
4 % pipeline. | |
5 % | |
6 % M Hewitson 05-05-07 | |
7 % | |
8 % $Id: sltpda_buildLoops.m,v 1.2 2007/06/13 08:47:28 hewitson Exp $ | |
9 % | |
10 | |
11 | |
12 loops = []; | |
13 | |
14 blockhandles = find_system(gcs, 'FindAll', 'on', 'type', 'block'); | |
15 k = 1; | |
16 for j=1:length(blockhandles) | |
17 b = blockhandles(j); | |
18 maskType = get(b, 'MaskType'); | |
19 if strcmp(maskType, 'loop') | |
20 maskvals = get(b, 'MaskValues') | |
21 loops(k).block = maskvals{1}; | |
22 loops(k).handle = maskvals{2}; | |
23 loops(k).key = maskvals{3}; | |
24 loops(k).values = maskvals{4}; | |
25 loops(k).on = maskvals{5}; | |
26 loops(k).level = maskvals{6}; | |
27 k = k + 1; | |
28 end | |
29 end | |
30 | |
31 | |
32 | |
33 % END |