From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
This feature was just released with DIAdem 2012. You could use the format instruction 'str' to do the following:
Use '$' to display numeric values in hexadecimal format. If more characters follow after the first $ character, DIAdem uses this character as the prefix for the result, for example:
Call MsgBoxDisp(str(1234,"$0x")) ' => 0x04D2
If further $ characters follow after the prefix, these characters indicate the number of places. DIAdem interprets all characters behind the last $ character as postfix, for example:
Call MsgBoxDisp(str(1234,"$ $$$$$$$$hex")) ' => 000004D2hex
If no further character follows after the first $ character, DIAdem shows the number to be formatted as a hexadecimal value and uses the $ character before the numbers as ID for the hexadecimal display: Call MsgBoxDisp(str(1234,"$")) ' => $04D2
The DIAdem prefix for hex data is $ and as I am aware you must use this. Most programs use the prefix 0x. There should be an option to chose one, the other or none.
James Mc ======== CLA and cRIO Fanatic My writings on LabVIEW Development are at devs.wiresmithtech.com
This feature was just released with DIAdem 2012. You could use the format instruction 'str' to do the following:
Use '$' to display numeric values in hexadecimal format. If more characters follow after the first $ character, DIAdem uses this character as the prefix for the result, for example:
Call MsgBoxDisp(str(1234,"$0x")) ' => 0x04D2
If further $ characters follow after the prefix, these characters indicate the number of places. DIAdem interprets all characters behind the last $ character as postfix, for example:
Call MsgBoxDisp(str(1234,"$ $$$$$$$$hex")) ' => 000004D2hex
If no further character follows after the first $ character, DIAdem shows the number to be formatted as a hexadecimal value and uses the $ character before the numbers as ID for the hexadecimal display: Call MsgBoxDisp(str(1234,"$")) ' => $04D2