12-21-2023 10:16 AM
Thank you again! Now I understand how to replace any of the elements in the command string.
12-21-2023 11:01 AM
The visual of the numeric representation for array constants on the block diagram was very helpful. How can I do that?
12-21-2023 11:22 AM
@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))?
12-21-2023 12:35 PM
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.
12-21-2023 01:54 PM
@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.