You can set the width of a relation to have a value given by a parameter,
equal to the number of actors.  Ideally, you would also be able to create
the actors based on this parameter value. The MultiInstanceComposite actor
might do this, but it might not yield the visualization you want.

Perhaps we need a variant of MultiInstanceComposite for this sort of
application?

Edward

At 02:36 AM 5/11/2006, Mart Lõhmus wrote:
Thank You very much Steve, Switch was the actor I was looking for. But what if I don't know the number of channels in advance? For background data - I have wireless model with instances of custom wireless actor. I move them around, they do something useful etc. I would also like to monitor movements using XYPlotter, so I collect data using WirelessToWired, disassemble it and use Switch like you proposed, to plot coordinates. I could manually make connections from Switch to XYPlotter based on the number of instances of wireless actors I do have ( and so it works now), but are there more automatic ways? It's actually not very important question, because there can't be too many of those wireless actors right now.

2006/5/10, Stephen Neuendorffer <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]>: You should be able to use a RecordDisassembler to pull out the id, a Switch connected to the XYPlotter: Just be sure to set the width of relation connected to the plotter to be the expected number of data sets.

See attached, which may or may not be what you expected... :)

Steve


----------
From: <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mart Lõhmus
Sent: Wednesday, May 10, 2006 12:55 PM
To: <mailto:ptolemy-hackers@bennett.eecs.berkeley.edu>ptolemy-hackers@bennett.eecs.berkeley.edu
Subject: Re: XYZPlotter

Aha, that was too simple :)
However, I have actually records like {x,y,id} and not fixed channels.

2006/5/10, Christopher Brooks <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]>:
Hi Mart,
In the XYPlotter, each of the colors represents a dataset, so to
get different colors, you can connect multiple inputs to the input
port and each input will get a color.

The Ptolemy II interface to Matlab has a demo that uses a 3-D plotter.
However, this requires Matlab.

_Christopher

--------

    Hi Ptolemy hackers,

does someone know, howto use different colors (like Z-axis) with XYPlotter? I did a quick search on demos, but didn't find any examples for this kind o
   =
    f
problem. Do I have to modify a bit XYPlotter or is something similar alread
   =
    y
    done?

    Thanks!
    Mart L=F5hmus




------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
[EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to