04-16-2013 10:10 AM
Hi,
I am trying to save some simple thermocouple data to a tdm/tdms file. I run my vi and it seems to work just fine. I am using the NI 9213 getting started example as a basis and have added tdms open, tdms set properties, tdms write, and tdms close. I can see the data streaming on the waveform chart but when I hit stop and go look for the saved file I can't seem to find it. What am I doing wrong?
Thank you
Solved! Go to Solution.
04-16-2013 10:27 AM
Can you share your code? Are you getting any errors?
A total shot in the dark, but it seems like when you open the TDMS file you are setting the option to Open when you really want Create Or Open.
04-16-2013 10:48 AM
I set it to create. When I run it once for a new folder it runs just fine but if I try again I get error 6. When I specify the folder I hit current folder. Could you tell me how to share my code? I am new to this. I've seen people have a snippet of their code in the post. How do I do that?
04-16-2013 10:56 AM
The easiest way is to just attach the VIs. If there's more than 3, then zip them up and attach the zip file.
04-16-2013 10:59 AM
here it is
04-16-2013 11:01 AM
A project file does not contain any actual code. You need to attach the VIs.
04-16-2013 11:08 AM
Sorry. Thank for the patience.
04-16-2013 11:28 AM - edited 04-16-2013 11:30 AM
@SRamirez wrote:
I set it to create. When I run it once for a new folder it runs just fine but if I try again I get error 6.
You are specifying a folder? You should be giving a full file path (like c:\temp\blah.tdms). What you might want to do is build a file name based on the data/time. This way you won't have to worry about overwriting files and what not.
04-16-2013 11:33 AM
I think I previously tried that but I got error 7. I put in like test.tdms, a file that didn't exist because I assume its going to create it correct?
04-16-2013 11:39 AM
If the folder that you chose doesn't exist yet, then you will get an error. Can't tell you how many times I ran into that problem.