Hello everyone,
I'm having a bit of trouble with figuring out a way to divide two sinewaves. I'm going to have two sinewaves, which are out of phase by an unknown amount. The phase-change isn't constant.
I want to be able to get a constant value from each waveform, which is the ratio of the two sinewaves. I was thinking of using an averaging scheme, then divide the RMS values of both waveforms. I need the system to act as quickly as possible, so I thought this would be a laggy method. This is all being done in the digital domain. I was thinking of sampling 5 periods, then averaging, then dividing. It is for a control system, so I want the fastest response possible.
The idea is to have a carrier voltage at ~5KHz and recieve a current from an unknown inductance. The ratio of voltage to current yields this inductance. This technique of measuring inductance is needed in my application, I understand that there are other methods.
Any ideas?
Steve
I'm having a bit of trouble with figuring out a way to divide two sinewaves. I'm going to have two sinewaves, which are out of phase by an unknown amount. The phase-change isn't constant.
I want to be able to get a constant value from each waveform, which is the ratio of the two sinewaves. I was thinking of using an averaging scheme, then divide the RMS values of both waveforms. I need the system to act as quickly as possible, so I thought this would be a laggy method. This is all being done in the digital domain. I was thinking of sampling 5 periods, then averaging, then dividing. It is for a control system, so I want the fastest response possible.
The idea is to have a carrier voltage at ~5KHz and recieve a current from an unknown inductance. The ratio of voltage to current yields this inductance. This technique of measuring inductance is needed in my application, I understand that there are other methods.
Any ideas?
Steve