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: 

Classify string bytes per bytes

Hi,
 
I would like to be able the classify a 49 bytes string into many others string
 
For exemple:
 
I have the following hexa string;

0000 3F6E FBBF 0000 0000 0000 0000 4161 785E 0000 0014 14AF 0115 0000 000008003100 0000 0501 01 00 0000 00 00 00F6 0CBC F0

 

I want to extract the 8 bytes (starting at left) and put it in a string box, take the next 4 bytes and put it in an other string box and do it until the end...

The result should be;

 

String1:  0000 3F6E FBBF 0000

String2:  0000 0000

String3:  0000 0000 4161

Etc...

 

Do somebody have an idea?

 

Thanks for your support,

RiderMerlin

 

 

0 Kudos
Message 1 of 6
(3,272 Views)
Anyone?
0 Kudos
Message 2 of 6
(3,266 Views)
Hi,


The string subset function does that. And also the split string function...


Regards,


Wiebe.


"Ridermerlin" <x@no.email> wrote in message news:1157559010009-412834@exchange.ni.com...
Hi,
&nbsp;
I would like to be able the classify a 49 bytes string into many others string
&nbsp;
For exemple:
&nbsp;
I have the following hexa&nbsp;string;



0000 3F6E FBBF 0000 0000 0000 0000 4161 785E 0000 0014 14AF 0115 0000 000008003100 0000 0501 01 00 0000 00 00 00F6 0CBC F0


&nbsp;


I want to extract the&nbsp;8 bytes (starting at left)&nbsp;and put it in a string box, take the next 4 bytes and put it in an other string box and do it until the end...


The result should be;


&nbsp;


String1:&nbsp; 0000 3F6E FBBF 0000


String2:&nbsp; 0000 0000


String3:&nbsp; 0000 0000 4161


Etc...


&nbsp;


Do somebody have an idea?


&nbsp;


Thanks for your support,


RiderMerlin


&nbsp;


&nbsp;
0 Kudos
Message 3 of 6
(3,256 Views)
Just use the String Subset function. You specify the offset and length.
0 Kudos
Message 4 of 6
(3,254 Views)
Just for the fun, here is an unusual method to do the job.
 

Message Edité par chilly charly le 09-06-2006 07:08 PM

Chilly Charly    (aka CC)
Download All
0 Kudos
Message 5 of 6
(3,249 Views)
Arghhh 😠 ... 49 bytes !.. I lost the last !

Message Edité par chilly charly le 09-06-2006 07:11 PM

Chilly Charly    (aka CC)
0 Kudos
Message 6 of 6
(3,245 Views)