LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV preventing OneDrive sync on data file until vi stops

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.

0 Kudos
Message 1 of 2
(842 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(831 Views)