LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with "Read Delimited Spreadsheet"

Solved!
Go to solution

Hey everybody,

 

I am very new to Labview and currently trying to read a CSV file containing 3000 Datapoints measured by an oscilloscope into Labview for some analysis. The format is as follows:

Labview1.png

For this, I am using the "Read Delimited Spreadsheet" vi, with two probes to debug my problem:

Labview2.png

The Probe 9 shows, that the string is read correctly: 

Labview3.png

 

however no matter which format specifier I use for the "Spreadsheet Strong to Array Function", the output at Probe 8 always ends up like this (converted to integer for some reason?):

Labview4.png

 

Since the examples for the Format Specifier Syntax did not feature Input in scientific notation, I am assuming this might be the problem. Is there any way for me to get an ouput in scientific notation using this vi, or do I need to do something more complicated?

 

Any help is appreciated

Naeryan

 

Message 1 of 3
(4,513 Views)
Solution
Accepted by topic author Naeryan

Hi Naeryan,

 

which decimal separator is used in your regional computer settings?

Try the format code "%.;%f" to force the point as decimal separator!

 

Don't forget to use the comma as separator in SpreadsheetStringToArray…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(4,490 Views)

wow, that did actually fix the problem. I just changed the "use localized decimal point" option and now it even works without your format code. Seems like a somewhat counterintuitive thing to have as a default setting. 

 

Thank you for the quick help

 

Naeryan

0 Kudos
Message 3 of 3
(4,482 Views)