LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data is Lost in Recording file

Solved!
Go to solution

I have issue with binary file recording in the RT system

i have started recording from the host system

after some time suddenly power to the RT system is gone

then in rt system,file has been created but data is lost

it is showing 0(zero) bytes

 

Any other faced this issue

 

AB
Kudos are Accepted
0 Kudos
Message 1 of 7
(3,393 Views)

The file might have got crashed due to the power failure. Try to take the data from the RT and write the data to the file in the host system.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 7
(3,380 Views)

Hi vara_prasad,

 

Are you writing the file to storage on the RT system or is the file being written by the host to your PC storage? The power cut may be crashing the program on the RT system before it gets to write the file.

0 Kudos
Message 3 of 7
(3,372 Views)

File may be crashed,but data written before power cut has to be in file ,but it is showing zero bytes

AB
Kudos are Accepted
0 Kudos
Message 4 of 7
(3,346 Views)

I don't think so, the data will be present only when you properly close the file (Correct me if I am worng). I am not that in explaining why so I would look forward for an explanation why

-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 7
(3,344 Views)
Solution
Accepted by AB@17

My understanding is that the data is written, but the indexing to access the data isn't done until the file is closed.  Therefore, the data cannot be accessed.

 

The other possible explanation would be that the data is just being put into a buffer to be sent to the harddrive.  There is a flush buffer function.  Maybe this will help?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(3,329 Views)

In Flush Buffer,it is explained that,data is present in buffer till the buffer is filled

AB
Kudos are Accepted
0 Kudos
Message 7 of 7
(3,281 Views)