Page 1 of 1

Exporting value archive

Posted: Wed Apr 26, 2023 3:45 pm
by Smiffy
I wish to read in the data from a value archive (the VAnnn files) and export it into another files in my own format.
I would like to perform this in control scripting.
I have searched the help files, but there seems to be no specific functions to access compressed archive files.
I have seen that there is a va.ctl script library that has functions that seem to offer this service, but I have no idea how they work.
Can anyone give me any pointers please?

Re: Exporting value archive

Posted: Wed Apr 26, 2023 10:42 pm
by kilianvp
You can't read "VAnnn files" directly! But you can get the Data via dpGetPeriod. (If you have alot Data use dpGetPeriodSplit for better performance).

Re: Exporting value archive

Posted: Thu Apr 27, 2023 9:22 am
by leoknipp
In the WinCC OA Documentation you can find a list of functions to read data for DP elements:
https://www.winccoa.com/documentation/W ... ionen.html

For details please have a look at the detailed explanation for every function.

Best Regards
Leopold Knipp
Senior Support Specialist