LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loss of very small order values during excel exportation

Solved!
Go to solution

There you go.

The Write to Measurement File function is at the end, all to the right.
function+.PNG

0 Kudos
Message 11 of 28
(2,394 Views)

The Write To Measurement File Express vi uses the %g format to convert a number to a spreadsheet string. This formatting works fine with 4.457E-12. In the resulting excel file, what is the cell format of the faulty result? Since it is a string that contain both digits and letters the format is probably set to General (or Standard, I don't have an English version of Excel) and that may cause the issue. Try formatting the cell to scientific with enough decimals.

 

Ben64

0 Kudos
Message 12 of 28
(2,386 Views)

scientific.PNG

 

Doesn't change anything Smiley Sad

 

I believe it's not an Excel issue because as I posted before nubers until the 6th place after the decimal mark are reported.

 

I need to expand the digit I can carry after the exportation.


0 Kudos
Message 13 of 28
(2,372 Views)

I think this Forum post still applies and you're running into a limitation of the Express VI when exporting to Excel. You can export to other formats fine.

0 Kudos
Message 14 of 28
(2,369 Views)

I've trimmed down and am experimenting.  I'm seeing the same issues with the conversion.  I'm trying to dig deeper into the Express VI to see where it is happening.

0 Kudos
Message 15 of 28
(2,357 Views)

I see, but I need the excel file I guess I'll multyply to a power of 10 to elide some zeroes.

Thank you though 

0 Kudos
Message 16 of 28
(2,345 Views)

@mattecst wrote:

I see, but I need the excel file I guess I'll multyply to a power of 10 to elide some zeroes.

Thank you though 


Do you really need the Excel? A lot of times people think they need Excel but they'll get all the same behavior from a .csv. Rather than multiply by powers of 10, the other option would be to dig into the ActiveX Excel calls and push the data that way.

0 Kudos
Message 17 of 28
(2,333 Views)

You don't really export an excel file with this function.  You may be naming it with an XLSX file extension but it is just a delimited text file.  You can confirm whether it's excel causing the issue by opening the file in a text editor.  

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 18 of 28
(2,325 Views)
Solution
Accepted by topic author mattecst

@aputman wrote:

You don't really export an excel file with this function.  You may be naming it with an XLSX file extension but it is just a delimited text file.  You can confirm whether it's excel causing the issue by opening the file in a text editor.  


With the Express VI, it looks like it does actually export an Excel file. Write to Measurement File actually creates binary files. Write to Spreadsheet or Write Delimited create much happier text delimited files.

0 Kudos
Message 19 of 28
(2,310 Views)

I don't really need an excel file what I need a convenient and organized table where I can see al the values.

Is it possible with the .csv?

0 Kudos
Message 20 of 28
(2,304 Views)