How to use graph in the GUI_CreateDialogBox to produce an ECG-like curve, which is used in medical applications

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

    • How to use graph in the GUI_CreateDialogBox to produce an ECG-like curve, which is used in medical applications

      How to use graph in the GUI_CreateDialogBox to produce an ECG-like curve, which is used in medical applications :(
      Images
      • ECGgraph.gif

        228.73 kB, 360×150, viewed 20 times
    • Hi,

      You can use the GRAPH widget and its GRAPH_DATA_XY... functions to create such a curve. Have a look at the attached sample which demonstrates the use of this widget.

      Best regards,
      Florian
      Files
      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.
    • New

      I used GUI_DrawGraph() to achieve a similar effect. Does graph have an anti-aliasing function? For example GUI_DrawArc() and GUI_AA_DrawArc(), is there a GUI_AA_DrawGraph()? Graph is not smooth
    • New

      Hi,

      Unfortunately emWin does not provide such a function as of right now.

      You could do this with a function that draws an array of points as anti-aliased lines. The downside is that where the lines intersect the semi-transparent pixels will overlap and thus create intersection points that would be darker and stand out more than the lines. But in my example this was not really noticeable (see attached image).

      Attached you can find a short example.

      Best regards,
      Florian
      Images
      • GraphAA.png

        2.43 kB, 140×140, viewed 7 times
      Files
      • DrawGraphAA.zip

        (581 Byte, downloaded 7 times, last: )
      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.