How Do I Plot a Single Period of a Waveform in Excel?

  • Thread starter Thread starter MissP.25_5
  • Start date Start date
  • Tags Tags
    Excel
AI Thread Summary
To plot a single period of a waveform in Excel, identify the minimum voltage value and trace it to the next local maximum, then back down to the subsequent local minimum, which defines one complete cycle. It is advisable to start from a maximum or minimum point for clarity, but any point in the cycle can be used as long as the complete waveform is captured. Users can graph all data to visually determine the period length, even if the data does not represent a perfect sine wave. Formatting the axis in Excel involves selecting the column and adjusting the settings to display values in a preferred format. The discussion also touches on calculating the fundamental frequency of an inverter's output voltage, which requires further clarification on the term.
MissP.25_5
Messages
329
Reaction score
0
Hello.
I have this set of data that I have to plot with excel but I only need to plot for ONE PERIOD of the waveform. But how do I determine from what data to what data is one period? In the data, the left side is time (s) and right side is the voltage (V).
 

Attachments

Physics news on Phys.org
Look at the data; find the minimum value - then follow the data up to its next local maximum, then back down its next local minimum.

That is one period - the cycle has returned to its starting point. Note that you won't find the _exact_ same value for the two minima; for that you would need perfect data, which does not exist.
 
UltrafastPED said:
Look at the data; find the minimum value - then follow the data up to its next local maximum, then back down its next local minimum.

That is one period - the cycle has returned to its starting point. Note that you won't find the _exact_ same value for the two minima; for that you would need perfect data, which does not exist.

The first data is a positive but the second date is a negative. How is that? Should I start from the second or first data if I wanted to start from 0 sec?
 
Or you can start at the first zero, go up, then down, cross a second zero, go negative to the lowest point, then back up to the crossing point ... that is one complete period.

You can actually start a period anywhere ... you just need to get the complete cycle. For your data this will include both the positive and the negative part.

But it is easiest to go from max to max, or min to min ... then you don't need to study the data so carefully. Note that starting at zero as above you only have a half cycle if you stop at the second zero.

This tutorial has clear pictures: http://www.physicsclassroom.com/Class/waves/u10l2a.cfm
 
UltrafastPED said:
Look at the data; find the minimum value - then follow the data up to its next local maximum, then back down its next local minimum.

That is one period - the cycle has returned to its starting point. Note that you won't find the _exact_ same value for the two minima; for that you would need perfect data, which does not exist.
That does not work, the data is not a nice sine curve.

Graph all of your data, then the approximate length of a period should be obvious.
 
mfb said:
That does not work, the data is not a nice sine curve.

Graph all of your data, then the approximate length of a period should be obvious.

the result is indeed not a nice sine data and my task is supposed to find out the reason, but first I have to graph this for one period.
 
UltrafastPED said:
Or you can start at the first zero, go up, then down, cross a second zero, go negative to the lowest point, then back up to the crossing point ... that is one complete period.

You can actually start a period anywhere ... you just need to get the complete cycle. For your data this will include both the positive and the negative part.

But it is easiest to go from max to max, or min to min ... then you don't need to study the data so carefully. Note that starting at zero as above you only have a half cycle if you stop at the second zero.

This tutorial has clear pictures: http://www.physicsclassroom.com/Class/waves/u10l2a.cfm

This is what I got. I start from 3.13E-01 and then to -3.13E-01 and then back to 3.13E-01. Is this right?
 

Attachments

  • wave.JPG
    wave.JPG
    34.1 KB · Views: 459
Can you plot the whole data range as comparison?
 
I skipped all of the headers ... imported starting at row 10, which is the data.

Then plotted columns A,B ... changed axes to be column A, which was removed from the plot.

Here is the pdf ... you can see the repetitions: a bunch of digital data positive, then negative ... then it looks like it repeats. One up block, one down block.

You could verify if this is a repetition by generating a new graph which is the _difference_ between the first period and the second period. Scale them. If not a good match, try including another pair of blocks.
 
Last edited:
  • #10
UltrafastPED said:
I skipped all of the headers ... imported starting at row 10, which is the data.

Then plotted columns A,B ... changed axes to be column A, which was removed from the plot.

Here is the pdf ... you can see the repetitions: a bunch of digital data positive, then negative ... then it looks like it repeats. One up block, one down block.

