Migration from proprietary archiving to HDS

16 Posts
5 Users
0 Likes
150 Views
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Hello.

Can somebody tell me: What are the best practices for migrating a proprietary archive unit to HDS?

I am thinking to using DataExport for generating a csv file that can be easily consumed by SQL Server Management Studio.

But I am also a little worried about a few difficulties, constraints and limitations:

  • DataExport license required.
  • DataExport limitations in general.
  • Risk of missing individual variables (I mean each trend variable must be added to DataExport individuallay, the project is a PcVue 11.0 and DataExport is not available in AA).
  • Histo request limitation to 12.000 trend records at a time.
  • Timestamp conversion to Filetime.

Is it even a good idea trying to use DataExport? Or should I write my own script for parsing the proprietary archive?
Is there maybe already a tool available that does the job in one shot?

What is the best output file format in your opinion? Plain CSV that can be easily imported into SQL-Server using SSMS? Or Scada Basic TrendImport file format?

Can I somehow take advantage of the DB_Import.exe tool?

Thank you in advance!

 
Posted : 19/06/2015 6:54 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

I am not the expert but very interested as everyone.

I don't think there is already a tool to do that.
We should play first with the DBimport tool to know the format and the limitations.
Then create a tool to generate this kind of files for DBImport.

And most important thing at the end; A beautiful kb article because all the customers want to do that. All the time we say, keep the proprietary format for a while and then use only HDS...

It woudl be better if we can say:"no problem apply the kb article xxx"

 
Posted : 19/06/2015 8:05 pm
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

I have started a little tool, put it on GitHub and "open-sourced" it.
Feel welcome to contribute!

Here is the link:
https://github.com/ak-arcinfo/Prop2HdsConverter

 
Posted : 25/06/2015 1:26 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Hi Armin,

Finally what method did you choose?
Data Export --> csv --> SQL ??

 
Posted : 30/06/2015 12:30 pm
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Hi Nico,

I was not able to take advantage of DataExport because this effort was for a PcVue 11.0 project and the trend export consequently was limited to 12.000 trend records. (Meanwhile this limitation has been removed in one of the 11.1 Update versions...)

Finally, the tool that I linked in my previous post directly parses the proprietary archive files and creates one csv-file for trends and one csv-file for logs from each individual histo *.dat file. The insert into SQL Server needs to be performed manually or by a PowerShell loop or similar...

Johannes will continue to maintain this tool. Maybe in the future we can have direct insert into SQL Server database tables without the intermediate csv-export/-import step.

 
Posted : 13/07/2015 5:33 pm
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Thanks Armin. I will try to work on it as soon as possible.

 
Posted : 13/07/2015 6:09 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Is it compatible with binary files or only ascii?
Is it compatible with old format before PcVue 10 without UTC?
Is it compatible with very old format and idx index?
Is it compatible with text attributes?

 
Posted : 20/07/2015 12:45 pm
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Is it compatible with binary files or only ascii?

Only ASCII...

Is it compatible with old format before PcVue 10 without UTC?

No.

Is it compatible with very old format and idx index?

No idea. Is the format of the dat-files still the same?

Is it compatible with text attributes?

For the non-default HDS columns, we would probably have to make things a little bit more generic. But generally, it would not be a big effort, I guess. Could be added when required.

Feel free to participate in this project by contributing to the Github project that was linked in one of the previous posts.

 
Posted : 20/07/2015 12:54 pm
(@r.buisson@arcinfo.com)
Posts: 0
New Member Guest
 

The project will be intagrated with PcVue tools ?

It will be usefull to inform more people that this kind of tools exist.

A lot of customer ask sales team for this.

 
Posted : 20/07/2015 1:01 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

I know that's a often requested function but I think we must be very carefull before presenting this feature to customers.

By the way, I think we plan doing it in PcVue (i dont know when...).

So far, that's still an only internal tool.

Nico

 
Posted : 03/08/2015 12:31 pm
(@o.allard@atys-concept.com)
Posts: 0
New Member Guest
 

Hello,

I worked on the program (under Visual studio 2015 express) and I added:
- Transfer to the SQL database (CSV file transfer is too long )
- Time delay
- Correspondence of event number ( in an editable init file)
- Correspondence of event title ( in an editable init file)
- it's compatible with old format before PcVue 10 without UTC

I will try to comment further as soon as possible. Meanwhile, you can tell me the different bugs

Project: http://gofile.me/6ly85/DPZZ1Ki4
Release: http://gofile.me/6ly85/PdkFOTre

 
Posted : 10/09/2015 6:59 pm
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Hi Olivier,

Thank you for your contribution!
Could you please make a pull request on the github repository of the project so that I can accept the merge?

Thanks!

 
Posted : 11/09/2015 12:41 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

For your information, the archive format has been changed for the 11.2
Changes are:
- Add systematically the quality for each record
- If variable is NS the value is still written (no more ?)

That applies to proprietary and free archives and for Trends only.

Nico

 
Posted : 01/10/2015 11:29 am
AD
 AD
(@a-degrearcinfo-com)
Posts: 34
Trusted Member
 

Thanks Armin for this good topic !!!

I you ask me, the best way is to :

1. Use DataExport to export data from proprietary archives (binary/texte).
+ able to read all PcVue archives formats/versions (also the next one).
+ easy to export ALL your archives with SCADA basic instructions (in multiple csv files).

- need to browse HDSTrend.dat for each variable to export from SCADA basic script

2. Parse CSV files created by DataExport to modify EventCode/Date.
3. Import CSV file in SQL Server with a bulk insert instruction if possible.

--------

Note that Chrono format is really easy to convert with C/C++/JAVA/C#/ADA/... but not in TSQL or VBA.

DateTime dt = DateTime.FromFileTimeUtc(iChrono);
ctrl_tbxDateTime.Text = dt.ToUniversalTime().ToString("o");

Arnaud

 
Posted : 21/10/2015 6:23 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Thanks Arnaud,

I just add a detail: We have the VBA code to convert chrono date.
We have also the SQL dll to convert chrono date in TSQL

Nico

 
Posted : 26/10/2015 8:37 am