LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace 2 different bytes in 1D array

Hello,

How can I Replace 2 different bytes(in my case 2 hexadecimal numbers) in 1D array? I have an 1D array with random hexadecimal numbers continuosly flowing and in that array i have to replace 2 types of numbers. F. E. I have to replace A1 with B1 and A2 with B2 at the same time.

Can anyone show me how can I solve it?

0 Kudos
Message 1 of 3
(2,918 Views)

And also i´d like to know if i can replace 1byte with 2 (For example that A1 with B1 and B2). And how can i do it, if its possible.

0 Kudos
Message 2 of 3
(2,904 Views)

Use Replace Array subset to replace the first and Insert into Array to insert the second.

 

OR

 

Use Delete from Array to delete the first, and then Insert into Array to insert the two new ones.

0 Kudos
Message 3 of 3
(2,884 Views)