12-11-2015 01:31 PM
Hi guys, I am stuck by the problem of how to write a series of tdms files with each file has a fixed size from continuous analog sound recordings. Each file is named by the time stamps. The solution that I am trying at this moment is to create a new tdms file every a few seconds (the condition) using the tdms open function. This idea involves a case structure to judge the condition. When it is true, the new file name is created and then the tdm open function is called. When it is not true, I'd like to use the file name earlier created. However, I don't know how to access to the file name that is created earlier, and thus I am not able to wire the false conditon of the case structure. Any help would be appreciated.
Solved! Go to Solution.
12-11-2015 01:35 PM
"When it is not true, I'd like to use the file name earlier created. "
No, do not use the earlier file name, but the TDMS File reference. Store it in a shift register, and rewrite it with the new TDMS File ref when a new file is created.
Try to create a simple small VI for testing, and upload it here so we can have a look where you got stuck...
12-11-2015 02:08 PM
Dear Blokk, thanks for your fast reply.
I cut the part out of my program (attached). This moment it is not working, as the false condition for the case structure is not wired.
You mentioned to use the shift rigister for my application, but I could not figure out how to use it exactly. Could you please explain me in more detail? I am very new to Labview, and actually this is my first program to build. Thanks a lot!
12-11-2015 02:09 PM
I cannot open your VI, downconvert it into version 14.
12-11-2015 02:12 PM
Sorry. Vonverted to verstion 14. Please have a look.
12-11-2015 02:25 PM - edited 12-11-2015 02:31 PM
Here is a snippet to play with it:
12-11-2015 03:08 PM
Dear Blokk, Thanks very much for your help. I got your idea and have replicated your program. You can be a very good teacher.