12-11-2014 12:46 AM
Hi,
I am working on data logging ,and facing some minute problem with it.
when data is saved to the text file it contains additional 00000 after the actual decimal value which should not be there according to the logic.
I am attaching a vi as well as the snapshot of the text file with the problem and have circled the extra zero's in it.
please help me with the solution.
Thanks
shivkant paswan
12-11-2014 01:04 AM
That is because you have configured as float and by default it takes the system decimal (6). Try changing it to decimal and see what happens.
12-11-2014 01:27 AM
If you are using decimal number, you should write %d instead of %f.
12-11-2014 02:07 AM
hey ,
thanks guys i got it .
infact i had tried this earlier but dont know why i was not getting the desired result.
but now its working fine.
Thanks a lot .