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: 

Clear XY Graph

Hi,

 

I would like to ask if there is any property node to clear the data of a XY graph build using "Build XY Graph" without using the Reset input. I tried to clear it with

clear.png

but it does not work. Thanks!!!

0 Kudos
Message 1 of 11
(4,451 Views)

Writing empty x and y arrays does in fact work. You have to attach your actual program if you want any help.

0 Kudos
Message 2 of 11
(4,447 Views)

Hi Dennis,

 

It does clear however when I run my program again I can still see the old data.

Subvi.png

main.png

0 Kudos
Message 3 of 11
(4,440 Views)

Then your original question does not make any sense since it actually does work for you. Finding a property that you can write to would not make any difference if your program structure is flawed.

 

Sorry, I cannot see anything in that bottom image.

0 Kudos
Message 4 of 11
(4,430 Views)

Hi Dennis,

 

Sorry maybe I am not explaining my problem really clear. Wiring the emply array clear all the point on my graph, however when I start auto mode again the deleted data appear again and my new graph overlap the previous graph. 

 

Is it possible for you to view the bottom image by right click->view image?

main program.png

0 Kudos
Message 5 of 11
(4,425 Views)

Are you using the normal XY graph or the Express? I don't think I've ever used the Express but I think there are shift registers in it that you would need to clear in the Build XY Graph function. If not, I would look at your other shift registers and see if you need to clear them.

0 Kudos
Message 6 of 11
(4,412 Views)

Hi Dennis,

 

I am using express.

 

express.png

 

0 Kudos
Message 7 of 11
(4,409 Views)

You probably have to use the Reset to clear the internal data. You can look at the block diagram of the express VI. As I said, I don't use the express VI.

0 Kudos
Message 8 of 11
(4,405 Views)

Thanks Dennis for your help.

I guess I will just use the normal XY graph and wire it to empty array to reset it 🙂

0 Kudos
Message 9 of 11
(4,395 Views)

@Nextal wrote:

Thanks Dennis for your help.

I guess I will just use the normal XY graph and wire it to empty array to reset it 🙂



The normal xy graph does not store any internal data.

0 Kudos
Message 10 of 11
(4,389 Views)