Graph widget add value restart from begining after hitting the border

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Graph widget add value restart from begining after hitting the border

      Hello,
      I want graph widget (YT is preffered) to restart from (0,0) when the graph reaches its other side border.
      For example suppose a graph with 400 pixell on t axis. and the graph start from (0,0). After adding some points, it reaches (400,y_400). for next point, I want it to start from (0,y_401). How can I reach this requirement? Is it possible with YT data graph, or should I use XY graph?
    • Hi,

      the only way to do this with a YT graph is by clearing the data array when the limit has been reached. Then, newly added points will appear on the left side of the GRAPH again.

      You can clear the data object by calling GRAPH_DATA_YT_Clear().

      Best regards,
      Florian
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.