<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Kianwee,<br>
Problem 1 has to do with multirate systems.<br>
The attached model has a top level that fires once and an inside
opaque composite that fires 10 times.<br>
I use a sequence to array actor to cause the inside opaque composite
to fire 10 times.<br>
See
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<cite><b><a class="moz-txt-link-freetext" href="http://ptolemy">http://ptolemy</a></b>.eecs.berkeley.edu/~eal/ee225a/lab/<b>sdf</b>.pd</cite>f<br>
<br>
About problem #2, the Repeat actor repeats the input, it does not
cause the upstream actors to be fired.<br>
<br>
BTW - test cases would help here.<br>
<br>
Also, take a look at some of the example models in the Ptolemy II
distribution. <br>
In the Kepler source distribution look for models in<br>
ptolemy/src/ptolemy/domains/sdf/kernel/test/auto/<br>
See also<br>
ptolemy/src/ptolemy/domains/sdf/lib/test/auto/DynamicRateChange.xml<br>
<br>
_Christopher<br>
<br>
On 10/25/11 3:06 AM, kianwee chen wrote:
<blockquote
cite="mid:CAHwgn_zWvicnszHi1dExai+LB25fvDrpJjza3yS=J=m20H5JJQ@mail.gmail.com"
type="cite">Hi all kepler users, I am trying to do a loop in a
loop, something like a for loop in a for loop. The task is as
follow :<br>
<br>
1.) So what I did was I setup a sdf director and set the iteration
to 1, then create a composite actor and put a sdf director in it
and set the iteration to 10. I was hoping that it would be for 1
iteration outside, the composite actor will do the action 10 times
inside, thus creating a looop within a loop. However it did not
work.<br>
<br>
2.) I went on to try to do a repeat actor, it worked, as I am
using random() to produce 10 different random number. The repeat
gives me 10 same number. Thus its not good enough. <br>
<br>
Tried to find examples on this issue but did not manage to find
it. Cause I read about the opaque composite actor and I thought
the 1.) should have worked. <br>
<br>
Thanks <br>
ckw<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kepler-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670 </pre>
</body>
</html>