Hi
I have question and its a very important:
I build a application that measure a THD. if you see from the example that I build you see that I generate a sine wave that run all the time because he existing in a loop and give the measure all the time.
I send you the code and you can see it .
all the application run well , but I can't do this :
when I run this application the sine wave generate and run all the time , I want to read one measure after 50msec . and after 2 sec I read the second measure .
because in this example I read the measure all the time ( THD) , because all the application in loop
so I want that the sine run all the time but after 50msec, I can read only one measure from the sine wave and after
2 sec I read the second measure .
I try all the possibilities but I fail ,
if you know how to solve this problem I would be very clad and if you have another idea I will be very tankful.
thanks alot