get the data and plot the graph

This is a discussion on get the data and plot the graph within the Windows Programming forums, part of the Platform Specific Boards category; Dear All, i have data received from parallel port and how to plot them on the computer screen using visual ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    38

    get the data and plot the graph

    Dear All,
    i have data received from parallel port and how to plot them on the computer screen using visual c++? can anyone show me the simple program code? i have no such experience before. Thank u.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,851
    Create 2 separate programs.

    1. Create a program to read data from parallel port and fprintf() it to a file. Check that the text file which is produced contains the data you expect.

    2. Create a program to plot a graph from a fixed set of XY coordinates stored within the program
    Code:
    int coords[] = { 0,0, 100,100, 200,200, 300,500 };
    When both programs work individually, think about joining them together.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    38
    Thanks for your quickly response,Salem.
    I have a program which can read the data from parallel port, but i expected not to save the data into a file, and plot the data on pc screen in real time. what library function i need to call?
    Thanks.
    Last edited by lwong; 01-01-2004 at 08:13 AM.

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Plotting data
    By thetinman in forum Linux Programming
    Replies: 1
    Last Post: 09-07-2005, 01:29 AM
  2. Graphing a direction field and intensity map
    By InnerCityBlues in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2004, 10:59 PM
  3. How to complete program. Any probs now?
    By stehigs321 in forum C Programming
    Replies: 7
    Last Post: 11-19-2003, 04:03 PM
  4. Appropriate data structure
    By gazsux in forum Game Programming
    Replies: 3
    Last Post: 03-19-2003, 01:26 PM
  5. draw a scatter plot?
    By nano_nasa in forum C++ Programming
    Replies: 1
    Last Post: 11-07-2002, 09:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21