Calculating the phase shift of the output compare to the input in matlab

Status
Not open for further replies.

mtnkh

Newbie level 6
Joined
Mar 1, 2021
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
164
Hi,

I have a system which its impedance, z = |z|∠θ, is variable and unknown and I want to estimate the impedance in this case I inject a sine current with a known amplitude and frequency to the system, I = sine(2*pi*f*t) and measured the output voltage.
So in this case we will have this equation:
Vout = I*|z|∠θ
I used a DAQ to sample the data and process it in PC. I wanted to know how can I measure the phase shift between "Vout" and "I" which is equal to the phase of the impedance using matlab?
 

It's a classical impedance meter setup. The usual method is quadrature detector, multiplying the measured signal with sin and cos reference, integrating the product over full cycles. Noise and harmonics are supressed, complex impedance respectively magnitude and angle can be calculated by basic trigonometric relations.
 

Attachments

  • ImpedanceMeterBasics.pdf
    122.1 KB · Views: 164
  • SynchDetectExp.pdf
    425.3 KB · Views: 139

Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…