LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with cluster containing different objects !

Solved!
Go to solution

Hello 2 all !

 

Here is what i'm trying to do :

 

- i have a cluster of 3 elements : 2 boolean controls and 1 arrow.

- i want to  make every object in the cluster appear and dissapear in a sequential order like : boolean - invisible; arrow - invisible, boolean - visible; arrow-visible, boolean 2 -invisible and so on.

 

I've attached a vi in wich i've tried to deal with this issue but with no luck.

 

Any ideas ?

 

Thank you very much!

 

Andrew.

0 Kudos
Message 1 of 7
(2,923 Views)

Hi Andrew,

use a property node to be able to connect the refnum to it.

 

Mike

Message Edited by MikeS81 on 04-03-2009 03:31 PM
Message 2 of 7
(2,919 Views)
Solution
Accepted by topic author AndreiN2014

Andrew,

 

Make the arrow a boolean control with a picture of an arrow.  Then all the controls are booleans and the visibility can be controlled by a simple loop.

 

Lynn 

Download All
Message 3 of 7
(2,903 Views)

Thank you 4 your quick answers !Smiley Happy

 


MikeS81 wrote:

Hi Andrew,

use a property node to be able to connect the refnum to it.

 

Mike

Message Edited by MikeS81 on 04-03-2009 03:31 PM

As u can see in the original vi, i've already used property nodes but with no succes. (there was a type missmatch error).

 

Can u point out to me where was the mistake in the original vi ?

 

I ask this because i am still learning LabView and your opinion would be very useful 2 me.

 

Also a big  "thank you" to johnsold ! Smiley Wink

 

 

 

0 Kudos
Message 4 of 7
(2,862 Views)
Your original VI doesn't work because you are wiring a control reference into an error cluster.  Because you are using Property nodes connected to the control, the reference is not needed.  You need to diconnect the property node from the control (right-click and choose "Disconnect from Control"
Message 5 of 7
(2,859 Views)

You can also use Link to... to select the control to which you want the property node to link.

 

To get a property node for the decoration is a little more involved.  One way to do it (there are usually several ways to do something in LV) is to drop a new property node from the Application Control palette.  Then Select Class >> VI Server >> Generic >> GObject >> Decoration >> Decoration.  Obvious to a beginner, right???

 

Here is another version of your program showing this method.

 

Lynn 

Message 6 of 7
(2,840 Views)

Thank you all 4 your time and interest !

 

Indeed the solution proposed by johnsold is very very simple . Smiley Happy

 

The first solution was also interesting...i didn't realyze that i could create a boolean control from a arrow.

 

Thank you 4 pointing this simple approach to me.

 

Guess i still have lots and lots to learn about LabView... but i must say it is a real treat !Smiley Wink

 

Excelent software ! Good work NI !

0 Kudos
Message 7 of 7
(2,801 Views)