How to plot data from Orocos 'realtime'

Hi all,
I have recently started to use Orocos.
At the moment I'm plotting some data from an Orocos component in
simple graphs only at the end of the run, using fstream and matlab.
For the application I have to develop it would be useful to plot the
data during the runtime.
Two x-y graphs would be enough, and very useful.
I have seen that there are many ways to do that.
At http://www.orocos.org/orocos/related/31 : JChart2D, KST.
I have never used these programs and I haven't found how I have to
configure them to work with Orocos.
There is an example or a tutorial to understand how to configure them?
Or there is a simpler way when the plots are very simple?

Thanks

Diego

How to plot data from Orocos 'realtime'

hi,

On 07/05/2012 11:07 AM, Diego Jimenez wrote:
> Hi all,
> I have recently started to use Orocos.
> At the moment I'm plotting some data from an Orocos component in
> simple graphs only at the end of the run, using fstream and matlab.
> For the application I have to develop it would be useful to plot the
> data during the runtime.
> Two x-y graphs would be enough, and very useful.
> I have seen that there are many ways to do that.
> At http://www.orocos.org/orocos/related/31: JChart2D, KST.
> I have never used these programs and I haven't found how I have to
> configure them to work with Orocos.
> There is an example or a tutorial to understand how to configure them?
> Or there is a simpler way when the plots are very simple?
you can use the Reporter, which is a component that you have to connect to the ports with the data you want to plot.
The Reporter will write this data to a file, which you can read afterwards (off-line) or at runtime (on-line) with eg. KST.
More info on:

http://www.orocos.org/stable/documentation/ocl/v2.x/doc-xml/orocos-repor...
http://www.orocos.org/forum/orocos/orocos-users/defining-and-configuring...

>
>
> Thanks
>
> Diego
>
>

How to plot data from Orocos 'realtime'

Thanks,
It was exactly what I was looking for.

Best regards
Diego

How to plot data from Orocos 'realtime'

I have read the documentation at the link you send,
that explain how to deploy the Reporter in various ways,
however I still don't know how to set the reporter to be used from KST or
JChart2D.
There is an example focused on how to configure the Reporter and KST
or JChart2D
to work together?

Best regards
Diego

How to plot data from Orocos 'realtime'

On 07/06/2012 01:45 PM, Diego Jimenez wrote:
> I have read the documentation at the link you send,
> that explain how to deploy the Reporter in various ways,
> however I still don't know how to set the reporter to be used from KST or JChart2D.
> There is an example focused on how to configure the Reporter and KST or JChart2D to work together?
you set KST to read from the file that the reporter writes to
this file is just a table of the data
report the headers also with the reporter, so you can select the right kolumn of data in the file based on the name of it

for kst, you can use the wizard, in which you can select the file to read from
then configure it (button in the wizard) where you set that kst has to read the headers from line 0
and set that kst has to read the data from line 2 or so
The rest of the wizard should be self explaining
you can use the timestamp for the time axis
>
> Best regards
> Diego
I hope this helps

nick