09-12-2011 03:52 AM
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
09-12-2011 04:06 AM
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!
09-12-2011 04:13 AM
@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
09-13-2011 04:16 AM
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 ?
09-15-2011 01:53 AM
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,
09-15-2011 02:49 AM
Thanks for your reply.
It's exactly what I mean.
Can you downgrade the VI's to LV2009, please?
Thanks in advantage!
09-15-2011 05:19 AM
Great that I could help you. In attachment you can find these vi's in LV2009.
Good luck,
Hossein
09-15-2011 06:17 AM - edited 09-15-2011 06:17 AM
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? ?
09-15-2011 08:25 AM
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.
09-15-2011 08:39 AM
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