DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting DDC_ReplaceNotSupportedForSavedTDMSData from DDC_AppendDataValues call

Hello,

My application is post-processing and saving data of each channel in a different thread, using DDC_AppendDataValues. 

It works for awhile, but after few Giga of data, I'm getting the following error code: DDC_ReplaceNotSupportedForSavedTDMSData= -6226.

Does  DDC_AppendDataValues support multithreading at all (one thread per channel), or should I look for the source of the problem somewhere else?

Thanks

0 Kudos
Message 1 of 2
(5,239 Views)

Hey hpeled,

 

After about how much data do you get the error? Is it the same amount each time? After looking into this, I found that error has this message attached to it:

 

"The replace operation is not supported on data that has already been saved to a TDM Streaming file."

 

source: http://zone.ni.com/reference/en-XX/help/370051V-01/cvi/libref/cvidiademlibraryerrors/ (after doing a search for -6226)

 

This error seems to indicate that you are trying to save the data that you have already saved with your script. To me, this seems like there are multiple threads going over the same channel. I would say you need to make sure the threads only have access to one channel at a time. There also maybe be a resource that one of the threads is not releases when another thread tries to access the resource. Try running this in as a single threaded application and see if the error still happens (if this is possible), then try to look for any situations in your code that can cause thread locks or instances where resources are not being released. 

 

Best,

 

-KP

Kurt P
Automated Test Software R&D
0 Kudos
Message 2 of 2
(5,214 Views)