Pretty much the same way, sort of. Just create a numeric constant on the block diagram, right-click on it to select Properties, in the "Format and Precision" set it to "Hexadecimal, in the "Data Range" set the data type (for your probably U32), and for good measure, in the "Appearance" tab check the box "Show radix". Set the value of this numeric in the block diagram and you now have a constant that you can wire to your other code. If you need this to be a global, save it into a global variable as a control and set its default value to be the value you want, set it to "Make Current Value Default", and save the global variable.