This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Board: TMS320F2808
Hello Every one,
I am writing a sin() function code for plotting a sin wave in Graph window
Can you tall me, what i set in the option of Graph Properties (or any other setting), so that sin() function graph will be visible in the graph window.
I am writing error less code and "printf" print all the value of equation "output" perfectly.
#include<stdio.h>
#include<math.h>
#define PI 3.1415926
float t,output;
void main()
{
int f=50;
for (t=0; t<600; t+=0.001 )
{
output = 300*(1+sin(2* PI* f* t));
printf( "output = %e t = %e\n", output, t );
}
}
Hint:- Above equation "output" generate a sinusoidal waveform.