annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

How to split characters of 1D array

Risolto!
Vai alla soluzione

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
Messaggio 1 di 9
5.501Visualizzazioni
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
Messaggio 2 di 9
5.494Visualizzazioni
Soluzione
Accettato da 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.



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
Messaggio 3 di 9
5.486Visualizzazioni

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

0 Kudos
Messaggio 4 di 9
5.482Visualizzazioni
Crossrulz guessed it right then 🙂
CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Messaggio 5 di 9
5.474Visualizzazioni

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

0 Kudos
Messaggio 6 di 9
5.470Visualizzazioni

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
Messaggio 7 di 9
5.464Visualizzazioni

@crossrulz - found it, thanks again.

0 Kudos
Messaggio 8 di 9
5.455Visualizzazioni

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
Messaggio 9 di 9
5.431Visualizzazioni