AC DC voltage measurement