Moving controls while running
#1
Posted 13 February 2006 - 11:25 PM
I'm working on an optional perimeter check to make sure that the control doesn't get "hidden" off of the FP, and making this a sub-VI with a configurable input array of control refs (if possible). Are there any other useful features I could put in?
Download File:post-3266-1139872912.vi
Joe (orko)
#2
Posted 13 February 2006 - 11:33 PM
I whipped this up to enable dragging (selected) controls around on the FP while the VI was running. Of course, comments would be most welcome.
Download File:post-3266-1139872912.vi
Joe (orko)
Sorry, but I just don't get why you would want to move controls around while running??
If you want to display different controls in the same spot, use a tab control with all the controls and flip programmatically to the required tab sheet.
Neville.
#3
Posted 13 February 2006 - 11:49 PM
Sorry, but I just don't get why you would want to move controls around while running??
If you want to display different controls in the same spot, use a tab control with all the controls and flip programmatically to the required tab sheet.
Neville.
Someone asked if it was possible.
Actually it was a request from info-labview where the requirements were for raw display of multiple arrays wth indeterminate sizes, with the ability to compare side by side with large data sets. Evidently screen real estate was limited and they wanted a way to move the data sets around to compare against each other. Other than that I don't know much about the usefulness of this, but I've been fooled in the past thinking that I would never use a tool until that one fateful day...
Cheers!
Joe (orko)
#4
Posted 14 February 2006 - 12:27 AM
Someone asked if it was possible.
![]()
Actually it was a request from info-labview where the requirements were for raw display of multiple arrays wth indeterminate sizes, with the ability to compare side by side with large data sets. Evidently screen real estate was limited and they wanted a way to move the data sets around to compare against each other. Other than that I don't know much about the usefulness of this, but I've been fooled in the past thinking that I would never use a tool until that one fateful day...![]()
Cheers!
Joe (orko)
The need for moveable control objects is quite common in near-real time, large user base, highly dynamic environments (games
If you haven't seen it before, check out the example in your LabVIEW folder at examples/general/dynamicevents.llb/Dynamically Register For Events.vi for another method of moving controls while running.
#5
Posted 14 February 2006 - 02:04 AM
The need for moveable control objects is quite common in near-real time, large user base, highly dynamic environments (games
). The tight binding between front panel and code make it a little less common in the LV world.
If you haven't seen it before, check out the example in your LabVIEW folder at examples/general/dynamicevents.llb/Dynamically Register For Events.vi for another method of moving controls while running.
Thanks for the example pointer. I knew I had seen it done somewhere before...
It's funny, the thought of making a LED indicator (round and rectangle) version of BlackOut came to my mind as I was wiring this up! Hehe... I wonder how Battle Tank or Tempest would look in an XY plot... Probably much better than the originals!
Defender of the Pong,
Joe (orko)
#6
Posted 14 February 2006 - 05:40 PM
It's good that LabVIEW opens up more new opportunities.
Irene
Stop asking why, it is silly cause not everything has an answer. It only takes so long to realize, dumb:-)
Remote control my USB DAQ right from your web browser now!
www.hytekautomation.ca , Visit HYTEK online store
#7
Posted 15 February 2006 - 02:27 AM
Would be great to have as a generic subVI tool that we register some or all of the controls on a VI at startup time.
#8
Posted 15 February 2006 - 05:50 AM
Would be great to have as a generic subVI tool that we register some or all of the controls on a VI at startup time.
Working on it
#9
Posted 15 February 2006 - 04:20 PM
1) Button 1 clicks are now the only ones which enable moving
2) Disable comment added.
I was getting some freaky behavior when mousing off of the right-click menu items, so I enabled only Button 1 (left click on most mice) for movement.
Also, added in a comment explaining that by disabling a control (such as an array or waveform graph) lets the operator click anywhere on it to move it.
... still trying to find time to make this a subVI
Download File:post-3266-1140020604.vi
LV 7.0
Joe (orko)
#10
Posted 16 February 2006 - 02:12 AM
#11
Posted 16 February 2006 - 02:14 AM
Seems to work fine under LabVIEW 8 although you get a warning when it first opens (which you can ignore).
What is the warning message?
Thanks for testing it out on LV8!
Joe (orko)
#12
Posted 16 February 2006 - 04:29 PM
LabVIEW 7.0Download File:post-230-1140106142.llb
Download File:post-230-1140113726.zip












