|
From: Giacomo S. <gia...@el...> - 2015-07-30 14:42:33
|
Hello, thanks for your help.
I almost realized what I need.
Please see the attached source code.
The problem (one of the problems, maybe), is that maybe when I update
the values of the four curves in the plot I should not
call attachRawData.
What I see actually, are the curves flickering (appearing and
disappearing) at each refresh.
This means they are continuosly removed/re added.
In the documentation I've not found the correct method to simply fetch
the curve with a given name and change its values.
Thanks for any help.
Giacomo.
On 07/29/2015 10:07 AM, Carlos Manuel Falcon Torres wrote:
> Hi Giacomo,
> Unfortunately the Taurus plotting GUIs do not have API for manage
> commands. The only one how can do it is the TaurusCommandButton
> (which accepts parameters).
>
> From the core side, you can do it (using the PyTango API of taurus),
> I mean ,
> You can do:
>
> import taurus
> dev = taurus.device('inj/diagnostics/cm_inj.01')
> curve = dev.GetCharge(0,1000)
>
> So, you could represent the curve using a PySignalSimulator device
> server as proxy, where a dynamic attribute was calculated like that,
> or having the result in an attribute of your device server.
>
> Maybe if you ask in any of the taurus mailing list, you can get a
> better answer:
> tau...@li...
> <mailto:tau...@li...>
> tau...@li...
> <mailto:tau...@li...>
>
>
> Hope this help you!!
>
> Best,
> Carlos Falcon
|