LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

split 1D array of string with spaces into solitary segments

Solved!
Go to solution

@dimani4 wrote:

if you want to remove it.. remove it.. I didnt find that option here... just I've searched through the internet and didn't find nothing to answer my needs. I didnt know about that primitive function that you've mentioned.. now I'll know.... sorry for bothering with my "good will".


remove what?

What did you search for?

What are your needs?

 

it is still completely unclear what you actually try to do.

0 Kudos
Message 11 of 13
(1,355 Views)

ok... let me explain:

 

yes, I did mistake ; I didnt write right my topic: it should be: split 1D array of string with spaces into segments.

I've searched for that kind of thing that would do like:

?NS 120.0 ok ->

?NS

120.0

ok

 

and by the way I found (too late) what I need in another post: http://forums.ni.com/t5/LabVIEW/Scan-String-Token-Problem-with-leading-Tokens/m-p/2170672#M698499.

 

 

 

0 Kudos
Message 12 of 13
(1,347 Views)
Solution
Accepted by topic author dimani4

sorry once again.. but I found something interesting: my specific device (ACTON 275) gives me at output something like: ?NM 120.0  ok.. i.e. after 120.0 there is two spaces and this example (http://forums.ni.com/t5/LabVIEW/Scan-String-Token-Problem-with-leading-Tokens/m-p/2170672#M698499) will not work; it will not gives back ok but the while loop option will work; so my case is for the cases if between the solitary strings there are one two or more spaces between the solitary strings like: "?NM 120.0  130.1   67        68                                    89" and etc. it will give the

?NM

100.0

130.1

67

68

89

this case just scans till the end of the string and gets out all the values that 1D string has.

0 Kudos
Message 13 of 13
(1,333 Views)