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: 

Clearing a Chart/Graph programatically

Hello,

Is there a way to clear a graph or chart at the time the program
starts. I have looked at the attribute node values but there is
nothing I can see that would do this. The problem is when I restart
the program the charts x axis keeps growing and I want it to always
show the same starting point. Thanks for any help.

Regards,

Steve Drake
0 Kudos
Message 1 of 3
(3,189 Views)
Under the help menu: Search examples. Select graphs and charts. There is
a vi called How to clear charts and graphs.

Steve Drake wrote:
>
> Hello,
>
> Is there a way to clear a graph or chart at the time the program
> starts. I have looked at the attribute node values but there is
> nothing I can see that would do this. The problem is when I restart
> the program the charts x axis keeps growing and I want it to always
> show the same starting point. Thanks for any help.
>
> Regards,
>
> Steve Drake
0 Kudos
Message 2 of 3
(3,189 Views)
Under the examples for graphs and charts, is an example dealing with
clearing graphs through programming (sorry the information is at home).
Basically, I guess, you have to wire an empty array to the graph when the
program starts.

Good Luck,
Christopher Quijano


Steve Drake wrote in message
news:fmnoas0fe9du8chlbkp6l8i2qs954mdql7@4ax.com...
> Hello,
>
> Is there a way to clear a graph or chart at the time the program
> starts. I have looked at the attribute node values but there is
> nothing I can see that would do this. The problem is when I restart
> the program the charts x axis keeps growing and I want it to always
> show the same starting point. Thanks for any help.
>
> Regards,
>
> Steve Drake
0 Kudos
Message 3 of 3
(3,189 Views)