LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loss of very small order values during excel exportation

Solved!
Go to solution

Hello,


I'm occurring this problem while exporting data in Excel through the "Write to Measurement File" function.


I'm measuring a small capacitance, picoFarad order, and it's correctly reported on my front panel output display (example: 4,457E-12) but when I export the data with the "Write to Measurement File" function as an Excel file all the picofarad-order-values are approximated to zero.


This problem doesn't happen if I chose to export the file as a text (LVM format) and the values are correctly reported as the example.


Is there any way out or I am condemned to export the data as a text file?


I also thought that I can multiply that data by a power of 10 in order to have a bigger order but I don't like that way.

0 Kudos
Message 1 of 28
(4,781 Views)

Are your numbers too long?

 

https://support.microsoft.com/en-us/kb/269370

 

 

0 Kudos
Message 2 of 28
(4,767 Views)

It's likely an Excel rounding issue.  Change the formatting of the numbers to display more decimals.

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 3 of 28
(4,751 Views)

@OEM_Dev wrote:

Are your numbers too long?

 

https://support.microsoft.com/en-us/kb/269370

 

 


 


They might be actually but the page you linked says digits past the 15th place are set to zero.. It should show the numbers before the 15th place Smiley Sad

 

 

0 Kudos
Message 4 of 28
(4,745 Views)

@aputman wrote:

It's likely an Excel rounding issue.  Change the formatting of the numbers to display more decimals.



I tried to change the number of decimals but the result is a long series of zeros. 

 

 

I believe that the axpproximation is during the exportation and not in excel. 

 

Table.PNG

0 Kudos
Message 5 of 28
(4,735 Views)

I see from your screen shot that you are using a decimal comma rather than a decimal point.  I'm wondering if that is contributing to your problems, at least for the scientific notation numbers.  (Since the other numbers seemed to have made it through okay.)

0 Kudos
Message 6 of 28
(4,710 Views)

@RavensFan wrote:

I see from your screen shot that you are using a decimal comma rather than a decimal point.  I'm wondering if that is contributing to your problems, at least for the scientific notation numbers.  (Since the other numbers seemed to have made it through okay.)


I don't think it really matters I believe it's just because the computer is set to the Italian settings and we use the comma instead of the mark 

0 Kudos
Message 7 of 28
(4,696 Views)

It may not because the other numbers came through okay.

 

But it also might.

 

Many time issues with converting numbers are causing by using the wrong symbol for the decimal point.  Some LabVIEW functions default to a decimal point.  Some default to whatever the system setting is.  A mismatch between what symbol is used in the file, and what the LabVIEW function is expecting can cause problems.

 

I'm just throwing the possibility out there for something to look into.

0 Kudos
Message 8 of 28
(4,686 Views)

Sure, I appreciate every second you're giving to my cause I didn't mean to sound grumpy.

 

Anyway I was trying with a bigger capacitor and that's the result: 
Cattura.PNG

 

 

But if I try to increase the number of decimals

 

cattura2.PNG

 

Seems like it doesn't go any further than the 6th place after the decimal mark 

 

 

0 Kudos
Message 9 of 28
(4,680 Views)

Dig into the Write to Measurement File some more.

 

I know that some of the other LabVIEW write to file functions default to 6 decimal places and cuts off after that.  It may be happening within that function as well.  (Are you using the blue Express VI?)

 

Can you attach your VI?

0 Kudos
Message 10 of 28
(4,671 Views)