LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

one of the data saved incorrectly in a file

After setting manual panel with data and saving it to a file, it turned out that one of the data was incorrect (garbage). Please advice what can cause this. We use Labwindow/cvi 6.0 on a win2000 pc.
0 Kudos
Message 1 of 7
(4,002 Views)
Hi,

How are you saving the data to a file? are you using SavePanelState? or do you use your own binary format?

Make sure that you delete the content of the file before writing noe data to it; it's possible that there are some leftovers in the files that curropted the data.

Please post more details on this so we can help you better.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 7
(4,002 Views)
Hi,
The code is not mine and i don't have more details. Anyway the project team solved the problem (an old corrupted file was used by mistake). Anyway, thanks a lot for your response.
Regards,
0 Kudos
Message 3 of 7
(4,002 Views)
I'm glad this was fixed.

Let us know if you have any further questions.

Juan Carlos
0 Kudos
Message 4 of 7
(4,002 Views)
Sure. Thanks again.
0 Kudos
Message 5 of 7
(4,002 Views)

I just go through with getting started and i have problem in labwindows ,  i want to read data from the file  but i dont know how to do it .

what actually the syntax of  fscanf  function.

0 Kudos
Message 6 of 7
(3,696 Views)

fscanf

int fscanf (FILE *stream, const char formatString[], ...);


for instance

    fscanf( Input_File, "%i", &Ticks_Interval );

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