LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Graphs: Is there a way to save data to a file and then clear the graph after each run?

This is just an added feature that I would like to insert because I end up having to erase the previous graph(for viewing and simplification purposes) after almost every plot cycle. Does LabVIEW 7.0 have a built-in feature that allows the user to automatically clear the graph after each run.

Thank you,

Keith Blackwell
0 Kudos
Message 1 of 7
(3,486 Views)
Keith

on the block diagram:

right click the graph terminal --> create property node , right click the property node and change to read. then left click the property node and pick value. then right click the property node and create constant, this will clear your graph when it is executed...

good luck

Dan
Message 2 of 7
(3,486 Views)
> simplification purposes) after almost every plot cycle. Does LabVIEW
> 7.0 have a built-in feature that allows the user to automatically
> clear the graph after each run.
>

It isn't a graph specific feature, but there is a VI setting to clear
indicators before the next execution begins. When this isn't
sufficient, there are always locals.

Greg McKaskle
0 Kudos
Message 3 of 7
(3,486 Views)
Dan,

Thanks for your advice, but it did not seem to work. The plots seemed to start immediately after the last ones from the previous command cycle (which I think are the default settings). What I wanted was for the scale to reset (back to the origin) moreso than the graph. I apologize for not being thorough in my questioning.


Keith Blackwell
0 Kudos
Message 4 of 7
(3,486 Views)
Thanks Greg,

I went into the function pallette-->signal manipulation-->align and resample

and found something that may be useful, but I'm not sure how to use it. I guess I have to play around with it by trial and error. Was this the VI seetting that you were referring to?


Keith Blackwell
0 Kudos
Message 5 of 7
(3,486 Views)
> I went into the function pallette-->signal manipulation-->align and
> resample
>
> and found something that may be useful, but I'm not sure how to use
> it. I guess I have to play around with it by trial and error. Was this
> the VI seetting that you were referring to?
>

The option I was talking about is for the entire VI. It resets the
value of all indicators prior to running. The setting is located in the
VI Properties dialog on the execution page I believe. In the end, there
are multiple ways to get this to work, and if you want just a few
indicators to be reset, you want to use locals or control methods, but
th eVI Properties is a convenient way to get all indicators cleared at once.

Greg McKaskle
0 Kudos
Message 6 of 7
(3,486 Views)
May I recall you that to clear a graph you have to create a property node,
choose value and connect an 1D array with its first value to zero.
Then using a Select vi enables you to choose from clear or graph value.


Gérard



--
--------------------
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini/
remove -move to reply personally
--------------------
"Greg McKaskle" wrote in message
news:xEmJc.43762$mY2.17348@fe1.texas.rr.com...
> > I went into the function pallette-->signal manipulation-->align and
> > resample
> >
> > and found something that may be useful, but I'm not sure how to use
> > it. I guess I have to play around with it by trial and error. Was this
> > the VI seetting that you were referring t
o?
> >
>
> The option I was talking about is for the entire VI. It resets the
> value of all indicators prior to running. The setting is located in the
> VI Properties dialog on the execution page I believe. In the end, there
> are multiple ways to get this to work, and if you want just a few
> indicators to be reset, you want to use locals or control methods, but
> th eVI Properties is a convenient way to get all indicators cleared at
once.
>
> Greg McKaskle
>
0 Kudos
Message 7 of 7
(3,486 Views)