- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to integrate a cosine wave to get sine wave.How can I do this??
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can do an integrator by adding the current signal value to the previous one (stored in a register) and dividing the result by a constant value.
But why do you want to do it this way? It isn't the best way of generating a sine wave. Any error in the incoming signal, or any rounding error in the integration process, can accumulate over time and you risk having a drift on you output signal.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your help.Actually i am simulating a RL ac circuit to obtain the current but i get current shifted towards negative.So, how can i integrate the dynamic equation to obtain proper current waveform?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry I need a bit more context about your system, what you are trying to measure and what you want to obtain.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page