LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph and property node

Solved!
Go to solution

Hello all;

 

I want to make my .vi more powerful, so what I wanted to do is next:

 

1. my input must be: "boolean system check box" in 1D array(this is must have, I need this as input into call library function node)

2. all those checkbox(12) are connected to graph(in this example I choose 12 graphs and one input signal which is same, in real I have different signals, scales...)

 

 

What I wanted to do is when I check first check box, first graph  will be appears(and on graph will be shown his name, which is same as at check box). And then for example if I choose 3,5,8 check box will be appears 3,5,8 graph which will follow one after the other and so one;

 

I started to make 1D array check box, but after I group all together and try to rename for example check box 1 to channel 1, it's changing all names not just those which I renamed. I know that I can use "property node" and choose "visible" and "value", but I don't know how to implement together and also moving graphs one after other if I choose for example 1,5,8 channel.

 

I attach testing file and picture;

 

thanks

 

 

_________________________
Rookie; LV 2011 on WIN 7
Download All
0 Kudos
Message 1 of 11
(3,446 Views)

I don't understand your array of checkboxes vs. multiple graphs explanation.

 

But the reason that you can't name each check box differently is that you have an array.  Arrays require the elements to have all the same properties except for the value.  So when you change the name of an element to channel 1, they all show up as channel 1.

 

Now if you want to name them differently, use a cluster of 12 boxes instead of an array.

Message 2 of 11
(3,437 Views)

Yes I try this but then I don't know hot to convert cluster of 12 elements into 1D-array?

 

 

I have 12 checkbox and 12 graphs; If I check 4,7,9 I need that only 4,7 and 9 graph will be shown one after other; and so one. I hope now is more clear what I want to do..

 

thank you

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 3 of 11
(3,432 Views)

The cluster palette has a Cluster to Array function.

 

You can create references to each of your graphs and build them into an array.  Use a For loop with your check box array, and your array of references going into it with auto-indexed tunnels.  Feed the reference from the reference array to a property node, the boolean from the checkbox array to the Visible property.

Message 4 of 11
(3,425 Views)

Ok, I figure out, how to implement cluster->array; also add "visible" property; but I still don't know how to create "auto position", if I'd like just show for example 1,3,5 graph(all 3 must be inside TAB, also there can't be any free space from graph 2,4 in this case...). Please look my files (v.8.5, i can save to any other version up to 2011);

 

thanks

_________________________
Rookie; LV 2011 on WIN 7
Download All
0 Kudos
Message 5 of 11
(3,420 Views)

You're going to have to figure out a way to implement positioning.

 

I would recommend creating an array that contains the coordianates for where graph 1 would go, where graph 2 would go, where the third graph would go.  As you iterate through your array of checkboxes, apply the first coordinates to whatever is the first visible graph, when you get to the next visible graph, apply the coordinates (from your coordinate array) to that graph.

Message 6 of 11
(3,415 Views)

Wow, this is too much complicated for me; maybe somone know for any example which is similar to what I need?

 

thanks

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 7 of 11
(3,413 Views)
Solution
Accepted by hlod

Look at this.

 

This does the Cluster to Array like I talked about earlier, and also locates each graph based on an array of positions.

Message 8 of 11
(3,402 Views)

Wow, that's great I wil study your example, thanks;

 

Which property must I use, to show on a graph, name (which is on the right side of each "check -box"). In my example is just "on/off", I will renamed this later...

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 9 of 11
(3,391 Views)

Just one more question; how you get these coordinates ?

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 10 of 11
(3,358 Views)