This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: GUI Composer v2: formatting number box as hex

Part Number: LAUNCHXL-F28379D


I have a number of number boxes in GUI Composer V2 that I want to display in hexidecimal.  In section 4.3 of the User's Guide it shows how to do it.  However, it doesn't work!

My number boxes have ti_model_program bindings to global variables in my code.  If I simply list the variable, I get the decimal representation.  If I do this:

Replace "targetVariable" with "targetVariable.$hex#", this will display targetVariable in hex format. # specifies number of digits to use for display e.g. .$hex4 will display 0x0000

The the output is either zero, or a decimal number, but never a hexidecimal number.

for example, my binding is:

OWI.ch1_regs[0]

which is declared as

struct OWI_struct {
    Uint16 ch1_regs[2];     // array of bits to write to port
    ...
}

This displays correctly in decimal.  But when I put in this:

OWI.ch1_regs[0].$hex4

The number box diplays "0".

I managed to have a text box display as hex, but not with OWI.ch1_regs[0].  it only worked for a Uint16 set equal to OWI.ch1_regs[0].