Pages: [1]   Go Down
Author Topic: Signal generation with Excel  (Read 704 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

There's not really a place to put this thread, but I figured this would be the best place - as it's generally to do with electronics.

I'm stimulating a circuit using a signal generator (I got a Digilent Analog Discovery the other day, and am just fiddling with some bits), and can program any waveform I want with a .csv file. My signal will be one full period of a sine wave, then quite a large variation of a sine wave, followed by a normal sine wave period again.

So, I want to generate the y values for the sine wave in one column given values of x in another column - but, I can't for the life of me figure out how to generate just one period of a sine wave, and thus its values of y for x. It would seem 0 to 6.something gives one period. So I suppose the question here, is what decimal value of x gives a complete sine period?

Then, i'm also faced with the challenge - really I need about 1000 y values of the sine period for good resolution out of the signal generator.

Any ideas? smiley
« Last Edit: February 09, 2013, 06:20:08 pm by jtw11 » Logged

Offline Offline
Edison Member
*
Karma: 48
Posts: 1631
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It would seem 0 to 6.something gives one period
More precisely, one period is two PI = 6.28318531

Quote
really I need about 1000 y values of the sine period
The formula would be sin(2*PI*i/1000) where i varies from zero to 999.

Pete
Logged

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Of course, now I feel somewhat stupid. Thanks very much!
Logged

Pages: [1]   Go Up
Jump to: