01-19-2009 01:59 AM
"Prompt user for input" function gets decimal number as input. Is there any way to get a hexadecimal input from the user at runtime?
Solved! Go to Solution.
01-19-2009 02:05 AM
Hi mathan,
you can use a string control with Hex Display. You have to transform the string in whatever you need.
Mike
01-19-2009 02:34 AM
Dear mike,
Thanks. Actually, i had some 25 controls in my front panel and i need one specific control to get user input at runtime. That particular input needs to be highlighted so that it can be easy to identify. Like "Prompt user for input" function, if there is a dialog open and ask the user to input the hexadecimal value directly, it will be very convenient.
Any suggestions?
Thanks,
Mathan
01-19-2009 03:03 AM
Hi mathan,
you can write your own input dialog. Use a new vi with a string control (hex display), an event structure, and the tranformation cod. Connect this to an indicator to write the new value into your specified control.
Mike
01-19-2009 03:18 AM
01-19-2009 03:36 AM
just add an e... transformation code.
Transform the string into the needed format before returning it.
01-19-2009 03:43 AM - edited 01-19-2009 03:44 AM
Ahhhhhhh am very silly. Thanks for that dan_u.
Mike, I will try and let you know soon.
01-19-2009 04:37 AM - edited 01-19-2009 04:38 AM
Hai guys,
I tried this one and seems to be OK. Anyway mike your suggestion is also a nice one. Thanks a lot.
Mathan
01-19-2009 04:45 AM