How to acquire AC signal, voltage and RMS