You could verify if this is a repetition by generating a new graph which is the _difference_ between the first period and the second period. Scale them. If not a good match, try including another pair of blocks.

What you plotted is not one period, but the whole time, isn't it?
 
  • #11
Yes, he plotted all of the data. Your plot in post #7 looks correct for one period.
 
  • #12
berkeman said:
Yes, he plotted all of the data. Your plot in post #7 looks correct for one period.

Could you teach me how to change the values into their normal form? I mean, I want to get rid of the 'E'.
 
  • #13
Right click on the axis to be modified, select Number ... and change the settings to what you like.

Or just click on the data column and change the formatting for the column; be sure to include enough decimal places.
 
  • #14
MissP.25_5 said:
Could you teach me how to change the values into their normal form? I mean, I want to get rid of the 'E'.

In Excel, click on the top of the column you want to format, in order to select the whole column.

Right-click the highlighted column's top, and select "Format Cells".

On the Number tab, choose the number formatting that you want, and click OK.

:smile:EDIT -- Beat out by Ultrafast! (hence the name...)
 
  • #15
berkeman said:
EDIT -- Beat out by Ultrafast! (hence the name...)

The moniker actually stands for "Ultrafast Photo-Electron Diffractometer" which measures laser-matter interactions with sub-picosecond temporal resolution. Ultrafast lasers generate pulses that are measured in femtoseconds ...
 
  • #16
UltrafastPED said:
The moniker actually stands for "Ultrafast Photo-Electron Diffractometer" which measures laser-matter interactions with sub-picosecond temporal resolution. Ultrafast lasers generate pulses that are measured in femtoseconds ...

Is this correct? I am not sure about the time, though. How is it 300 something seconds? I replotted for one period and there is a slight change compared to the one I posted before. I don't get it, which one is correct?
 

Attachments

  • graf.JPG
    graf.JPG
    32.2 KB · Views: 443
  • #17
You have to change the axis data: the default is to just use a counter. You need to select the first column data as the axis.

And delete the time data from the plot; it should be channel 1.
 
  • #18
UltrafastPED said:
You have to change the axis data: the default is to just use a counter. You need to select the first column data as the axis.

And delete the time data from the plot; it should be channel 1.

Can you do it for me? I don't get what you mean.
 
  • #19
Use the help button, and enter "axis formatting". The instructions vary with the version of Excel.
 
  • #20
MissP.25_5 said:
Can you do it for me? I don't get what you mean.

In Excel, click the Help icon, and type Format Axes into the search box. The first hit on the list of topics should be what you need.

EDIT -- I don't believe it! Beaten out again!
 
  • #21
UltrafastPED said:
You have to change the axis data: the default is to just use a counter. You need to select the first column data as the axis.

And delete the time data from the plot; it should be channel 1.

Ermmm..., I am still trying to figure out how to plot for one period of this set of data. My friend did it and he got 0.025 seconds for one period.
 
Last edited:
  • #22
Ok, I finally got it! Please check it. The time for one period is approximately 0.02 sec, isn't it? The frequency would be 50 Hz, right? By the way, this is a waveform of an output voltage of an inverter.
 

Attachments

  • graf.JPG
    graf.JPG
    34.6 KB · Views: 464
Last edited:
  • #23
berkeman said:
In Excel, click the Help icon, and type Format Axes into the search box. The first hit on the list of topics should be what you need.

EDIT -- I don't believe it! Beaten out again!

I have solved my excel problem. I have a new problem now. I have to find the fundamental component of the output voltage of the inverter. How do I do that? And what is a fundamental component of output voltage?
 
  • #24
berkeman said:
Yes, he plotted all of the data. Your plot in post #7 looks correct for one period.
It is less than a period, the data does not start with a zero crossing.

MissP.25_5 said:
Ok, I finally got it! Please check it. The time for one period is approximately 0.02 sec, isn't it? The frequency would be 50 Hz, right? By the way, this is a waveform of an output voltage of an inverter (AC to DC).
Looks good.

I have to find the fundamental component of the output voltage of the inverter.
Do you have some definition of that term?
 
  • #25
mfb said:
It is less than a period, the data does not start with a zero crossing.

Looks good.

Do you have some definition of that term?

Sorry, the inverter is used to convert DC to AC. And nope, I don't know what that is at all, that's why I asked.
 

Similar threads

Back
Top