Re: Need urgent help

From: Mike D Sutton (EDais_at_mvps.org)
Date: 12/15/04

  • Next message: destek: "Remote Screen Share"
    Date: Wed, 15 Dec 2004 17:51:57 -0000
    
    

    > I have a hardware connected to my Comm Port. The input I'm recieving
    > from it is then plotted in a line graph at real time. Now as far as this
    > is concerned, its working fine. But the rate at which the data is coming
    > to me is very high and I'm not able to plot that manu pixels on screen.
    >
    > Like for example the hardware is sending 300 samples per second on COMM
    > port, which means plotting 300 pixels in a second. I can plot more
    > points on screen if i start plotting in Twips, but that's not solution
    > desired because then the plotting of line graph is degraded. Any other
    > way i can plot pixels in much better way and smoother lotting??

    The simple way to get around this is to only plot a subset of the data, plotting one in every ten samples will give you a smooth 30
    fps frame rate which immediately simplifies your work and makes the graph quicker to render (plotting very large datasets with GDI
    calls can be quite slow at times.) Also, if you want to display a certain number of seconds of data on the graph at any one time
    then setting a custom mapping mode that re-scales the data to the desired size (presumably a window or control width?) would be the
    way to go, and an anisotropic scale mode would also handle the second axis scaling for you.
    As far as scrolling the graph goes, have a look at the ScrollDC() API call which means you only have to re-draw the new section of
    data rather than the entire graph.
    Hope this helps,

        Mike

     - Microsoft Visual Basic MVP -
    E-Mail: EDais@mvps.org
    WWW: http://EDais.mvps.org/


  • Next message: destek: "Remote Screen Share"

    Relevant Pages

    • Re: Need urgent help
      ... > to me is very high and I'm not able to plot that manu pixels on screen. ... which means plotting 300 pixels in a second. ... > desired because then the plotting of line graph is degraded. ...
      (microsoft.public.vb.winapi.graphics)
    • Re: using a log plot, can I show y=0?
      ... >> I just want my graph to go smooooth. ... > want included in the plot, you will need to set the axes as ... so adding eps to your data should be sufficient -- and if you ... the 0 entries in what you're plotting. ...
      (comp.soft-sys.matlab)
    • Re: Excel 2003 plotting graphs in inverse order
      ... Excel 2003 is plotting any type of graph I select in reverse order. ... selecting data ranges normally, yet Excel is creating these upside down ...
      (microsoft.public.excel.charting)
    • Need urgent help
      ... I have a hardware connected to my Comm Port. ... to me is very high and I'm not able to plot that manu pixels on screen. ... which means plotting 300 pixels in a second. ... desired because then the plotting of line graph is degraded. ...
      (microsoft.public.vb.winapi.graphics)
    • Ploting a matrix
      ... I have a problem in plotting the elements of or ... matrix in a graph every 60 seconds. ... Does anyone know how to plot this. ... I'll be looking forward to your replies. ...
      (comp.soft-sys.matlab)

    Loading