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

  • Thread starter MissP.25_5
  • Start date
  • Tags
    Excel
In summary, if you need help with Microsoft Excel, there are many resources available such as online tutorials, user forums, and help documents provided by Microsoft. You can also seek assistance from colleagues or hire a professional to guide you through any difficulties you may encounter while using the software. With its vast array of features and functions, Excel can be a powerful tool for data analysis, organization, and presentation. With the right support and practice, you can become proficient in using Excel for your personal or professional needs.
  • #1
MissP.25_5
331
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

  • 1303-07A.TXT
    141.8 KB · Views: 425
Physics news on Phys.org
  • #2
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.
 
  • #3
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?
 
  • #4
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
 
  • #5
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.
 
  • #6
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.
 
  • #7
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: 410
  • #8
Can you plot the whole data range as comparison?
 
  • #9
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: 395
  • #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: 416
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.
 

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

1. What is Microsoft Excel?

Microsoft Excel is a spreadsheet program developed by Microsoft. It is used for organizing, analyzing, and storing data in a tabular format. It is commonly used in businesses, schools, and personal projects.

2. How can I get help with Microsoft Excel?

There are several ways to get help with Microsoft Excel. You can refer to the official Microsoft Excel Help Center, use the built-in help feature in the program, or search for tutorials and guides online.

3. What are some common issues in Microsoft Excel?

Some common issues in Microsoft Excel include formatting errors, formula errors, and compatibility issues with other programs. It is also common to encounter issues with large datasets or complex formulas.

4. How can I improve my skills in Microsoft Excel?

Improving your skills in Microsoft Excel can be done through practice and learning from tutorials and guides. You can also attend training courses or workshops, or seek help from more experienced users.

5. Is there a limit to the amount of data I can store in Microsoft Excel?

Yes, there is a limit to the amount of data that can be stored in Microsoft Excel. The maximum number of rows is 1,048,576 and the maximum number of columns is 16,384 in the most recent versions of Excel. However, this limit can vary depending on the version of Excel and the hardware of your computer.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
250
  • Engineering and Comp Sci Homework Help
Replies
29
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
16
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
Back
Top