LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I save a file of numbers with more than 2 decimals?

I am saving a list of numbers that have 5 decimals using the "Write file" vi which makes me loose 3 decimals. Do you know why and what I could do to save all the 5 decimals from each number?
0 Kudos
Message 1 of 3
(2,342 Views)
Hello ninskaya,

do you really use "Write File"? This should save your numbers in binary code and this way you don't loose any accuracy. You should only tell "Read File" the same datatype...
You could also use "Write/Read Spreadsheet File" and give those functions a proper format string. In your cases this might be "%.5f".

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,342 Views)
Hi, thank you very much. It has been very helpful.
Best,
Ninskaya
0 Kudos
Message 3 of 3
(2,342 Views)