From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Split string with no delimiters

Solved!
Go to solution

@john7 wrote:

may be in the same topic i can ask another question - how to assemble the resulting array 1 01 00 02  with dots - like 1.1.0.2 ?


SInce you also want to eliminate leading zeroes, you should convert to U8, then use "array to sreadsheet string" using a period as delimiter and a %d as format.

0 Kudos
Message 11 of 15
(875 Views)

@john7 wrote:

Kinda trite topic, but...

I have a string say 1010002. I need to split it  itno two digits groups - 1 01 00 02, if it's uneven - so MSB stands alone.

Thanks in advance.  🙂


Can we get clearer specification?

What is the maximum string lenght? what is the miminum string length? Are all characters decimal digits or can there be other characters?

 

Later you eliminated leading zeroes from each group. Is that what you really want?

 

For example if the string is always 7 or 8 decimal (or even hex) characters, the following would do.

 

 

Message 12 of 15
(862 Views)

i'm not sure but suppose the string has a fixed lenth. the last one real nice! Well done ! 🙂

0 Kudos
Message 13 of 15
(839 Views)

'I'd go into vi.lib under advanced string and use join strings with "." as the delimiter


"Should be" isn't "Is" -Jay
Message 14 of 15
(829 Views)

@meetjack wrote:

is there any example code for this ?


You are posting at the end of a long thread that discusses several things, and shows quite a bit of example code already.

 

So please explain what you mean by "this". Thanks.

 

(Since this thread is marked as solved, and you apparently want a different solution, you should maybe start a new thread instead).

0 Kudos
Message 15 of 15
(743 Views)