LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

drag and drop "objects" in labview runtime

Solved!
Go to solution

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!

 

 

0 Kudos
Message 1 of 25
(5,912 Views)

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.

 

 

Greets, Dave
0 Kudos
Message 2 of 25
(5,908 Views)

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

Antoine Chalons

Message 3 of 25
(5,903 Views)

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.

Download All
0 Kudos
Message 4 of 25
(5,900 Views)

Can you please down convert it to Labview 2009?

 

Hope this is the solution I'm looking for!

0 Kudos
Message 5 of 25
(5,895 Views)

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

Antoine Chalons

0 Kudos
Message 6 of 25
(5,893 Views)

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

Antoine Chalons

Message 7 of 25
(5,891 Views)

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?

0 Kudos
Message 8 of 25
(5,889 Views)

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

Antoine Chalons

0 Kudos
Message 9 of 25
(5,883 Views)

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 ?

0 Kudos
Message 10 of 25
(5,879 Views)