LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

drag and drop "objects" in labview runtime

Solved!
Go to solution

Hmmm.. I think no.

The issue with array elements is that they can not have different properties, if you edit the property (size, position, color, etc...) of an aaray element, the modification will be made on all elements of the array. As far as I know the only property that can change between array elements is the value.

 

There might be some tricky way to do what you want by having a large (in size) cluster array element where the position of the valve in the cluster is a variable. Not sure it's a good idea though.

 

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 11 of 25
(2,374 Views)

I thought about the huge size cluster myself but that isn't a nice solution. I tried that but in this example the knob isn't moved inside the cluster but the whole array is selected.

 

I think I just have to make some objects that get there variabeles out of an array, or someone has to have a better idea?

 

Thanks for the usefull help sofar!

 

 

0 Kudos
Message 12 of 25
(2,372 Views)

@Patrick Kerstholt wrote:

I thought about the huge size cluster myself but that isn't a nice solution.

 


I agree.

 


Patrick Kerstholt wrote:

I think I just have to make some objects that get there variabeles out of an array, or someone has to have a better idea?

 


I don't have other suggestions. I can make sense to split the array to have separate objects in there's not too many of them... only you can juge that.

 


Patrick Kerstholt wrote:

Thanks for the usefull help sofar!

 


You're very welcome.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 13 of 25
(2,371 Views)

I made a huge progress in my project now but hitting another problem.

 

When I want to make multiple object moveable the screen becomes full very fast offcourse, so I want to create subvi's of the moveable items.

But how to do this? How to keep the objects in the main screen but the code to make it move in a subvi?! The useable way with just making an icon and attach some connectors isn't working offcouse.

 

Anyone got a solution for me ?

0 Kudos
Message 14 of 25
(2,353 Views)

Hello,

 

If I understand correctly, you will decide every position for every valve or ... and make your code smaller and more clear. See the attachment which it gives you a possibillity to make a Subvi's of your moveable items.

 

I hope it will be useful.

 

Best regards,

Download All
Message 15 of 25
(2,338 Views)

Thanks for your reply.

It's exactly what I mean.

 

Can you downgrade the VI's to LV2009, please?

 

Thanks in advantage!

0 Kudos
Message 16 of 25
(2,336 Views)
Solution
Accepted by topic author Patrick Kerstholt

Great that I could help you. In attachment you can find these vi's in LV2009.

 

Good luck,

 

Hossein

Download All
Message 17 of 25
(2,329 Views)

I still haven't got it working but I think I'm at the good direction now.

 

Here are my Vi's.

 

Can anyone help me to get it like I want to, please?  ?

Download All
0 Kudos
Message 18 of 25
(2,322 Views)

Hi,

 

As I can see you put your EVENT structure in a subvi too which is not possible. I made you vi as smal as possible and hope it would be enopugh for you.

 

Message 19 of 25
(2,315 Views)

Hi,

 

Hossein, Could you convert your VIs for using your example with earlier versions than 2011? Thanks.

 

Patrick, There is an example given in example finder which is doing the behaviour you want (without subVis) and that has the advantage to be generic enough to work with any control on the front panel without changing anything on the code.

You can find it in Building User Interfaces>>Acquiring user Input>>General>>Dynamically Register for events.

Olivier L. | Certified LabVIEW Developer


Message 20 of 25
(2,311 Views)