LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

split number data string

Solved!
Go to solution

Hello Darin.K,

I have similar problem can plz solve it

INPUT = 25.656;25.659;25.669;25.679;25.684................

I have input like this then how u will devide this numbers and save it in array

I know to save in array but I don't know how to split the values

looking forward for your support

regards,

vinay

0 Kudos
Message 11 of 15
(819 Views)

Use Spreadsheet string to array function with ; as delimiter.

then you will get the values as

25.656

25.659

25.669

25.679

25.684

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
Message 12 of 15
(812 Views)

hello palaniveIT,

 

thank u I got it but one more problem I identified while running the program is

as u can see in attached pictures there is data in two line and I can successfully transferd to the array but I observed in graph that

there is a two line in graph I need single graph value with whole data how can I do it

 

regards,

Vinay

0 Kudos
Message 13 of 15
(801 Views)

hello palaniveIT,

 

thank u I got it but one more problem I identified while running the program is

as u can see in attached pictures there is data in two line and I can successfully transferd to the array but I observed in graph that

there is a two line in graph I need single graph value with whole data how can I do it

 

regards,

Vinay

Download All
0 Kudos
Message 14 of 15
(801 Views)

Hi Vinay,

 

you have two lines with 5 values each.

You convert this text into a 2D array with 2 rows and 5 columns.

You display that 2D array in your graph, which uses one plot per row.

 

What else do you expect?

What do you want?

 

When you only need one plot of all 10 values you need to reshape the array. (Or append the rows to get a 1D array…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 15 of 15
(798 Views)