how to used lookup table for sine wave generation?
Altair Forum User
Altair Employee
Answers
-
Hi anish,
There is no need to write your own lookup table, the compiler will handle this for you.
For your sine wave source that you can control the frequency of you need to be careful. If you merely control w in sin(wt) you will run into problems. You need to control entire (wt) term I have done this in the attached example circuit with a resetting integral. The bottom example is for a digital implementation.
If you do want to use a lookup table, have a look at this tutorial video which introduces it:
https://youtu.be/edDyXmujjpw0