We have written a Windows console app tool for exporting our database into separate dpl files for each dpt by calling WCCOAascii with the correct cmd line for each set of datapoints we wish to export.
This generally works fine but in trying to speed up the export, we tried running WCCOAascii on multiple threads. This worked great to start with - and we managed to half our export time.
However, when running this on a different machine, with the same WinCC OA project running, I see the following errors which don't occur on the first PC we tested on.
WCCOAascii (0), 2021.02.18 11:27:59.136, SYS, SEVERE, 69, Database error, TypeAndIdDb, open
WCCOAascii0:WCCOAascii (0), 2021.02.18 11:27:59.136, SYS, SEVERE, 69, Database error, TypeAndIdDb, open
WCCOAascii0:cannot open TypeAndIdDb
WCCOAascii0:doAsciiOut returned error code: -2
Can anyone offer an explanation of why it might work on one PC but not on the other?
WCCOAascii multiple access
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: WCCOAascii multiple access
When doing an ASCII export the ASCII manager directly reads the files.
Possibly it is a file access problem if you start the ASCII manager several times and a race condition when the ASCII manager tries to open the files.
Is there really a need to speed up the process and to start ASCII manager in parallel?
Best Regards
Leopold Knipp
Senior Support Specialist
Possibly it is a file access problem if you start the ASCII manager several times and a race condition when the ASCII manager tries to open the files.
Is there really a need to speed up the process and to start ASCII manager in parallel?
Best Regards
Leopold Knipp
Senior Support Specialist