LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read, write datalog file only once

Solved!
Go to solution

Can anyone tell me why I can only read/write to a datalog file once.  After the file is created, written to and read from, it won't work the second time.  I tried setting the position without success although the default position is at the start of the file and the first record.

 

Thanks

Matt

0 Kudos
Message 1 of 5
(2,336 Views)

What do you mean by "no data when reading"?

 

When I run your VI, it saves the data to a file, then reads it okay.  Change something, save again.  It reads again, but the original data.  I think because you are basically appending data to the end,  but when you read back, you only get the first or original data.

 

What are you really trying to do?  These are fairly complicated clusters and look like something that you should be using config files for or the OpenG cluster file tools.

Message 2 of 5
(2,325 Views)
Solution
Accepted by topic author Mattjk
0 Kudos
Message 3 of 5
(2,310 Views)

I think you are writing it every time, but since it was not replacing the old file, it probably adds it on to the end and when you read it the next time, your indicators don't show what is all the way at the end, just what was written the very first time.

0 Kudos
Message 4 of 5
(2,308 Views)

Thanks for the answer.

0 Kudos
Message 5 of 5
(2,280 Views)