01-19-2014 02:26 AM
Hi,
I run a program that uses libdbc lib.
On some machines I get an error DDC_MaximumNumberOfDataValuesExceeded from DDC_AppendDataValues call, after few hours of run, appending 25,000 doubles every second.
On other machines I can run 8 hours and more, appending 50,000 doubles every second, with no problem.
What is the limit of the number of data values per channel? does it depened on the machine memory?
Thanks,
Hadas
01-20-2014 05:11 PM
Hi Hadas,
Take a look at the following KnowledgeBase article: http://digital.ni.com/public.nsf/allkb/B391603F3CD86AE486256FAC00780122
Let me know if this is helpful or if you have any additional questions!
01-21-2014 02:00 AM
Hi Hadas,
the difference could be the calling sequence of your code.
Theer should be a
DDC_SaveFile
after you inserted your first chunk.
Background:
If an DDC_SaveFile is inserted at this point The structure will be written to file. Further appends will normally directly go to file.
Sequence:
Is it possible that this explains the different behavior?
01-21-2014 03:26 AM
Thanks Andreas,
I do call DDC_SaveFile, in the following sequence:
As I mentioned above, on some machines it is running with no problems for 8 hours and more, generating TDMS file of more than 600GB.
The error message occurs after few hours of run, I'm not sure how many; I'm checking it with the customer.
01-21-2014 03:43 AM
In case of TDMS a single chunk of all channels will stay in memory until you call DDC_SaveFile.
01-21-2014 03:53 AM
01-21-2014 04:02 AM
What is the content of the logfile?
01-21-2014 10:44 AM
Hi hpeled,
If the target computer has CVI on it, why don't you use the native TDMS API in CVI to read and write these TDMS files?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-23-2014 01:59 AM
Sorry, actually it's standalone.
As for the rest of the data, I'm waiting for the customer reply.
Thanks for the help