|
From: Lukasz Z. <luk...@uj...> - 2015-12-09 16:48:54
|
Hi Sergi,
This is output I got, following your steps:
> In [1]: attr = 'i-k01/vac/i-k01cab05-vac-ipcu1/pressure'
>
> In [2]: import PyTangoArchiving
> /home/tango/lib/python2.7/site-packages/setuptools-18.0.1-py2.7.egg/pkg_resources/__init__.py:1256:
> UserWarning: /home/Operator/.python-eggs is writable by group/others
> and vulnerable to attack when used with get_resource_filename.
> Consider a more secure location (set with .set_extraction_path or the
> PYTHON_EGG_CACHE environment variable).
>
> In [3]: rd = PyTangoArchiving.Reader()
> None.Reader.WARNING 2015-12-09 17:17:34.206 Unable to get DB
> config at 1449677854.21, using Java Extractors.
> list index out of range
> None.Reader.INFO 2015-12-09 17:17:34.207 loading by
> Noneextractor server_name
> None.Reader.INFO 2015-12-09 17:17:34.207
> get_devs_from_db(dserver/Noneextractor/*)
> None.Reader.INFO 2015-12-09 17:17:34.216
> get_devs_from_db(dserver/Noneextractor/*): no matches found.
> None.Reader.WARNING 2015-12-09 17:17:34.216 No server matches
> with Noneextractor (family=Noneextractor).
> None.Reader.ERROR 2015-12-09 17:17:34.216 Impossible to retrieve
> server for class TdbExtractor
> None.Reader.WARNING 2015-12-09 17:17:34.216 Try
> ServersDict.load4class
> None.Reader.INFO 2015-12-09 17:17:34.219 No available extractors
> found, PyTangoArchiving.Reader disabled
>
> In [4]: rd.is_attribute_archived(attr)
> None.Reader.WARNING 2015-12-09 17:17:44.653 Unable to get DB
> config at 1449677864.65, using Java Extractors.
> list index out of range
> Out[4]: False
>
> In [5]: rd.get_attribute_values(attr,-3600)
> None.Reader.WARNING 2015-12-09 17:21:12.940 Unable to get DB
> config at 1449678072.94, using Java Extractors.
> list index out of range
> None.Reader.INFO 2015-12-09 17:21:12.941 In
> PyTangoArchiving.Reader.get_attribute_values: Archiving not available!
> Out[5]: []
>
> In [6]:
In attachment you can find print screen from Mambo.
I am looking forward to hearing from you.
Best regards,
Lukasz Zytniak
W dniu 2015-11-23 o 10:01, Sergi Rubio pisze:
> Well, to check if your attribute is archived or not:
>
> > ipython
> # import PyTangoArchiving
> # attribute = 'a/b/c/d'
> # rd = PyTangoArchiving.Reader()
> # rd.is_attribute_archived(attribute)
>
> if the result is True, ask for the last hour values
>
> # rd.get_attribute_values(attribute,-3600)
>
> If the result is False or exception, please reply with your output
>
> To add the attribute to archiving:
>
> # hdb = PyTangoArchiving.ArchivingAPI('hdb') #or tdb for temporary
> archiving
> # hdb.start_archiving(attribute) #To archive every minute
> # hdb.start_archiving(attribute,{'MODE_P':[15000]}) #To archive every 15s
>
> If it fails, reply to this email with your output. The arguments for
> start_archiving
> are described in the ArchivingManager documentation.
>
> For using tdb you have to configure the DB maintenance/cleanup in your
> DB server, you can ask Soleil regarding that.
>
>
> Sergi Rubio
>
> On 11/23/2015 09:50 AM, Carlos Pascual wrote:
>> Hi Lukasz,
>>
>> As I said, I am personally not an expert on archiving. Sergi Rubio (in
>> CC) is the author of the archiving support of TaurusTrend, so he may be
>> able to give better help.
>>
>> With my limited knowledge, all I can suggest is:
>> 1- make sure you use Soleil's archiving system (according to srubio, it
>> doesn't work with other archivers)
>> 2- make sure that your attribute (let's say "a/b/c/d") is configured in
>> the archiver and also that its values are really being archived (*)
>> 3- launch taurustrend a/b/c/d
>> 4- use the context menu to enable archiving (righ-click->use archiver)
>> 5- Now go to plot configuration (Right-click->plot configuration) and
>> disable the "Fixed-range scale" checkbox. Then enter a start value
>> previous to the time when you launched the trend (step 3). Apply and
>> Close the configuration dialog.
>>
>> You should be seeing archived values now.
>>
>> (*) Note: this is crucial, but it is where I cannot help you much since
>> I've never done this myself. I guess you can do a mysql query against
>> the DB, or use Mambo...
>>
>>
>>
>>
>> On Fri 20 November 2015 12:06:42 Lukasz Zytniak wrote:
>>> Hi Carlos,
>>>
>>> Please find in attachment printscreen from Astor, as I know we are
>>> using *external* archiver infrastructure.
>>> Still, I have problem with taurustrend --use-archiving.
>>>
>>> Could you please help me?
>>>
>>> Best regards,
>>> Lukasz
>>>
>>> W dniu 2015-11-13 o 16:06, Carlos Pascual pisze:
>>>> (Note: the original message was sent to both devel and users list. I
>>>> reply only to the the users list to avoid duplication of messages)
>>>>
>>>> Hi,
>>>>
>>>> Since the feature is working without problems in Alba and you do not
>>>> give details of how you are trying it, I can only guess a very basic
>>>> explanation... please excuse me if my answer is too obvious:
>>>>
>>>> In order to use the archiving feature you need, first of all, to
>>>> have the values archived. That is, an *external* archiver
>>>> infrastructure is needed, and the attributes for which you wish to
>>>> access the archived values need to be configured for archiving.
>>>>
>>>> Sergi rubio may be able to give further hints...
>>>>
>>>> Cheers,
>>>> Carlos
>>>>
>>>> On Fri 13 November 2015 15:22:47 Lukasz Zytniak wrote:
>>>>> Hello All,
>>>>>
>>>>> I have a question about taurustrend --use-archiving, as you can
>>>>> find
>>>>> in attachment, it doesn't work.
>>>>> I tested it on new TangoBox9 and in control room at Solaris (we are
>>>>> using taurus-3.3.0).
>>>>> I didn't find any ticket
>>>>> (http://sourceforge.net/p/tauruslib/tickets/), so maybe I use it in
>>>>> wrong way or I don't know how to configure it? I found in
>>>>> documentation:
>>>>> http://www.taurus-scada.org/en/stable/users/ui/trend.html#accessing
>>>>> -ar chived-values
>>>>>
>>>>> I will be very gratefull for your help.
>>>>>
>>>>> Kind regards,
>>>>> Lukasz
>
--
Kind Regards,
Lukasz Zytniak
Control Software Engineer
---------------------------------------------------------------
Synchrotron Radiation Centre "Solaris"
Jagiellonian University
98 Czerwone Maki Street; 30-392 Krakow
mobile: +48 519 307 972
www.synchrotron.pl
|