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
Click For Summary

Discussion Overview

The discussion revolves around how to plot a single period of a waveform using Excel, focusing on identifying the correct data points that represent one complete cycle of the waveform. Participants explore various methods for determining the period based on the provided time and voltage data.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • Some participants suggest identifying one period by locating the minimum value and following the data to the next local maximum and back to the next local minimum.
  • Others propose starting from the first zero crossing and following the waveform up and down to capture a complete cycle, noting that starting at zero may only yield a half cycle.
  • A participant mentions that the data does not represent a nice sine curve and suggests graphing all data to visually determine the approximate length of a period.
  • Some participants discuss the importance of ensuring the correct axis data is used in the plot, emphasizing the need to select the first column data as the axis instead of a counter.
  • One participant expresses uncertainty about the time measurement for one period and notes a discrepancy in their results after replotting.
  • Another participant confirms that a plot presented earlier appears correct for one period.
  • There is a request for assistance in changing the number format in Excel to eliminate scientific notation.
  • A participant mentions needing to find the fundamental component of the inverter's output voltage after resolving their plotting issue.

Areas of Agreement / Disagreement

Participants express differing views on the best method to identify one period of the waveform, with no consensus reached on a single approach. Some agree on the validity of certain plots while others question the accuracy of their own results.

Contextual Notes

Participants note that the data may not be ideal for straightforward analysis due to its non-sinusoidal nature, which could affect the identification of periods. There are also mentions of potential discrepancies in time measurements and the need for careful axis formatting in Excel.

Who May Find This Useful

This discussion may be useful for individuals working with waveform data analysis, particularly in contexts involving Excel plotting, signal processing, or electrical engineering applications.

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: 480
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: 459
  • #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: 489
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

Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
724
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K