LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Logging

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

Download All
0 Kudos
Message 1 of 4
(2,444 Views)

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.

-----

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

If you are using decimal number, you should write %d instead of %f.

PBP
Labview 6.1 - 2019
0 Kudos
Message 3 of 4
(2,426 Views)

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 .

 

0 Kudos
Message 4 of 4
(2,414 Views)