10-28-2022 11:59 AM
I've searched for similar problems with no luck. So just throwing this out there.
I have a main VI running a motor test stand. It uses a producer/consumer loop to write data over long periods of time (several hours at least) to a tdms file using the Write to Measurement File vi. The main VI also controls the motor so I can't start/stop the VI while the system is running. I'll usually change to a new output data file when moving to a new condition (makes it easier to post-process later on a different computer). In order to make sure data is available to other parties I write the files directly to a OneDrive sync-ed folder.
But I've found that OneDrive won't actually upload a data file until I stop the VI. Even if I'm no longer writing to it. Any idea on how to get LV to release the file without stopping the VI? Or is this more of a windows issue I just have to live with.
I'm using LV2019 still, but have had this issue on older versions of LV.
10-28-2022 12:39 PM
Do you use a TDMS Write file Express VI? That would be likely the culprit.
The file is locked as long as it is open for writing. If you opened it explicitly yourself you could also close the refnum once you are finished and then it should be possible to process it by OneDrive.