10-02-2014 09:58 AM
Trying to use and understand type def/control and strict type def. Thought I understood until I open the "Simulation-Tank Level.vi" that ships w Labview ( 2014). On the front panel are two boolean indicators. They have been modified to look like value symbols from ( I guess) "ISA Symbology" . If I understood type defs there should be an accompanying *.ctrl file of the modified boolean. I can't find one. How were those two booleans modfied and still put in the Simulation-Tank Level.vi. I've read what strict type def and type def are and think I understand. What is control?? and how is it used. When I change to edit mode in the type def and right click on the boolean, select "Picture Item" it shows four pictures of the boolean in 2 different states..ON/OFF/ON/OFF . Why 4?? Why not just OFF and ON.
Solved! Go to Solution.
10-02-2014 12:37 PM
There are three options for custom controls: Control, Type Definition, and Strict Type Definition. Only the latter two are linked back to a master copy. A custom control has no such link; once it's placed on the front panel, it's independent. That's what you're seeing in that example. If you don't need or want every instance of a control to update when you change the .ctl file, then you should use a control rather than a type definition.
There are 4 image states for booleans: On, Off, transition from On to Off, and transition from Off to On (I don't remember the order of those last two). This is useful when you want to show some image during the transition, for example while you're holding down the mouse button over the control.
10-02-2014 12:51 PM
@nathand wrote:
There are 4 image states for booleans: On, Off, transition from On to Off, and transition from Off to On (I don't remember the order of those last two). This is useful when you want to show some image during the transition, for example while you're holding down the mouse button over the control.
Just for compleness I'd also like to mention the system buttons. They have two additional images because they support a mouse over image.
The standard 6 visible images can be defined as:
for each of
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-03-2014 04:58 AM
Thanks Nathand..Is there somewhere I can go to get this info?? I looked everywhere. So do you think in the example vi they imported a picture from a file?? or did an actual dwg. if they did their own custom dwg would it have been in something like MSpaint then imported or can you "draw" in the custom control ? How do you create the custom control/indicator w/o saving it as a *ctrl file? That sounds what I need. A custom indicator/control that is unique to my one vi.
Thanks..
10-03-2014 06:44 AM
@Clint_Eastwood1000 wrote:
How do you create the custom control/indicator w/o saving it as a *ctrl file?
Right-click on your control and go to Advanced->Customize. It will open up a control editor. Do what you want and close the control editor when you are done. You can choose not to save the control.
10-03-2014 08:07 AM
thanks everyone..