How to eliminate phase shift between signals?

Click For Summary

Discussion Overview

The discussion revolves around the issue of eliminating phase shifts between voltage and current signals in a Simulink simulation. Participants explore potential solutions and the underlying causes of the phase difference, touching on concepts from electrical theory and practical applications.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant inquires about methods to eliminate phase differences between voltage and current signals in Simulink.
  • Another suggests using capacitive or inductive compensation to address the phase shift.
  • A participant emphasizes the importance of understanding basic electrical theory before engaging in simulations, drawing an analogy to traditional electronics experimentation.
  • It is noted that the phase shift is attributed to the capacitor, which causes the current to lead the voltage.
  • Some participants question the source of the inputs and the nature of the phase shift, suggesting that understanding the components represented by the input array is crucial.
  • One participant mentions that the input signals are readings from a car battery, which introduces complexity due to the alternator's output not being pure DC.
  • Another participant proposes that the phase difference could be due to the source reactance of the alternator and suggests simulating a compensating network to address the issue.
  • There is a discussion about the relationship between the voltage and current pairs and their significance in the simulation context.

Areas of Agreement / Disagreement

Participants express differing views on the necessity of understanding electrical theory versus focusing on simulation. While some agree on the importance of basic concepts, others emphasize practical simulation approaches. The discussion remains unresolved regarding the best method to eliminate the phase shift.

Contextual Notes

Participants highlight limitations in understanding the implications of the input array values and their relationship to circuit components. There is also uncertainty about the effects of filters on phase and magnitude shifts.

Who May Find This Useful

Individuals interested in electrical engineering, simulation techniques, and the relationship between voltage and current in circuits may find this discussion relevant.

jak9
Messages
37
Reaction score
0
hello friends,
I have a voltage and current input signal in simulink which has a small phase shift between the two signals. Is their a way so that i can eliminate this phase difference to zero?
thanks
 
Engineering news on Phys.org
Can you not just add some capacitive or inductive compensation to the shifted signal...?
 
Perhaps a bit of basic electrical theory might be useful before leaping into a simulation? In 'the old days' no one would have expected to understand things if they relied on a soldering iron and a box of components (suck it and see). The only difference between that and a simulation is that a simulation can be modified much quicker.
It could be analogous to monkeys and typewriters, I think.
 
thanks but can't get your point
 
Where are the inputs coming from? Why is there a phase shift. Do you know?
I think sophiecentaur is trying to tell you that you should know some basic electronics before you jump into simulation.
 
thanks...these inputs is an array defined in a workspace...i know the phase shift is because of capacitor which makes the current to lead voltage but i have nothing to do with this because i have to just plot this values in simulink and want to have a zero phase difference so that i can use further for my analysis
 
jak9 said:
thanks...these inputs is an array defined in a workspace...i know the phase shift is because of capacitor which makes the current to lead voltage but i have nothing to do with this because i have to just plot this values in simulink and want to have a zero phase difference so that i can use further for my analysis

You have just confirmed my original point. It's a simulation. It is there to represent some real situation, involving electronic components, voltages and currents, isn't it?
To answer your question in the way you are asking it, all I can say is that the values in the array make the phase what it is. If you consider what your array actually represents then you may be able to relate things to the action of the components involved. It is likely that, if all the values in that array are real then there should be no phase shift on the input terminal. If that means noting to you then you need to do some circuit theory. Isn't that what your course is about?
 
yes you are right...its because of the values in the array i tried with filters but they too cause phase and magnitude shift so let see what happens...anyways thanks for all your help and advices
 
What actual components do the array values represent? That's the important thing, surely.
 
  • #10
well the array is voltage values and the other is current values
each array has one column of timevalues and another column of voltage/current values
for e.g: - V(100*2)
 
  • #11
jak9 said:
well the array is voltage values and the other is current values
each array has one column of timevalues and another column of voltage/current values
for e.g: - V(100*2)

That didn't answer centaur's question:
sophiecentaur said:
What actual components do the array values represent? That's the important thing, surely.

Are the (V,I) pairs representative of values from a circuit's operation? What is the circuit? Why do you want to change their relationship in phase? That relationship would normally be important in a simulation environment, no?
 
  • #12
I think I see where he's coming from. There is an input signal from it-matters-not-where and because it V and I are not in phase it is from a source with complex impedance. The OP uses the term "phase shift" when it just means a phase difference between V and I.
As an exercise, it has just generated some confusion for him ( and the rest of us).
He can:
1. Change the numbers in the input array: that will eliminate the phase difference.:wink:
2. Introduce an RC or RL combination to eliminate the phase difference (at one particular frequency). That is, actually, a straightforward 'exercise for the student' - just the other way round from what we normally come across and just calls for some rearranging of a well known formula.
 
  • #13
thanks...these V & I are the reading taken from the battery terminal of a car
 
  • #14
OMG, an added complication. Are the variations due to the AC component from the alternator (relatively fast, added to the 13V charging voltage) or due to some quirk of the battery under load (very slow)?
Just when we though we had it all sewn up.
 
  • #15
its because of alternator as the output from the rectifier of the alternator is not a pure dc
 
  • #16
and the measured V I phase difference is because of the source reactance of the alternator? Fair enough.
In your original question you wanted to eliminate the phase difference - I already posted how to do that. One solution would involve simulating an appropriate (power factor) compensating network between your source and the following simulated circuit.

Is your course about electrical theory or programming? If it's about electrical theory then I still say that you should do some basics before you enter into simulations, which can be fooled into letting you do almost anything. (I have never died whilst landing on a Flight Simulator, for instance).
 

Similar threads

Replies
4
Views
2K
  • · Replies 78 ·
3
Replies
78
Views
6K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
9
Views
2K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 27 ·
Replies
27
Views
1K
  • · Replies 17 ·
Replies
17
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K