Hello,
so i am sampling a voltage from a standard wall outlet, through the adc on my microcontroller, then the values are sent through uart to labview. I managed to get all the values and replicate the 120vac Sine wave.Im not to sure if i can do that. Also for the amplitude i made up my own formula that would give me 120Vrms. I heard something about resolution from my adc to get amplitude also. I am now wondering how would i calculate the frequency, i figured i can take the period to be peak to peak of the sine wave and then take 1/t to get the frequency. The frequency should be 60hz. Im not to sure if i can do that. Also would like to get phase angle. I have attached images of front and block panel of code.