LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a space&comma every 2 characters in a string?

need to turn this string: 60F87E00, into 60, F8, 7E, 00

0 Kudos
Message 1 of 9
(3,056 Views)

Take a look at the functions available in the string palette and give it a try.  Maybe String Subset and Concatenate in a loop would be a good start???  

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 2 of 9
(3,034 Views)

Snip.pngSnip.png

 

Somebody here can probably reduce this to the size of a postage stamp.

 

EDIT: You can use Array to Spreadsheet to add commas, spaces etc. You should be able to figure it out.

0 Kudos
Message 3 of 9
(3,007 Views)

@mshaske wrote:

need to turn this string: 60F87E00, into 60, F8, 7E, 00


Are you even sure this is a string?  It looks suspiciously like a 32-bit integer and those are the values of the bytes.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 9
(3,001 Views)

@billko wrote:

@mshaske wrote:

need to turn this string: 60F87E00, into 60, F8, 7E, 00


Are you even sure this is a string?  It looks suspiciously like a 32-bit integer and those are the values of the bytes.


Snip.png

0 Kudos
Message 5 of 9
(2,997 Views)

@mcduff wrote:

@billko wrote:

@mshaske wrote:

need to turn this string: 60F87E00, into 60, F8, 7E, 00


Are you even sure this is a string?  It looks suspiciously like a 32-bit integer and those are the values of the bytes.


Snip.png


You ruin all the fun.  😄

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 9
(2,992 Views)

How's this:

rs.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 7 of 9
(2,947 Views)

So maybe each byte represents 8 status bits?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 9
(2,944 Views)

This is better:

rs2.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 9 of 9
(2,943 Views)