Cprogram/Excel/Bargraph

This is a discussion on Cprogram/Excel/Bargraph within the C Programming forums, part of the General Programming Boards category; Dear friend, I have fixed data in file this i have to read and plot the signal, i dont want ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    2

    Exclamation Cprogram/Excel/Bargraph

    Dear friend,
    I have fixed data in file this i have to read and plot the signal, i dont want to do it using graphics.h i am thinking of ploting that in MS Excel please give me any idea of out to output the data from C program to Excel and initate the graph
    thanks
    friend

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    98
    Use C to output your numbers to a file in a delimited format e.g. seperated by commas. Then use Excel to import the numbers from the text file
    There is no such thing as a humble opinion

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    2
    Thanks for idea, I did this but after outputing data into file in delimated format i have to open excel and i have to query the Excel to plot the graph. can we do it in C program only. like query the excel so that just after executing the C program i have to get the plot in Excel

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>i have to query the Excel to plot the graph.
    Do you mean you have to manipulate the data in XL before you can view the graph? If so, you have a couple of options:

    - Write your C code to manipulate the data as much as possible before giving it to XL.

    - Automate the process in XL by using macros.

    Generically speaking, I'd probably go for the XL macro choice, because it'll most likely be quicker to code, and XL has some good data manipulation abilities. Once you've written the macro, assign it to a button and away you go.

    Anyway, this is a C forum, so I'd best stop going off topic
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

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