Solved

Oscilloscope

Posted on 1998-07-17
5
213 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 59
Unix Command -- Challenging  question 7 107
Annoying "thing" blocks my view 4 146
Excel file not created as expected 7 111
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

751 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