Menu

Serial port real-time dynamic plot of data

Help
Keinsteinz
2007-10-29
2012-09-19
  • Keinsteinz

    Keinsteinz - 2007-10-29

    Hi? First of all greate graphic library/tool and magnificent job done by zedgraph creator.
    Secondly, I'm working on my final year project that requires real-time plot/display of data from microprocessor PIC from serial port. I've successfully read in data using serial port components but find it harder to plot data dynamically using ZedGraph. Has anyone done this before?
    Can someone help me please?
    Kind regards
    Keinsteinz

     
    • Wanxi

      Wanxi - 2007-10-29

      I'm also doing somethings similar..

       
      • Wanxi

        Wanxi - 2007-10-29

        Are you using database for your data ?

         
        • Keinsteinz

          Keinsteinz - 2007-10-30

          Thank you guys for all your responses,Any C# code example?
          Secondly data are sent by PIC processor to the PC every 1 second.
          Kind regards,
          Keinsteinz

           
    • Dan Walmsley

      Dan Walmsley - 2007-10-29

      I am doing this as we speak.

      What you need to do is use a timer and create a timer tick event. In the timer tick event clear your point lists, then recreate them. at the end use the

      zedGraphControl1.AxisChange();
      zedGraphControl1.Refresh();

      functions. This means that every time the timer ticks the graph is refreshed, my data is coming from a fujitsu processor, and I am storing the data in a text file.

       
  • cindy

    cindy - 2012-04-29

    i also want to solve this ,if you known ,please tell me .

     

Log in to post a comment.

MongoDB Logo MongoDB