Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Plot window only shows limited datapoints (Read 1223 times)
bc547
Newbies
*
Offline


Posts: 9
Joined: Aug 27th, 2016
Plot window only shows limited datapoints
Sep 3rd, 2016 at 2:33pm
Print Post  
When plotting some temperature data, the plot window only shows about 10 minutes of data. Older data seems to be deleted and removed from the plot.

I made a small screencapture to illustrate the behaviour: https://www.youtube.com/watch?v=Ml6HQJJGDfI (The effect is best seen at fast forward speed)

The same behaviour happens when I set the X sweep range to e.g. 2 hours: only about 10 minutes of data is plotted.


Used plot settings:
- Datapoints arrive approx every 220ms
(breakpoint action: {@Plot.Karmonitor.Inside.Diamond data.temp1}{@Plot.Karmonitor.Outside.Diamond data.temp2})
- X sweep range is 20 minutes
- Time Format: hh:mm:ss
- No trigger function

Software versions:
- Visual Micro 1609.2.0
- Visual Studio Community 2015 14.25425.01 Update 3


This seems to be a small bug?
  
Back to top
 
IP Logged
 
Heinz Kessler
Full Member
***
Offline


Posts: 217
Location: Freiburg, Germany
Joined: May 25th, 2012
Re: Plot window only shows limited datapoints
Reply #1 - Sep 3rd, 2016 at 3:28pm
Print Post  
Hi,
there is a fixed maximum number of data points of 6000 per chart.
With this data rate and sweep time, the chart runs out of data points and discards the old ones.
You can solve this by reducing the data rate, like so:

int counter;

if( ++counter >= 10 )
{
     // put your @plot breakpoint here
     counter = 0;
}


With your sweep time, you won't experience any quality degradation by reducing the data rate, because currently, many data points will be drawn to the same screen pixel.

Currently, 6000 is a fixed limit that takes older/low performance PCs into account, in a future version of Visual Micro, we will make this limit selectable by the user.

Regards,

Heinz Kessler - Visual Micro
  
Back to top
 
IP Logged
 
bc547
Newbies
*
Offline


Posts: 9
Joined: Aug 27th, 2016
Re: Plot window only shows limited datapoints
Reply #2 - Sep 3rd, 2016 at 3:54pm
Print Post  
Thanks for the clarification!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint