06-21-2011 01:33 PM
@jls wrote:
Hi Stokes,
Another thought came to mind - timestamps. I'm wondering if overlapping (or perhaps using a data structure which doesn't include) timestamps could be a factor here.
If you're taking data straight from the DAQ API in waveform format, for example, the timestamp should take into account the current date/time (i.e. will be different on each run) - we would expect it to append new data even on independent runs of the VI.
However, if you're managing data as DBL arrays or similar, this could be the scent trail to follow as there may not be an explicit timestamp. This could cause a new run (i.e. new file open) to view data at a "default" or without a timestamp and just overwrite previously written data (which was also written the same way).
How does that ring (or not) with your code?
We'll keep trying 🙂
Thanks for the effort but I don't think it's timestamp related... I'm writing the same data to a spreadsheet file which appends that data each time (vi continuosly running or not). However due to the versatile nature of the tdms file format i'd like to use it instead of the spreadsheet file when I sort out this issue...
Unfortunately I got side-tracked with another project today so will have to wait till tomorrow to do further inspection.
Good try though
06-21-2011 02:04 PM
Sure thing - at this point, I think a code snippet or screenshot at least might be the key.
Good luck with the other project in the interim!
06-23-2011 04:04 AM
@jls wrote:
Sure thing - at this point, I think a code snippet or screenshot at least might be the key.
Good luck with the other project in the interim!
Got this issue sorted yesterday... I messed around with a few different things but it seems I forgot to update a cluster using the bundle by name function from a higher level vi. I also broke up my single write tdms function into two write tdms functions where I wrote two 1d arrays instead of 1 2d array.
It's always the silly bugs that take the longest to fix
Thanks for the help, it sparked ideas if not solutions