Hi Kim I think you are confusing SDF in a practical environment (where a fixed sample rate at an ADC imposes a fixed sample rate on the SDF design) with true DF (where communication is the consequence of data flow whenever data is available). So as Jie points out, true SDF is not a timed domain. However there should be no need to use the DT domain. The well-used DE domain should be fine. Each set of data that you read from your file is an event to be delivered to the simulation at the appropriate time, so use a CT model within DE. If you need significant per data set modelling, use a CT model within SDF within DE, using DE just to define a time model for your SDF activities.
Regards Ed Willink ------------------------------------------------------------------------ E.D.Willink, Email: mailto:[EMAIL PROTECTED] Thales Research Ltd, Tel: +44 118 923 8278 (direct) Worton Drive, or +44 118 986 8601 (ext 8278) Worton Grange Industrial Estate, Fax: +44 118 923 8399 Reading, RG2 0SB ENGLAND http://www.computing.surrey.ac.uk/personal/pg/E.Willink ------------------------------------------------------------------------ (formerly Racal Research and Thomson-CSF) As the originator, I grant the addressee permission to divulge this email and any files transmitted with it to relevant third parties. > -----Original Message----- > From: Jie Liu [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 26, 2002 6:23 PM > To: Christopher Hylands > Cc: [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Re: [Ptolemy] Re: Does CT work within SDF > > > SDF is not a timed model. If you use SDF as the top-level and ask > for its current time, it always returns zero. However, CT requires > a monotonically increasing notion of time to work. I am not sure > why you need CT to be embedded in SDF. If you really need a timed > SDF semantics, you may try the DT domain, although I don't think > the DT domain has been maintained very well recently... > > Jie > > At 11:02 PM 08/25/2002 -0700, Christopher Hylands wrote: > >The following message appeared in comp.soft-sys.ptolemy > >If you answer, please cc [EMAIL PROTECTED] > >-Christopher > >------- Forwarded Message > > > > > >From: [EMAIL PROTECTED] (kim wong) > >Subject: Does CT work within SDF > >Date: 24 Aug 2002 18:52:55 -0700 > > > >I would like to create an SDF model that has a CT composite actor > >within it. > > > >What I am trying to do is use SDF to read a set of data from file, > >then have a CT composite actor invoked that models a system over time > >using that data. The result from the CT model, corresponding to the > >read input, will then be written back to file. The process will be > >repeated about 100 times, or until the end-of-file is reached. > > > >Questions: > > > >1) Is it possible to have a CT composite actor invoked during each > >iteration of an SDF as I am trying to do? If so, could you please > >describe a simple model doing this. > > > >2) If this is not possible, can you suggest another approach > > > >Notes : I am running Ptolemy 2.01 on Linux. I have been able to make > >an SDF model run within a CT model, but not the opposite > which is what > >I believe I need. I have gone through the manual and all examples, > >but cannot find the answer. > > > >Thanks > > > >------- End of Forwarded Message > > > >_______________________________________________ > >Ptolemy maillist - [EMAIL PROTECTED] > >http://www.gigascale.org/ptolemy/listinfo/ptolemy > > _______________________________________________ > Ptolemy maillist - [EMAIL PROTECTED] > http://www.gigascale.org/ptolemy/listinfo/ptolemy > ******************************************************************************* This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may not be divulged to any third party without the express permission of the originator. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thales Research Ltd. ******************************************************************************* ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]