Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

[moved] how to measure phase difference in matlab?

Status
Not open for further replies.

HI12345

Newbie level 4
Joined
Mar 19, 2015
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
39
Hi all

I just got the graphs of current and voltage from the NI device.
I want to measure the phase difference between them.
And, I have a program to measure the phase difference, but I don't know how to import my graphs into the program.

Thanks
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
4,914
Helped
1,076
Reputation
2,162
Reaction score
1,066
Trophy points
1,393
Location
California, USA
Activity points
26,856
A "graph" is visual representation of data. When you say you are trying to "import my graphs" do you really mean you are trying to import data from an NI system into matlab? What is the format of that data? Is it compatible with Matlab? Is it ASCII text?
 

HI12345

Newbie level 4
Joined
Mar 19, 2015
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
39
I import the excel file into Matlab.
However, the phase angle is too small and it shows zero degree.
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
4,914
Helped
1,076
Reputation
2,162
Reaction score
1,066
Trophy points
1,393
Location
California, USA
Activity points
26,856
Well, you've got two choices:
1) Your phase angle is, in fact, very small.
2) Your calculation is wrong.

Did you plot your data in Matlab? Does it look the same as it does in NI?

Your initial post says you didn't know how to import your data, now you say 'the phase angle is too small'. You don't really give a lot of information. Is your problem actually that your Matlab program is not working properly?
 

HI12345

Newbie level 4
Joined
Mar 19, 2015
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
39
Sorry for giving too little information.
I did plot my data in matlab and it looks same as NI showed
My phase angle is very very small which is about 0.05 degree
However, I have to calculate the phase angle by using an algorithm
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,489
Helped
14,051
Reputation
28,357
Reaction score
12,708
Trophy points
1,393
Location
Bochum, Germany
Activity points
276,164
To determine a phase angle, you have to know the signal period.
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
4,914
Helped
1,076
Reputation
2,162
Reaction score
1,066
Trophy points
1,393
Location
California, USA
Activity points
26,856
Sorry for giving too little information.
I did plot my data in matlab and it looks same as NI showed
My phase angle is very very small which is about 0.05 degree
However, I have to calculate the phase angle by using an algorithm
So, what is your problem? How do you know your phase angle is 0.05 degrees? Is that the physical reality? Is your sampling system precise enough to measure this? Is this a computation problem? A measurement problem?
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top