Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to write to a TDMS file and only save the changes if a certian condition is true

I am writing data to a TDMS file every 10ms.  I have Autosave set to false.  After some period of time I will know if I want to keep the data or not.  I thought I could call the Save method and all my changes would be saved to the file and if I simply closed the file then nothing would be saved.  However, I found that nothing is saved to my file regardless of weather I called Save prior to Close or not.  Any ideas?

 I suppose the other option is to turn AutoSave on and simply go back and delete the unwanted files.  But that seems inefficient.

 

Never mind, I found out the problem was in my code.  Imagine that!

0 Kudos
Message 1 of 1
(1,882 Views)