NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Message-Popup: How to display a number (from variable) in hex-format?

Solved!
Go to solution

Hello,

i have a numeric FileGlobal that is display in a MessagePopup-step with str(FileGlobal.param1)

How can i change this that it display the number as hexvalue.

For example if Number is a 10, then the MessagePopup should display a 0xA.

Thanks for help

0 Kudos
Message 1 of 4
(5,746 Views)
Solution
Accepted by topic author OnlyOne

HI,

 

You should try this expression Str(FileGlobal.param1,"%X",1 ,True)

 

 

Hope this helps

Rodéric L
Certified LabVIEW Architect
Message 2 of 4
(5,744 Views)

I have a FileGlobal String with is an ASCII String with 
How can I change this that is displayed as HEX String  like \x01\x02 ?

Is there someting like str(FileGlobal,"%x") ? -> this does not work 😞
Thanks

0 Kudos
Message 3 of 4
(5,386 Views)

What you are wanting to do is escape the bytes of the string. Is this a LabVIEW binary string? What exactly are you trying to do? What is in the string that you are trying to escape?

 

-Doug

0 Kudos
Message 4 of 4
(5,371 Views)