cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

build hexadecimal string into byte array

¡Resuelto!
Ir a solución

Thank you again! Now I understand how to replace any of the elements in the command string.

0 kudos
Mensaje 11 de 15
820 Vistas

The visual of the numeric representation for array constants on the block diagram was very helpful.  How can I do that?

0 kudos
Mensaje 12 de 15
808 Vistas

@kierzie123 wrote:

The visual of the numeric representation for array constants on the block diagram was very helpful.  How can I do that?


I just show the label of the array element and manually type whatever is appropriate.

 

(Are you really sure you want the output as an array of U8 and not an array of U16 of half the length? It seems the original data is words (2 bytes))?

0 kudos
Mensaje 13 de 15
801 Vistas

What an elegant idea.

As you noticed, I am not yet sure which approach I should use.  Both methods appear to work on a small sample of the command set. I believe the nibble is the original board data size but the PC is getting bytes back from the test program on the board.

 

 

 

0 kudos
Mensaje 14 de 15
794 Vistas

@kierzie123 wrote:

I believe the nibble is the original board data size but the PC is getting bytes back from the test program on the board.


A nibble (i.e. one hex character or 4 bits) is half a byte.

 

Your original data is in the form of 0xHHHH, i.e. two bytes (e.g. U16) and I would think it should be treated as such.

0 kudos
Mensaje 15 de 15
782 Vistas