From: Giacomo S. <gia...@el...> - 2015-07-30 09:53:52
|
Hello Zbigniew. Thanks for Your kind reply. I will read the documentation you linked. Giacomo. On 07/29/2015 10:18 AM, Zbigniew Reszela wrote: > Hello Giacomo, > > Thanks for your email! I reply also to the > tau...@li... > which is a dedicated list to the taurus user queries. > > In taurus you can executed commands on taurus devices (representing > Tango devices) in the following way: > > In [1]: import taurus > In [2]: d = taurus.Device('sys/tg_test/1') > In [4]: d.DevFloat(1) > Out[4]: 1.0 > > However the model concept of Taurus does not include commands. > Please take a look on the current documentation > http://www.taurus-scada.org/en/latest/devel/core_tutorial.html#model-concept > And also keep an eye on TEP3 and TEP14 which are refactoring the > taurus core: > https://sourceforge.net/p/tauruslib/wiki/TEP3 > https://sourceforge.net/p/tauruslib/wiki/TEP14 > > That means that you can not set a Tango command as a model of e.g. > TaurusPlot and expect from it > that it periodically execute the command and replot your curve. > Of course you can develop your widget using taurus library to do what > you want. > An example of widget related to Tango commands is a TaurusCommandButton: > http://www.taurus-scada.org/en/latest/devel/api/taurus/qt/qtgui/button/_TaurusCommandButton.html > In this case its model is a Tango device. > > I recall that in the TEP3 and TEP14 discussions, commands were > evaluated as models for Taurus, but I can't remember details. > It seems that this was completely discarded cause the documents do not > mention them. > For sure Carlos Pascual will inform you better about it whenever he is > back from holidays. > > I hope it helps, > Zibi > > > On 07/28/2015 05:17 PM, Giacomo S. wrote: >> Hello Tangoers, hello Tiago. >> >> Is it possible in Taurus to "read" commands with a syntax like the >> following: >> >> inj/diagnostics/cm_inj.01->GetCharge(0,1000) >> >> where I want to plot the output of the command GetCharge, which requires >> two parameters, a "mode" (0) and the number of >> returned points (1000). >> >> This would produce a 1000 points curve. >> >> Thanks Giacomo. > > -- > > -- > > > 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. > |