LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

New control default to system except ...

Solved!
Go to solution

I understand how to setup my labview, so that when I can create a new control, it will be in system style by default.  However, I want all new control to be in system style except for the boolean.  How do I do that?  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 10
(3,088 Views)

Hi Jyang72211

 

Just to clarify, are you referring to placing every Boolean such that it is Viewed as an Icon versus not as an Icon? I just want some clarification on what you mean by "system style". As far as I know, you can either place all as an Icon or all as not an Icon, instead of selecting type by type. You may want to submit a feature suggestion for this if this is what you are wanting.

 

Jason L

Product Support Engineer
National Instruments
Message 2 of 10
(3,058 Views)

Let me clarify.  When I use quick drop to select a control, I want it to be a certain type of conrol (modern, system, classic, etc).  How do I do that? 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 10
(3,056 Views)

No, you can't change the default type for only one kind of control.  All new controls will have the default style (modern vs. classic vs. system) that is set in the Front Panel section of the Options dialog.

Message 4 of 10
(3,045 Views)

@jyang72211 wrote:

Let me clarify.  When I use quick drop to select a control, I want it to be a certain type of conrol (modern, system, classic, etc).  How do I do that? 


For Quick Dropping I would suggest you create shortcuts for your favorite controls, I doubt you use that many.  The system controls are nicely named with the prefix 'System' which makes them easy to distinguish in QD.  I only hope that you use a small number of classic controls (not so nicely named), so you can create custom .ctl files for them and add them to the palettes.  This allows you to create meaningul names and shortcuts for them and QD them.  A bit of a pain since they overloaded some of the names, but customizing controls can be a great timesaver IMO.  Dropping an array container and then filling it with a numeric control and then changing representation is so old-fashioned.  QD DBL array, I32 array, String array and rock on.

 

Just don't change LV versions that often, version portability for customizations like this is not something that gets much thought at NI apparently.

Message 5 of 10
(3,035 Views)

Hi Darin,

 

How do you find out all the objects' name?  For example, how do you know that DBL array is the object name for an double array?  It seems like I can create a QD for modern numeric control and indicator seperately, but I can only create a QD for system numeric control but not indicator.  Is that true?  

 

A side question.  I like to create boolean and numeric constant on the BD and change them to into controls.  They always default to modern style.  Can I change the default to a different style for each type of controls and indicators when I convert constant into controls?  

 

 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 6 of 10
(3,023 Views)
Solution
Accepted by topic author jyang72211

@jyang72211 wrote:

 

How do you find out all the objects' name?  For example, how do you know that DBL array is the object name for an double array?  It seems like I can create a QD for modern numeric control and indicator seperately, but I can only create a QD for system numeric control but not indicator.  Is that true?  

 


The name DBL array is what I give to the custom control, so I usually choose the name that pops into my head since hopefully that is consistent.  For the System Numeric Indicator you would have to create a custom control (which is actually an indicator).  A bit of a pain.  I have a QD shortcut which quickly toggles Control/Indicator.

@jyang72211 wrote:

 

A side question.  I like to create boolean and numeric constant on the BD and change them to into controls.  They always default to modern style.  Can I change the default to a different style for each type of controls and indicators when I convert constant into controls?  

 

 


Not with what you are given by LV.  It would probably make a nice Right-Click Framework shortcut, or perhaps even a QD shortcut which would pop up a dialog asking for the style.  I almost never stray from the System Style so I haven't written anything like this myself.

Message 7 of 10
(3,016 Views)

I understand that DBL array is just an abbreviation that you associate with an object.  For example, in "ws:While Loop", the abbreviation "ws" is assoicated with the object "while loop".  I don't have problem coming up with abbreviations, but I am not sure what some of these object names are.  

 

Where do I find out the oject name for all types of arrays?

 

How do you create a shortcut that toggle between control and indicator?

 

I don't stray away from the system type usually, except for the boolean.  For the boolean, I prefer an LED over a system style boolean.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 8 of 10
(3,004 Views)
I think you are missing one point I am making. To add items to QD you need to add custom controls to the palettes. I wanted to point out that this extra step need not be a bad thing. Instead of duplicating existing controls you can also add some common types (arrays for example) to reuse. You may be surprised that a few go a long way. That is why I say the names are what you give them, you have to create them yourself.

 

The shortcuts require a bit of scripting, Darren has a nugget somewhere on creating them, I am using my phone now so nothing fancy. I actually wrote the toggle since the System palette only has controls, and I agree that the System boolean is lacking as well.
Message 9 of 10
(2,993 Views)

It makes sense now.  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 10 of 10
(2,985 Views)