08-25-2009 03:04 PM
I would like to plot data using the XY Graph as a visual display. I have a While Loop that creates a new X and Y point during each iteration. I need the XY graph to be in the While Loop, since once the stop command has been pressed the While Loop sis finished and the final graph must be displayed. The problem is that following each iteration, the visual display of the XY Graph clears and shows the new point, versus adding the new point to the previous one with a line connecting the two points. This works perfectly if I move the XY graph out of the While Loop except it only shows the XY Graph following the completion of the While Loop. I would like to visually see the updated XY Graph while the While Loop is running. Any help would be very appreciated.
Thanks
Solved! Go to Solution.
08-25-2009 03:18 PM
You could use the iteration terminal to index an array that could then update the graph inside the while loop.
Bill
08-25-2009 03:29 PM
billko wrote:You could use the iteration terminal to index an array that could then update the graph inside the while loop.
Bill
Did I really say "index?" I meant to say create/update.
08-25-2009 03:31 PM
06-07-2016 04:42 AM
I'm facing the same problem and I find this solution extremely interesting.
The only problem I have with this one is that the x-axis (time scale) depends on the loop speed.
The numbers displayed on the x-axis are iteration numbers and this is not the actual running time.
Is there a way to put the actual time, independent of loop speed (in this case 250ms) on the x-axis?
Thanks in advance,
Bart
06-07-2016 05:29 AM - edited 06-07-2016 05:30 AM
@BartVM wrote:Is there a way to put the actual time, independent of loop speed (in this case 250ms) on the x-axis?
Just do a little math before adding the value to the first array...