Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Best way to display data from c code ?

Status
Not open for further replies.

JoKKeR

Full Member level 2
Joined
Feb 14, 2008
Messages
130
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Estonia
Activity points
2,281
Atm. im working on solar heating project and i need many things calculated and visualized. Also on the way im learning c programming.


I need X Y type plot like thing.

So iv written a code to output variables to .TXT file and then im using MS office (excel) to visualize . TXT file seems ok but i cant build chart in some weird way. All seems right but i cant see line between axes.


Are there other ways to display data straight from program ?


Code:
#include<stdio.h>
#include <math.h>

int main()
{
    int a = 0;
    double b = 1;
    double c = 1;
    
    FILE *f;
    f = fopen("test.txt","w");
      
    while (a < 1000){
    a++;
    
    b = b * 1.01;
     
    fprintf(f,"%2.3f             %d              1 \n",b, a);
}

  system("PAUSE");	
  return 0;
}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top