LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove string value

Solved!
Go to solution

Hi, 

 

My current board have data counting number as example below. The data will have number starting 1 until 10 and will loop until vi stop. I want to remove the counting number in the data string (bold character below) and remain the (0.3456) value as data output.

 

Current string : 1.0.3456

                         2.0.3456

                         3.0.3456

                         4.0.3456

                         5.0.3456

                         6.0.3456

                         7.0.3456

                         8.0.3456

                         9.0.3456

                         10.0.3456

        

Thank you.

0 Kudos
Message 1 of 4
(742 Views)
Solution
Accepted by topic author Anna_10

Hi Anna,

 

you really should implement a better string formatting when separating numeric values!

 

Suggestion:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(729 Views)
Solution
Accepted by topic author Anna_10

Hi,

 

You can use a combination of "Spreadsheet String to Array" and "Match Pattern" to remove the unwanted prefix from your string:

 

raphschru_0-1687333605974.pngraphschru_1-1687333618987.png

 

But as said GerdW, maybe the initial formatting could be improved to prevent mixing value separators with decimal separators.

 

Regards,

Raphaël.

0 Kudos
Message 3 of 4
(726 Views)

Thank you for your help. Really appreciate !

0 Kudos
Message 4 of 4
(714 Views)