McDermott-Group / servers

Public repo that stores LabRAD servers and other non-measurement related code
0 stars 2 forks source link

[dataChest] file needs to be closed after each operation #117

Open roboguy222 opened 7 years ago

roboguy222 commented 7 years ago

File IO does not work properly if two dataChest's have the same file open. I think everything works fine if each closes the file after reading/writing, so we should do that.

amopremcak commented 7 years ago

What issue is this causing?

roboguy222 commented 7 years ago

If one file is trying to read a file that the other is writing to, getData() returns an old version of the data. I am not sure more data is ever able to write properly to the chest, actually.