08-10-2020 05:50 AM
Hi, Can i know what modification can I make to let the display differentiate between floating point and decimal. For example, when I input 2+2. I would like the output of 4 instead of 4.000. And when the input is 2.2 + 2.2, how to get the output of 4.4 instead of 4.4000. And also would like to have keep 4 decimal for trigonometry function.
Solved! Go to Solution.
08-10-2020 05:53 AM - edited 08-10-2020 05:54 AM
Hi tan,
set the display format of your indicator to "hide trailing zeros"…
08-10-2020 07:46 AM
But the indicator in the VI is string type. There is no option to set hiding trailing zero for that string indicator.
08-10-2020 08:16 AM - edited 08-10-2020 08:25 AM
Hi tan,
@tan99323 wrote:
But the indicator in the VI is string type. There is no option to set hiding trailing zero for that string indicator.
In this case you are doing the NumToString conversion before displaying the result in an indicator.
Use FormatIntoString with the format string I mentioned in the other message…
(Now it would help to provide your VIs for older LabVIEW versions like my LV2017.)
08-11-2020 02:16 AM
In case to enable insert numpad input while the VI is running, what modification can I make ? So user can input date from numpad instead of press those boolean button.
08-11-2020 03:28 AM
Hi tan,
@tan99323 wrote:
In case to enable insert numpad input while the VI is running, what modification can I make ? So user can input date from numpad instead of press those boolean button.
You need to catch those keypress events…
(Btw. you should use the ValueChange instead of MouseDown events.)
08-11-2020 03:42 AM
I have tried to change the event for 0-9 to value change , but still unable to input from keypad. Which element should i add to the VI ?
08-11-2020 04:36 AM
08-11-2020 04:44 AM
So, I need to duplicate the 0-9 mousedown event and change to key down on the new duplicated event ?
08-11-2020 05:42 AM