473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Plotting Points Dynamically (While Program is Running)

Hello. I would like to know a way to plot points in C++ when for(...) is running. So I don't want it to be a static image as an output (for example, if I programmed it to draw y=2*x and x ranges from 0.00 to 10.00, I don't want a graph just to appear instantly, I want every point to be plotted separately, so every iteration of for(...) should make a new point appear: x=0.00 first, then x=0.01, then x=0.02 etc. and the program should be running either until the graph is plotted, or until I stop it).
P.S. It won't be an actual graph, just points being plotted, no lines, no other shapes, jsut points on a plane. If you need more details, ask me again :)
Jun 16 '18 #1
1 1886
YangLi
2
Just my suggestion:
This request need 2 threads, one thread get dynamic real-time data, another thread plot points on screen, and they have a shared critical section which is the data buffer. It means, one thread put data in the buffer, another thread fetch data from the buffer.
Aug 21 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: NetMasker | last post by:
Using VB.NET 2003 I want to keep a program running and waiting for users' input without using a Form that loads at program execution. Can I do it using just one Module or what? Is this possible or...
2
by: Razor | last post by:
How can I call a sub and keep the main program running while it works?
8
by: Chris Thunell | last post by:
I have created a VB.net windows forms application. If I have the program running and then I mistakenly click on my desktop icon again, I get a second instance of the program running. Is there...
5
by: Mark Lancaster | last post by:
I have a routine that calculates time vs temperature for a process. It generates x,y points that I need to plot. The number of points to be plotted varies, so I want to dynamically build the list...
14
by: William LaMartin | last post by:
If I have a Windows application with no form--only a module that starts with sub main and which has a system timer, in the elapsed event of which I want to run some code, how can I keep this...
3
by: KarlM | last post by:
Hallo! I would like to get some information from the Properties.Settings of an application which can be done via .... Properties.Settings.Default.XYZ; The problem now is that the identifier...
4
by: Jono | last post by:
Hi Everyone, As it says in the title, I'm looking for a way to display a page while long running operations are performed on the server. Ideally, I'd like some way to push the current request...
5
by: This | last post by:
I have a pretty basic emailing script that sends a relatively small number (150) of html emails. The emails are compiled, personalised from a mysql db subscribers list, and sent using mail() -...
2
by: Swan | last post by:
How can I restrict alt+tab and start menu from keyboard while program executing(VB)?I am posting what I tried-- form.frm Option Explicit Private Sub Form_Load() HookKeyboard End Sub...
0
by: PhatakMandar | last post by:
How to keep multiple concurrent Python (muti threaded in nature) program running, without bothering of GTL?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.