09-12-2011 02:17 AM
Hello,
At the moment I'm looking for a solution to make content movable in de runtime.
I'm working on a test sytem that can be connected to many different systems. It wil be great to give the end user the opportunity to place the components in the order they will be in the system without having any labview programming experience.
A simple example to make my problem clear:
In the front panel there is only one indicator, just placed on some position on the screen
I want the enduser give the opportunity to place this indicator to the position he want.
Is it possible to make something like this?
Thanks in advantage!
Solved! Go to Solution.
09-12-2011 02:53 AM
Hello Patrick,
to me it's not very clear what you are searching for, but if I understand it right, then search in the example finder for "Dynamically Register for Events.vi" and see what it does.
09-12-2011 03:10 AM
Hello,
Yes it is possible, here's a quick example in LV 2010, telle me if you need me to downconvert it.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 03:12 AM
To make something more clear:
I want to make some "objects" in the user interface dragable.
See screenshots for my idea. The end user should be able to place the indicators on the screen where ever he or she wants.
09-12-2011 03:15 AM
Can you please down convert it to Labview 2009?
Hope this is the solution I'm looking for!
09-12-2011 03:17 AM
Patrick Kerstholt wrote:
I want to make some "objects" in the user interface dragable.
See screenshots for my idea. The end user should be able to place the indicators on the screen where ever he or she wants.
I think that's just what my example makes, when the move ends you can use the controls label to save it the control position so that each time you restart the application all controls go to whereever the user dropped them.
One thing I forgot to mention : to drag start dragging the knob in my VI you have to press "shift" when you clic on the knob, and as soon as you release the mouse button the knob will stop following the mouse cursor.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 03:19 AM
Here it is in LV 8.2.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 03:27 AM - edited 09-12-2011 03:29 AM
Thanks, this does exactly where I was looking for!
Is the position saved automatically(when labview exits) or should I add a knob or something like that?
09-12-2011 03:35 AM
If you build an exe, no. For each movable control, you will need to store the position each time it is move and when you exe starts, you will have to place all controls where they were last placed.
If you work with source code (VIs) they will stay were you last dropped them IF you save the VI after execution.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 03:43 AM
Ok, thanks for the information.
Everything works the way I want at the moment, now saving is something extra I want but I can edit the VI to make this possible.
Now I can move objects, but still one point I want to have.
I'm using some arrays with components. (components like valve's etc.)
They are all the same valve but different variables. With this moving script all the components move together.
Is there anyway to make the contents of the array dragable seperated from each other ?