LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating data during runtime in to a graph

Solved!
Go to solution

Iam trying to display a run time data of various signals in to a graph,also updating the x- axis scale for every iteration. Iam able to plot the graph for various signals, but if the data is changing in run time, plot is not updating  the signal data correctly.To say graph is working only when the signal data received is not varying. Can any one tell me, how to update the graph correctly.

0 Kudos
Message 1 of 5
(2,694 Views)

The reason for the graph not updating with new values, is that you are building the array wrong.

 

What you are doing is, putting new values in the start of the array, NOT at the end.

This makes only old values visible on the graph as you have restricted the view of values in the graph, by specifying the x-axis range.

 

Change the way you build the array, so that new values comes in the end of the array.

0 Kudos
Message 2 of 5
(2,671 Views)

Dkfire, can you please tell me how to append the new values at the end of the array.

0 Kudos
Message 3 of 5
(2,660 Views)
Solution
Accepted by topic author Raghu123

It is just a matter of switching ports on the "append array" function.

 

Attached is a snippet, hope this help

 

To switch ports on a function, press shift and select one of the ports

0 Kudos
Message 4 of 5
(2,651 Views)

Thank you, switching ports solved the problem.

0 Kudos
Message 5 of 5
(2,644 Views)