09-06-2010 02:10 AM
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.
Solved! Go to Solution.
09-06-2010 08:43 AM
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.
09-06-2010 10:31 AM
Dkfire, can you please tell me how to append the new values at the end of the array.
09-06-2010 10:48 AM
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
09-06-2010 11:13 AM
Thank you, switching ports solved the problem.