LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XControl More Examples / Ideas?

Hello,
 
Does anyone else know of some good examples or have some ideas for XControls? 
 
I have seen the C/F example, but frankly did not look into it much because it seemed to me at first glance like a complicated way to do something thats with vi's (pardon my kneejerk response, maybe upon further review it will be amazing).
 
I read a post where someone was really keen on the potential of XControls and I'm just trying to get some ideas of how XControls have been used or are planned to be used.
 
Thanks
 
- Con
0 Kudos
Message 1 of 4
(3,131 Views)
I think that any specialized industry or field will have some specialized ways of graphically representing their data and that leads to XControl use.  These controls and indicators have been developed to show something the way that is most appropriate for the application.  Recently (in the last decade or so), people have begun to replace these with digital displays that the users don't really care for.  XControls allow the creation of a specific control that better minimcs the original analog control/indicator.

There are a number of gages used in industry that have a latency (they lag the actual data).  Including the logic of the delay in the control would be a decent use.

Aircraft indicators for example:  Attitude and altitude would both be useful.

Smith charts could be an example.  The way LabVIEW has done them for years has been a bit awkward and now they can be done better.

You could create a picture control that would look like a transmission shift pattern and merely output the gear number; hiding all of the drawing/dragging code in the XControl.

Creation of military style safety switches (where you have to flip up a cover to then switch the switch, closing the cover or turning off the switch both shut it off).

Anything that has lots of configuration could hide all of the configuration in the XControl and access it through the pop-up menus, drag and drop, special location double clicks, etc.

Just some thoughts, but I haven't had my coffee yet!
Bob Young



0 Kudos
Message 2 of 4
(3,109 Views)
I have in mind to create an XControl that looks like the regular "error" cluster.
This cluster will log errors, versus just passing them.
In the past, I have had a VI that I stuck in subVIs after my code that would do this... if I create an XControl, I believe it will look much clearner.
0 Kudos
Message 3 of 4
(3,102 Views)
I have used XControls to encapsulate resource management.  This allows you to remove a lot of event code from your main GUI.  The main idea is that the XControl communicates with a central server via front-panel events.  If you register your XControls with the central server, you can do things such as update one control when a different one changes.  Lots of fun...
0 Kudos
Message 4 of 4
(3,054 Views)