06-16-2011 02:21 AM
is there any practical way of entering numeric values with suffixes in Labwindows CVI in order to prevent user from struggling with '0' es.
06-16-2011 02:57 AM
Hi,
one simple way might be to change the label from Hz to kHz, enter only 100 instead of 1e5, and multiply the value obtained from the numeric control by 1000 for further use in your program...
06-16-2011 05:41 AM
thanks:)
but i meant entering 100kHz or 1Ghz directly to the numeric control but it is not possible to enter a letter in numeric control.
taking 1000 Hz as reference doesn't solve the problem for entries with unit 'mega' or 'giga' hertz, and also entries with unit Hz again will be
shown with 'engineering form' in the numeric control.
06-16-2011 05:46 AM
So what you could do is using two adjacent controls, a numeric and e.g. a ring or text control where the user can select or enter the unit: Hz/kHz/MHz/GHz. Another option could be to use a string control instead of the numeric control and parse the entered string; however the string control lacks the up/down arrows...
06-16-2011 07:20 AM
In LabVIEW there is another Display Format called "SI Notation" that is exactly what you're looking for.
Maybe you can add a feature request in CVI Idea Exchange Forum and ask NI to add this Display Format in CVI too.