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
Solved

MFC code needed for real time data acquisitioning

Posted on 2003-11-20
8
334 Views
Last Modified: 2013-11-20
Dear all,
    hi. I am currently working a project that requires me to create a window application using Visual C++. The program is able to perform real-time (and continuous) data acquisition of a three-phase voltage and current signal. The DAQ card that I am using is Eagle Technology, PCI-30G, with 8/16 differential channels and 12 bit analog resolution capability.
 
   I am a green horn in C++ programming and I am working on a tight schedule (1 and a half weeks!). To see the following to be answered is deeply appreciated

- Any form of Visual C++ source code, whether it is for the interface between DAQ card and the Visual C++ program, to perform the real-time data acquisition (the data acquistion will be continuous and so need to have codes for data storage as well) or to provide the GUI platform

Thank you

0
Comment
Question by:smurf77
8 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 9795207
Windows is a multi-tasking OP system and as such you can not be certain your app will run in real time.  
On NT, 2000, XP based systems you can set a thread priority to real time BUT you may not be able to use the PC if you don't get it right.

Having said that do you really require real time?  Would getting the values 10 times a second be OK? (20 times, 100 times, 5 times).
Have you checked if the makers of the card supply any code/dll interface.  Maybe look on their web page.
0
 
LVL 8

Accepted Solution

by:
_corey_ earned 500 total points
ID: 9795611
Two ideas:

Are you using NT?  If so, the solution could easily involve accessing PORTS directly which would mean you need to get a program that allows I/O port access in NT, there are several free ones for download.

However, I think one of their solution suggestions would be the best bet, download and check out: http://www.eagledaq.com/display_cat.php?subcategory_id=805
0
 
LVL 6

Expert Comment

by:GloomyFriar
ID: 9796839
Are there any drivers with the card?
If not you need to write your own driver.
Under wich OSes your soft heva to operate?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 8

Expert Comment

by:_corey_
ID: 9798416
They give you solutions like the one above, he did say he is using the eagle.
0
 

Author Comment

by:smurf77
ID: 9871205
Thanks for the fast replies and I apologise for the late reply.
To AndyAinscow:
I am working under Windows 98 and according to the card's manufacturer, the card cannot be used with windows NT. I have found the driver and the API (the DLL) to interface the PC with the card.
Yes, real time, as I will be capturing voltage and current signals, I will need a sampling rate of 10000 samples/second.

To _corey_:
I cannot use the windows NT as mentioned in the earlier reply to AndyAinscow. I went to the link as mentioned by you but I cannot find any solutions that you have said. Can you please direct me more on this?

To GloomyFriar:
Yes I have found the drivers for the card and I have to work under Windows 98.

0
 
LVL 6

Expert Comment

by:GloomyFriar
ID: 9873246
If you have drivers then just read the manuals to know how to work with them.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Creating Labels and Frequency list style reports in SAS code 9 105
NotAlone Challenge 20 84
fix34  challenge 9 141
sumHeights2  challenge 7 114
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 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