LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to split characters of 1D array

Solved!
Go to solution

I'm looking for some way to split the 'characters' of a 1D string subarray. For example instead of:

 

1/ AAAABBBB

2/ CCCCDDDD

3/ EEEEFFFF

...

etc

 

so there would be two separate 1D arrays where before there was one:

 

1/ AAAA and also BBBB

2/ CCCC and also DDDD

3/ EEEE and also FFFF

...

etc

0 Kudos
Message 1 of 9
(4,480 Views)
Hi,

Are all your strings the same length or is there any way to know where (which index) to split the strings ?
CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 2 of 9
(4,473 Views)
Solution
Accepted by topic author Sidleg

Something like this?

 

 

Do you have better requirements on where the split should happen?  I somehow doubt you just want a simple split at a constant location.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 9
(4,465 Views)

All the strings are 8 characters, and I need to split them into 2 x 4 characters.

0 Kudos
Message 4 of 9
(4,461 Views)
Crossrulz guessed it right then 🙂
CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 5 of 9
(4,453 Views)

@crossrulz Yes that's it! What VI are you using for that, please?

0 Kudos
Message 6 of 9
(4,449 Views)

Have you not come up with any solution on your own? This is a very basic thing to do. Perhaps you should also go through the free online tutorials.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 9
(4,443 Views)

@crossrulz - found it, thanks again.

0 Kudos
Message 8 of 9
(4,434 Views)

Don't know what happened, but a reply I was responding to disappeared. Oh, well, never mind...


Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 9 of 9
(4,410 Views)