01-08-2022 02:29 AM
Okayyy, Thank You
I have attached the csv file where i am going to get the data and my current state of the VI
01-08-2022 08:04 AM
Two ways :
1. If all of the data being read from file is numbers, read it numeric format rather than string. This can be done by choosing the file data format in the Read Delimited Sreadsheet.vi (The polymorphic VI selector)
2. The string format data read can be converted to numeric by using Fractional string to number function found under String ---- Number/String conversion on functions palette.
I hope this helps
01-08-2022 10:05 AM
Hi Ranga,
your VI would work when you would debug and correct it…
01-08-2022 10:31 AM - edited 01-08-2022 10:33 AM
Maybe you would want to search the first column for "Curve Data" (without leading spaces, there are some similar fields with leading spaces), then read the following rows as DBL.
Here's one simple possibility. See if this can give you some ideas.
01-12-2022 02:12 AM
Okay guys ,
Thanks for replies.
I tried all the solutions given and couldn't find the solution.
Hence I have attached the original data file and the VI I have been trying
In excel file, There is 20,000 data split into two rows(Row 20 &21), I want to draw waveform with this 20,000 data.
While I read this excel file from LabView I am getting it in a String array and I want to convert it into Numeric array to draw Waveform graph and perform calculations.
For this I tried an VI and couldn't get it done.
I will attach my Excel File and VI.
Please help me with this guys...
Thank you
01-12-2022 04:30 AM - edited 01-12-2022 04:31 AM
Hi Ranga,
your file is using UTF16 encoding:
(Notepad++ screenshot)
Don't do this!
Create a CSV file directly from Excel and don't touch it with any other text editor!
Then use ReadDelimitedSpreadsheetFile to read the data…
01-12-2022 04:53 AM - edited 01-12-2022 04:53 AM
01-12-2022 06:00 AM
Actually that Excel File is Created by another software. So there is no option to change the settings over there.
I am automating the reading the excel file.
So Is there any other option I can do it in LabView to get the waveform using numeric array
01-12-2022 07:54 AM
Hi Ranga,
@Ranga2 wrote:
Actually that Excel File is Created by another software. So there is no option to change the settings over there.
Then that "another software" does not comply to standards. You should correct that "another software"…
@Ranga2 wrote:
So Is there any other option I can do it in LabView to get the waveform using numeric array
You need to convert from UTF16 to ANSI first - before converting this file using LabVIEW functions…