LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Picking character from a string

Hi guys

How to pick each character of a string containing few character without using a loop. Like "LabVIEW" will become a array of string "L","a","b" etc

Thanks in advance

Niladri

0 Kudos
Message 1 of 4
(3,039 Views)

Why would you not want to use a loop?

 

You could use String Subset in a loop to get each byte.

 

You could alsoe use String to U8 array to get an array of bytes.  Then convert that back to individual string characters by using the typecast function in a loop with autoindexing turned on.

 

Message 2 of 4
(3,038 Views)

Thanks for replying

Yes i am exactly using that method but my string contains 128 chracter and it takes some ms to execute that task i want to execute in under 1ms 

How to do that?

Thanks in advance

 

 

0 Kudos
Message 3 of 4
(3,034 Views)

Unless your computer is ancient, it shouldn't take msecs for that simple operation, especially given a string size of only 128 characters. How did you arrive at the timing exactly?

0 Kudos
Message 4 of 4
(3,028 Views)