Go Down

Topic: Signal generation with Excel (Read 743 times) previous topic - next topic


Feb 10, 2013, 12:18 am Last Edit: Feb 10, 2013, 12:20 am by jtw11 Reason: 1
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? :)


It would seem 0 to 6.something gives one period

More precisely, one period is two PI = 6.28318531

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.



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

Go Up

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

shortcuts: alt+s submit/post or alt+p preview