DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in reading multiplie files with DEWESoft7 (.dxd) plugin

Hello,

 

when I'm loading multiple files with:

DataFileLoad(sFileToRead,"DEWESoft7","Register")

into the database, I'm getting this error:

 

DIAdem_2017-08-09_10-53-46.jpg

The file is not corrupt, I can Import it for itself.

If the error occurs, then I can't use DIADEM anymore and have to restart it. If i don't i get an additional application error "not enough space"...

 

When a file is imported by my script, specific channel values (31 each file) are picked and copied to a constant channel group and after that the original file data is removed. So in sum there are 25327 values imported until the programm crashes, so I don't assume this is an database size error.

 

Regards

0 Kudos
Message 1 of 7
(3,215 Views)

Can you check the amount of used memory. (Task Manager)

You are using "register" instead of Load.

Maybe the plugin uses lots of memory or has a memory leak.

 

Data loaded into DIAdem is swapped to file when memory is running short.

 

If you only have to access part of the file it might be useful to switch to

DataFileLoadSel

using index or name of the channels or groups.

0 Kudos
Message 2 of 7
(3,198 Views)

Indeed the Memory is filling up but not exceeding although I remove the channel group which represents the reading data and I dispose the DataFileLoad-object, in addition the type "Import Action" doesn't matter:

Error at DataFileLoad with "Load"Error at DataFileLoad with "Load"Error at DataFileLoad with "Register"Error at DataFileLoad with "Register"

There is no dump file...

When I'm using DataFileLoadSel, some of the channel values or properties that I get by calling

Data.Root.ChannelGroups(groupIndex).Channels.Item(channelName).Properties.Item(channelProperty).Value

surprisingly can't be read out....??? (Although I can see the values in the data portal)

 

0 Kudos
Message 3 of 7
(3,167 Views)

Btw. when I'm importing all files manually in the navigator, about 700 files can be read out, then exactly the same error occurs - the plugin can't be found anymore / the plugin-selector doesn't show it anymore and the DIAdem memory is corrupt and the program is unstable...

0 Kudos
Message 4 of 7
(3,160 Views)

So I assume the plugin seems to have memory leak.Smiley Frustrated

 

Can you give me the DIAdem version you are using.

 

From your post I assume that you load thousands of files.

Would it be possible to splt the job into multiple jobs and restart DIAdem between.

Maybe  you can use a DIAdem `Worker` (see DIAdem help) to do the chunks.

 

P.S.: Can you provide an example file

 

0 Kudos
Message 5 of 7
(3,159 Views)

Systeminformation_2017-08-10_10-34-05.jpg

plugin version is 1.2.0.6511

0 Kudos
Message 6 of 7
(3,153 Views)

My actual workaround: exporting the data files in DEWESoft7 to dat/r32-file, then reading the DIAdem files with the (same) script - works fine, no memory Problems and 10 times faster (2 minutes instead of 20 minutes for 1000 files) Smiley WinkSmiley Very Happy

Message 7 of 7
(3,138 Views)