LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ArrayToFile precision. Can the default precision be increased above 6 ?

I am using the ArrayToFile function which has a precision of 6 decimal places.  This is the default in the Formatting and I/O Library.

 

Is there a way to change the precision above 6 ?

 

Thanks in advance.

 

 

0 Kudos
Message 1 of 3
(3,217 Views)
As stated in the function help, this is the precision used when saving in ASCII format and as far as I know it's not possible to alter it. Nevertheless, this precision is considered only when an ASCII file is produced: on a binary file the full double number is stored on disk so the maximum allowed precision is obtained with a significantly smaller file size at the cost of loosing human readability. If you need to write an ASCII file with more than six digits you will need to develop your own formatting function.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,215 Views)

Thanks Roberto, I was in hope that a hidden attribute might be available.  Unfortunately I have to maintain compatibility with existing ASCII files so I will have to write my own function.

0 Kudos
Message 3 of 3
(3,206 Views)