LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the property of a graph running in another VI ?

I know how to set a control value in another VI using the invoke node but what should I do to change the property of a control?
0 Kudos
Message 1 of 6
(2,843 Views)
One way would be to use the invoke node to pass data to separate controls in the other VI and use the separate controls to write to original control's property node.
0 Kudos
Message 2 of 6
(2,843 Views)
Hi Zumdal,

you can make a reference of your graph, copy it in a global variable that can be handled in a remote vi to change the property of the graph.
I attach a sample LLB that contains a graph.vi and a property.vi.

From the property.vi you can control the property of the graph.

Good luck,

Alberto
Message 3 of 6
(2,843 Views)
I use Chart to display a stereo wave file. I use
Stackplot/Overlayplot, can only change it in building BlockDiagram,cannot change when the VI run. I want to change it like as calling another Property Node. The same problem when i want to clear the Chart/Graph after
click a button(eg : ResetGraph button). Thanks!
0 Kudos
Message 4 of 6
(2,843 Views)
> I use Chart to display a stereo wave file. I use
> Stackplot/Overlayplot, can only change it in building
> BlockDiagram,cannot change when the VI run. I want to change it like
> as calling another Property Node. The same problem when i want to
> clear the Chart/Graph after
> click a button(eg : ResetGraph button). Thanks!
>

It is true that you cannot stack or unstack a chart at runtime. A
common way of achieving the same thing is to have two charts, showing
and hiding so that only one is visible at a time.

For clearing a chart, write an empty array to the History property.

Greg McKaskle
0 Kudos
Message 5 of 6
(2,843 Views)
Thank Greg, I do the same way like you said in the past, but continuing a problem that i can not solve. When use 2 chart with hide/show, I use a control to change the show 's one of 2 chart, the chart can not display. It has the data but it doesn't display. I don't know why. If before displaying the data, i choose Stack or Overlay display and then open file and show, it's ok. If you open file to display and then change the type of display, it does not run. Try to do like me, you can see the same problem. Ok, see you again.
0 Kudos
Message 6 of 6
(2,843 Views)