|
From: Zbigniew R. <zre...@ce...> - 2015-08-03 07:34:31
|
Hi Giacomo,
I see that in this example you use attributes and not commands. This
will make easier to play with taurusplot.
I bet that you must already know how to use a standalone taurusplot
application e.g.
taurusplot sys/tg_test/1/wave
and that with --taurus-polling-period=MILLISEC argument you can change
polling of the plotted attributes.
So playing with this period we see a difference in refreshing of the
plot (the default period is 3 seconds):
taurusplot sys/tg_test/1/wave --taurus-polling-period=10000
taurusplot sys/tg_test/1/wave --taurus-polling-period=1000
I think that the following execution of the taurusplot should be
equivalent to what you try to achieve:
taurusplot --taurus-polling-period=100
srv-tango-srf.fcs:20000/sfel01/diagnostics/cbpm_sfel01.03/{HorCalSumPickup,VerCalSumPickup,HorCalDeltaPickup,VerCalDeltaPickup}
Please read the following thread which talks about the "taurus polling
period", the consequences of changing its value, and alternatives:
https://sourceforge.net/p/tauruslib/taurus-devel/message/34272929/
You can do the same in the code, please see the attachment.
Regarding you script, I have simplified it to work with taurusplot
sys/tg_test/1/wave only, and it works for me. As you mentioned the curve
seems to be recreated, cause they changes colors. I'm not an expert of
the taurusplot widget so I can not give you better ways to implement it
right now.
I would need to investigate a little bit to give you feedback about it.
If you still need to program it using your own update thread, just let
us know and we will continue investigating.
Cheers,
Zibi
On 07/30/2015 04:43 PM, Giacomo S. wrote:
> 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
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Tauruslib-devel mailing list
> Tau...@li...
> https://lists.sourceforge.net/lists/listinfo/tauruslib-devel
--
--
ALBA Synchrotron <http://www.albasynchrotron.es>
Zbigniew Reszela
Controls Section - Computing Division
ALBA SYNCHROTRON LIGHT SOURCE
Ctra. BP 1413 km. 3,3 | 08290 | Cerdanyola del Vallès| Barcelona | Spain
<http://www.albasynchrotron.es/AboutUs/Access>
(+34) 93 592 4407
www.albasynchrotron.es <http://www.albasynchrotron.es>|
zre...@ce... <mailto:zre...@ce...>
**Please, do not print this e-mail unless it is absolutely necessary.
**Si heu rebut aquest correu per error, us informo que pot contenir
informació confidencial i privada i que està prohibit el seu ús. Us
agrairíem que ho comuniqueu al remitent i l'elimineu. Gràcies.
Si ha recibido este correo por error, le informo de que puede contener
información confidencial y privada y que está prohibido su uso. Le
agradeceré que lo comunique a su remitente y lo elimine. Gracias.
If you have received this e-mail in error, please note that it may
contain confidential and private information, therefore, the use of this
information is strictly forbidden. Please inform the sender of the error
and delete the information received. Thank you.
|