Click here to Skip to main content
15,861,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone!

I need an important information that how much samples VC++ can plot in real-time. I am taking 500 samples per second . Is it possible to plot these samples real time in our VC++ GUI ?

If yes what is the configuration of system that it could support?

If anyone can help me I am really helpful to them.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 3-Sep-14 3:33am    
What samples, in what library, why? Plarform? And so on... How can you ask a question not letting us know what are you even talking about?
—SA

Of course you cannot update the GUI at each sample acquisition (that would mean refreshing the plot every 2 msec). Typically you update the GUI at (more or less) regular intervals (say every 50 msec). At each update you plot the current data. Of course, in order to get good results, your plot application should be fast.
Have a look at this Code Project article: High-speed Charting Control[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 3-Sep-14 3:44am    
5ed, but OP also has more fundamental issue: understanding. Please see Solution 2. :-)
—SA
Number of samples per second is not a part of C++ specification. :-)

This is not even 100% relevant. Performance depends on very many factors. Sorry, but this question makes no sense. Also, speaking of "real-time": it's extremely unlikely that you are using a real-time OS. That said, even if you achieve performance you want, you should never rely on the time of execution of anything.

For some very basic background, please see:
http://en.wikipedia.org/wiki/Race_condition[^],
http://en.wikipedia.org/wiki/Real-time_computing[^].

—SA
 
Share this answer
 
Comments
CPallini 3-Sep-14 3:56am    
5.
Sergey Alexandrovich Kryukov 3-Sep-14 4:08am    
Thank you, Carlo.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900