ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

split the characters based on the length

Solved!
Go to solution

How I can split string such as "HELLO"  => "H"  "E"  "L"  "L" "O" by using the length 

0 Kudos
Message 1 of 14
(4,851 Views)

Is the right side an array of strings?

String subset in a for loop with i wired to the position and 1 wired to lenght would do. Autoindex at the output tunnel.

Set N to the string length.

0 Kudos
Message 2 of 14
(4,850 Views)
Solution
Accepted by topic author OATTelecom

@OATTelecom wrote:

How I can split string such as "HELLO"  => "H"  "E"  "L"  "L" "O" by using the length 


Yeah Type cast!Smiley LOL

Capture.PNG

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 14
(4,842 Views)

@JÞB wrote:


Yeah Type cast!Smiley LOL 


That was my initial idea, but I was on the bus and decided it was too hard to describe in words to a newcomer. 😄

0 Kudos
Message 4 of 14
(4,839 Views)

@altenbach wrote:

@JÞB wrote:


Yeah Type cast!Smiley LOL 


That was my initial idea, but I was on the bus and decided it was too hard to describe in words to a newcomer. 😄


<tounge-in-cheek mode = True>

I believe that having a Graphical representation of code offers many benefits over text descriptions of code.  Wouldn't you agree?  😄

 

Don't they allow laptops on busses?

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 14
(4,832 Views)

@JÞB wrote:

@altenbach wrote:

@JÞB wrote:


Yeah Type cast!Smiley LOL 


That was my initial idea, but I was on the bus and decided it was too hard to describe in words to a newcomer. 😄


<tounge-in-cheek mode = True>

I believe that having a Graphical representation of code offers many benefits over text descriptions of code.  Wouldn't you agree?  😄

 

Don't they allow laptops on busses? 


The mouse is harder to control due to the rattling and I would need to turn my phone into a WIFI access point to have internet (via LTE) on the laptop. Too many steps. 😄

0 Kudos
Message 6 of 14
(4,826 Views)

Sorry, in addition if I want output in form of binary , what should I do ? 

ex . H = "01001000"


thank you 

0 Kudos
Message 7 of 14
(4,802 Views)

Use "string to byte array" and set the display format of the U8 array to binary, 8 digits, pad with zeroes.

 

(If you want something else, you need to tell us the desired output datatype. E.g. you could format each number into a string containing the characters 0 and 1. (%08b))

 

0 Kudos
Message 8 of 14
(4,792 Views)

how to set the display format of the U8 array to binary, 8 digits, pad with zeroes.

0 Kudos
Message 9 of 14
(4,774 Views)

Display Format for the properties page of the numeric indicator that makes up the array.

0 Kudos
Message 10 of 14
(4,765 Views)