-
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
-
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
-
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
-
>>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 ;)