LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph inside event structures

Solved!
Go to solution

Hi,

I'm having some problems with XYgraphs inside event structures.


As you can see if you run the vi, every time I click on a button (trigger an event, for example OPEN/CLOSE a graph)

the XYgraph restart and all the past plot is lost (it restarts without any information stored).


Do you know some possible way to avoid this problem?

 

Thank you very much for your attention.

0 Kudos
Message 1 of 3
(2,349 Views)
Solution
Accepted by topic author ther1ng

The reason why this is happening is that in those other event cases you are passing out an empty array of timestamps. You are using feedback nodes for the temperature and pH data, but you are using a shift register for the time stamps. In the event cases for the Boolean controls you are not wiring through the array, and thus the event cases are passing out the default value for an array, which is always an empty array of that datatype.

Message 2 of 3
(2,332 Views)

Precisely! Many thanks mercurio.


I replaced the shift register with a feedback node inside the event case and it's working fine right now Smiley Wink

0 Kudos
Message 3 of 3
(2,309 Views)