GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Clear Chart Data

    Scheduled Pinned Locked Moved
    General Discussion
    2
    2
    114
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fehr
      last edited by

      Hello community,

      I am using an ESP32 with a bluetooth connection to visualise data in a chart. I would like to reset the chart data at a certain point in time so that the chart starts visualising new data from the beginning. However, I have not yet managed to delete the old data. My initialisation of the chart looks like this:

      sendMsg("|CH UID:Current_Chart X:50 Y:82.5 W:90 H:30 VIS:1 CHN:\"Current [A]\" YLO:0 YHI:40 FSZ:2 XMA:8 YMA:6\r\n");
      

      Before the chart reset i continuously send the new measurements every second with the following command :

      string str = "@Current_Chart YP:" + String(BatCurrent) + "\n\r";
      sendMsg(str);
      

      Does anyone have an idea how I can reset the chart so that the new data is plotted from the beginning again? Thank you in advance for your support and best regards.
      Fehr

      B 1 Reply Last reply Reply Quote 0
      • B
        Bernard @Fehr
        last edited by

        @Fehr

        Try : Print "@Current_Chart CL:1"

        Bernard

        1 Reply Last reply Reply Quote 1
        • First post
          Last post