ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph legend problem

Solved!
Go to solution

Hello guys, forgive me, my english is not so good. But, i have a little problem.

I'm working in a project: I need to diplay some data in different graphs. Example:

I have the group 1: Datax-1, Datax-2, Datax-3;

And the group 2: Datay-1, Datay-2, Datay-3;

The elements of group 1 must to display in the same graph, but i can choose which data i want to display: datax-1 and datax-2, or only datax-2, etc. For this, I choose the data and I click in a buttom that show me the graphs with the element's legend. But I can do it anytimes. I will explain my problem by an example:

At first time i choose de element datax1 and datax2 and I click on the button. The graph will show with legends of element 1 and 2. But if I, in the next time, choose only the element 1 and push the buttom, the graph will appear, but with element 2 legend's too.

Can you understood? I dont wanna the element 2 legend's in this case, only the element 1 legend's.

Somebody can help me?????

 

 

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

An example here

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

Hi,

you find below an example : 

Emna20_0-1651757234106.png

Plot 0 = Datax-1

Plot 1 = Datax-2

to make Plot 0 only visible : right click on Plot 1 deselect plot visible.

Emna20_1-1651757428118.png

Best Regards.

0 Kudos
Message 3 of 7
(2,331 Views)

oh, thanks. but Can i do it from diagram?

0 Kudos
Message 4 of 7
(2,325 Views)

Hi,

this is the diagram :

Could you please share your vi. to understand the problem

Emna20_0-1651758559066.png

 

0 Kudos
Message 5 of 7
(2,318 Views)
Solution
Accepted by Guilherme_Ludwig

Hi,

to disable the plot 1 programmaticaly :

Emna20_0-1651761316442.png

Best Regards.

 

0 Kudos
Message 6 of 7
(2,309 Views)

Programmatically, you can control this using a property node for your graph.

 

dsbNI_1-1651761627866.png

dsbNI_2-1651761682965.png

 

 

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 7 of 7
(2,306 Views)