LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

numeric constant/indicator/control default properties

Is there a way to set the default numeric properties? For instance, I pretty much always like my numeric controls, indicators, and constants to be shown with SI prefixes. I find it much easier to read when dealing with large or extremely small numbers. I'm sort of sick of constantly having to open the properties of every numeric I drop to display as type "SI Notation". I usually try to copy other numerics if there is one of the type I want readily available so that i can avoid the extra steps of opening the properties, but it would be nice to set this in options to just be able to quick drop "nc", "dc", ..., etc without having to manually go in and change the property every time I do drop one. 

 

Is this an option I'm missing/cant find, or should I put this to the idea exchange?

 

Thanks

0 Kudos
Message 1 of 11
(1,336 Views)

You can ctrl+click to select as many controls as you want, then go to properties and set the common format for all.

0 Kudos
Message 2 of 11
(1,326 Views)

@TheWolfmansBrother wrote:

Is there a way to set the default numeric properties? For instance, I pretty much always like my numeric controls, indicators, and constants to be shown with SI prefixes. I find it much easier to read when dealing with large or extremely small numbers. I'm sort of sick of constantly having to open the properties of every numeric I drop to display as type "SI Notation". I usually try to copy other numerics if there is one of the type I want readily available so that i can avoid the extra steps of opening the properties, but it would be nice to set this in options to just be able to quick drop "nc", "dc", ..., etc without having to manually go in and change the property every time I do drop one. 

 

Is this an option I'm missing/cant find, or should I put this to the idea exchange?

 

Thanks


Are you expecting to select P (SI Notation), In that case you Make Radix Visible and Select SI Notation.

This should avoid accessing properties.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 11
(1,321 Views)

I'm not sure where the default controls are stored, but you can always modify a control and save it somewhere then install it to a palette so you can use your customized ones instead of the defaults. VIPM makes it much easier to build a palette, so you could add a handful of your commonly used controls then stick em in a VIP that you can install to your computer.

 

Edit: Or you could make a quick-drop keyboard shortcut to change a control automagically after you place it.

0 Kudos
Message 4 of 11
(1,302 Views)

@BertMcMahan wrote:

I'm not sure where the default controls are stored, but you can always modify a control and save it somewhere then install it to a palette so you can use your customized ones instead of the defaults. VIPM makes it much easier to build a palette, so you could add a handful of your commonly used controls then stick em in a VIP that you can install to your computer.

 

Edit: Or you could make a quick-drop keyboard shortcut to change a control automagically after you place it.


I tried going down that rabbit hole once.....the one about changing the default controls themselves.  The hooka smoke and fancy bottle labels sent me running away before the Jabberwock's snicker-snack was above a faint echo.

 

Strict typdef's on MyControls Pallet and / or a QD shortcut is the saner approach.

 

For bonus points.  Add a custom probe using your new type def.


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 11
(1,277 Views)

I'll look into making some custom QD items.

 

I don't necessarily want to go through and change every numeric after the fact since this is more for me while I'm creating, and adding things as I go, not adding them all at once. It isn't so much for operators later, though I would think they would also prefer reading something like 3.43n than 0.00000000343.

 

I don't care about the radix, not sure what that guy is talking about really, I know the radix is a P but turning on radix doesn't automatically set it SI notation, nor does it solve the issue of having to go into properties every time I add a new numeric.

0 Kudos
Message 6 of 11
(1,257 Views)

Something like this could work. This will change all the numeric front panel controls to SI with the same precision, maybe a little to blunt as a tool? Use this as a helper VI and specify the path of the VI you want to change.

 

(I am not a Scripter, there is probably a better way.)

 

snip.png

0 Kudos
Message 7 of 11
(1,191 Views)

@BertMcMahan wrote:

Edit: Or you could make a quick-drop keyboard shortcut to change a control automagically after you place it.


I already did that: Format Numeric Quick Drop.  One of those things I can't live without anymore since I use it seemingly constantly.

 

If using this tool, I just select all of the controls/indicators/constants I want to format, hit Ctrl+Space, type "SI" (without the quotes), and Ctrl+n.  Suddenly all of selected items are in SI notation!


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 8 of 11
(1,158 Views)

The only thing about SI units (for me) is that I can never remember how to type µ so I end up doing .001m instead.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 11
(1,100 Views)

@billko wrote:

The only thing about SI units (for me) is that I can never remember how to type µ so I end up doing .001m instead.


Alt+0181 gets you a µ, but the SI indicators in LabVIEW don't actually support µ's so you just type a regular "u". If you actually try to type a µ in the field then nothing happens.

Message 10 of 11
(1,095 Views)