Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Installation and configuration pwrsev

Installation and configuration pwrsev 8 years 1 month ago #8486

  • Gierula
  • Gierula's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Karma: 0
Long, time works for me, raspberry pi.
Is installed on the Proview 5.3.
It is a process and the operator station.
Everything works non-stop and seamlessly.


s1_2016-10-17.jpg

The time has come to save historical data.
1. I installed Ubuntu 14.04 on PC i386.
2. I installed Mysql 5.5.52-0
3. I installed the packages pwrsev_5.3.1-1_i386.deb
4. ????

I want to save x.ActualValue and do not know how to go about it.
Please help.
The administrator has disabled public write access.

Installation and configuration pwrsev 8 years 1 month ago #8492

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3219
  • Thank you received: 515
  • Karma: 134
Hi Gierula,

There is a desciption in Designer's Guide, chapter Historical data storage.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: Gierula

Installation and configuration pwrsev 8 years 1 month ago #8493

  • Gierula
  • Gierula's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 46
  • Karma: 0
What does contain server project?
The documentation describes the node station of the process.
There VolMerk2.
rys1.jpg
The administrator has disabled public write access.

Installation and configuration pwrsev 8 years 1 month ago #8494

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3219
  • Thank you received: 515
  • Karma: 134
Hi Gierula,

The storage server contains the qmon monitor (rt_qmon) to communicate with the process and operator stations, a database server program (sev_server) to store data, and a mysql database.

You can examine the database with mysql (here with user pwrp witch you should have added). The database is named pwrp__'projectname', here pwrp__pwrtest.
> mysql -u pwrp
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| pwrp__pwrtest      |
+--------------------+
3 rows in set (0.00 sec)

mysql> use pwrp__pwrtest;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+------------------------------+
| Tables_in_pwrp__pwrtest      |
+------------------------------+
| O000_001_099_071_00001422__1 |
| O000_001_099_071_00001423__8 |
| O000_001_099_071_00001424__9 |
| O000_001_099_071_00001425__2 |
| O000_001_099_071_00001426__7 |
| O000_001_099_071_00001452__3 |
| O000_001_099_071_00001454__6 |
| O000_001_099_071_00001456__4 |
| O000_001_099_071_00001458__5 |
| items                        |
| objectitemattributes         |
| objectitems                  |
| sev_stat                     |
| sev_version                  |
+------------------------------+
14 rows in set (0.00 sec)

mysql> select * from O000_001_099_071_00001458__5 where id % 1000 = 0;
+---------+---------------------+-----------+-----------+------+
| id      | time                | ntime     | value     | jump |
+---------+---------------------+-----------+-----------+------+
| 3802000 | 2016-01-18 03:35:25 | 959643525 |  -84.1071 |    1 |
...
| 3803000 | 2016-01-18 03:42:25 | 383089462 |   86.3938 |    1 |
+---------+---------------------+-----------+-----------+------+
51 rows in set (0.06 sec)

In the item table you can see the connection between attribute and table.

There is also a browser, sev_xtt, where you can see the stored attributes and display curves.

Configuration and setting are made in /etc/proview.cnf. All configurations of attributes to store are made with the SevHist objects in the process nodes.

There is a database file on $pwrp_db/pwrp__'projectnanme'.db which is created together with the mysql database at the first startup. There is a common problem that if this file is created, but the creation of the database fails, this file has to be deleted before a new database is created. This problem is though fixed in recent versions.

/Claes
Last Edit: 8 years 1 month ago by claes.
The administrator has disabled public write access.
The following user(s) said Thank You: Gierula
  • Page:
  • 1
Time to create page: 7.701 seconds