12-07-2010 08:01 AM
Hi
I am using LabVIEW to control a test machine. The user is required to log data from several sensors. I am currently using TDMS to do this which works well. However, the operator of the machibe will be required to run several tests, each with a different data log filename to differentiate between the tests.
Currently my code runs and the user is prompted to enter the data log filename before the code inside the main while loop (which controls the machibe and logs data) will run.
Is there a way to change the TDMS data log filepath on the fly? I want to avoid the user having to quit out of the software and reload it just to enter a new filename.The only solution I can currently think of is to log each data set under a new group name within the same file.
Can anyone suggest an alternative solution?
Thanks
John
12-07-2010 09:18 AM
I think the solution is simply to close the old file reference and open a new one with the new filename. I am not sure, however, I understand the issue you're facing.