Solved

Oscilloscope

Posted on 1998-07-17
5
214 Views
Last Modified: 2013-11-20
I am collecting some data through a data acquisition board and want to plot it on my client space. In short I want to convert the client space into an Oscilloscope like thing, how do I do this? I would be happy if somebody would give me some sample code to do this.
0
Comment
Question by:sram
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Accepted Solution

by:
zingo earned 50 total points
ID: 1319384
I would do something like this:

In your document class, create a circular list with as many
elements as you want samples shown on the screen.

Insert the values from your data acquisition board into this list, when it is full you just overwrite the oldest one.

In your client windows OnDraw operator, insert code to draw a diagram from the list in the document class. You know how to draw in a window, right?

If you don't want to implement a circular list yourself, just use an array with read and write indexes.

Unfortunately I don't have any code for you to do this.

Good luck!
0
 
LVL 2

Expert Comment

by:warmcat
ID: 1319385
Hey sram -

You might like to resolve your previous question at http://www.experts-exchange.com/topics/comp/os-ms-windows/programming/mfc/Q.10064317


0
 

Expert Comment

by:gemme
ID: 1319386
I have purchased a library of graphics tools that do just what you need. It is not expensive and will save you a lot of time. Let me know if you are interested in this information.
0
 

Author Comment

by:sram
ID: 1319387
Yes sure! I would like to have the details.
thanks

0
 

Expert Comment

by:gemme
ID: 1319388
There are a few different products
1. Real time graphing tools
2. charting tools (for graphing static data)
3. Graphics class library for MFC.  You need the first two to get
   this one.

to get more info, go to http://www.quinn-curtis.com.
0

Featured Post

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question