How is calculated the amplitude in the FFT function?
Hello,
I have a time signal, for example an 1KHz tone. I use the FFT complex function to calculate its Fourier Transform, and I want to Know, which is the relation beetween the amplitude of this FFT and my time signal.
I have an example of a sine of 1KHz with an amplitude of 1V. When I calculate the FFT the result is one delta at the correspondient frecuency, but with an amplitude of 12149. My signal has 65536 samples.
Could you help me please?
With the complex FFT, I do believe you have to normalize the by half the size of your sample set. This should give you back the original magnitude of your signal. Take a look at this screenshot.
Attachments:
fft_magnitude.jpg 65 KB
Similar Messages
-
Adjust the frequency and the amplitude of the harmonic
hello all
I have a program that works but I want to know how do you adjust the frequency and amplitude of harmonics,
please find attached my program
thank you in advance
Attachments:
program.vi 41 KBHi Cherifalami,
With your VI it could be possible configure the amplitude and frequency of your harmonics directly through the equation you input to the f(t) generation VI.
Here is an additionnal code you could use to simulated a mutliple harmonics signal.
Best regards
Romain DUVAL || Application Engineer Specialist ||Certified LabVIEW Architect (CLA) || Certified TestStand Architect (CTA)
National Instruments France
Attachments:
exemple.vi 25 KB -
How to get the amplitude of a sound as a float number in Java
Hi, I would like to create a program which plays an audio file(it may be a midi, probably) and it returns
the amplitude of the sound in terms of float number.
I mean, is it possible to obtain this number, since every sound file is actually a sequence of float number like
110.010110101 etc.
Can you help me with suggestions and details about the way to take.
Regards
FrankFor sampled sound, the answer might be seen in [ this thread|http://forums.sun.com/thread.jspa?messageID=10636576#10636576]. For MIDI it is different in that you will only be able to get it as sampled sound once it has been synthesized, and as I recently found out, to get the audio coming through the regular sound lines will take nothing less than a physcical or software 'audio loopback' being installed, on most PCs.
Of course, if it is MIDI, you might just cheat by calculating a 'volume' from the note velocities in the MIDI score. -
To increase the amplitude of a spectrum
hello,
I have a spectrum and I would like to increase the amplitudes of the fundamental frequency and harmoniques. Is it possible ???
Thank you ?Hi,
When using "Harmonic distortion analyzer.vi" you can get the fundamental frequency and its multiples in array.
Take the array and perform the scaling you need.
But if you need to increase harmonics for the original signal, this is completely different story which I have no idea how to do it.
The attached VI shows performing an addition to the harmonics detected from a signal.
Attachments:
Increase Harmonics.vi 97 KB -
Most efficient way to extract the amplitude of a signal and display on an intensity graph
Hi All,
I am having difficulty to display the amplitude of an voltage signal (voltage picked up by NI DAQ card).
what I am trying: Voltage signal (Dynamic data type)--> 2D array of dynamic data type (using 2 nested for loops) --> normal 2D array with scalar values --> intensity graph
I have difficulty to convert the dynamic 2D array to scalar 2D arry.
I only want to extract the amplitude of the imcoming signal.. any body can give some advice? thanks in advance..
CharlieHi Hillary,
Thanks for your reply.
Yes, I did tried to use Amplitude and Levels Express vi, it should be the one I am looking for, but I found it not work in my case, I need to put the value of amplitudes into a 2D array.
If I use Amplitude and Levels Express vi, it will give me a 3D array, I have found the solution, just convert the dynamic data to single scalar. (see pic attached)
Anybody can help me to solve the following 2 problems:
1. The speed of this program is too low, i think ii due to the DAQ assistant in the 2 for loops (for creating 2D array), it should be able to re-write using DAQmx (as "centerbolt" told me), I am working on this now, if anybody can help, I will appreciate that.
2. Is there any other way to creat the 2D array (for purpose of increasing speed also).
Thanks,
Charlie -
Whenever I measure the amplitude of a signal using the Extract Single Tone VI, the amplitude is smaller than if I measured the signal by hand by positioning the top and bottom cursors to the highest and lowest peaks of the captured waveform. Should I not use the Extract Single Tone VI to measure amplitude? I'm using Labview 6i.
I'm not exactly sure but I think the amplitude from the Extract Single Tone vi is in peak volts (Vp). When you use the cursors on a scope set to the top and bottom peaks, you are measuring volts peak to peak (Vp-p). If the Extract vi amplitude is one half of your scope reading, then this is true. Just double your Extract vi amplitude to get the peak to peak voltage. It also depends on the signal. If your signal is a square wave from 0 to 5 volts (TTL), this is usually measured in peak voltage. A sinewave going positive and negative (from -5 to +5) is usually measured in peak to peak.
- tbob
Inventor of the WORM Global -
Integrating a waveform to obtain a running sum of the amplitude
I am trying to decide the easiest way to integrate a waveform. I have obtained a signal and done a series of waveform operations on it, not I need to sum up the amplitudes of the waveform. I am assuming that the best way to do this is going to be using some sort of integration. I can't seem to get a simple integrator to do this.
Thanks for your helpHere is a little more information about the application. I have used data aquisitions to aquire two AC voltage waveforms. I have rectified the waveforms, and summed the two waveforms together. Now I need to take a summation (running sum) of the resulting waveform. Accuracy is somewhat of a concern, as this running sum will be used to calculate a series of costs and usage characteristics.
Hope this helps by giving an idea of what I am looking to do.
I have tried to do the numeric integration, but I am having a problem getting the waveform to sample as needed. My other idea was to convert the waveform to (x,y) coordinates and work with that data. I'm not sure what the best way will be. -
How do I use the context of the column as part of my calculated measure/column?
Hello,
I've struggled with this for a week now.
I need my calculation to take the context of the column that it's in and use that value as part of a lookup/filter with which to do an operation.
I basically want to add up the "Value" of all the "ORUs" associated to a Manager(MGR). But since the ORU's are spread across many managers, I need to calculate the Value
for an "ORU" and multiply by the "Percent" ( of people that who belong to that ORU for that MGR). The difficulty is that the MGR(and associated Percent) is one table which is connected via the ORU. There's no way connection
to the MGR except by the Column Context. So, how do I get to it for the calculation?
I'd like: CALCULATE(SUM(ORUBUMGR[Percent], FILTER (ORUBUMGR, ORUBUMR[MGR]={This column's header value!})
pseudo-code would be:
For each cell in the Pivot table
SUM
For each ORU
Percent= Look up the multiplier for that ORU associated with the Column
SUMofValue = Add all of the Values associated with that Column/Row combination
Multiply Percent * SUMofValue
What won't work is: CALCULATE(SUM(ORUBUMGR[Percent]), ORUMAP)*CALCULATE(SUM(Charges[Value]), ORUMAP)
because you're doing a sum of all the Percentages instead of the sum of the Percentages which are only associated with MGR (i.e., the column context)
The alternatives I can think of is doing a cross join between the tables so you end up with a copy of "Charges" for every row in ORUBUMGR...but while that would work for the example, it
won't scale as my actual Charge table is quite large. It'll also end up being quite complicated. Or, having a column for each MGR where the lookup to the Percent is hardcoded into the calculation...but that also seems complicated and won't scale
when I want to do future changes.
I'd appreciate any assistance...even a "that's impossible".
Kind Regards,
Alex
Link to the XLS on onedrive
_https://onedrive.live.com/redir?resid=67E698690736D027!3358&authkey=!ADU5F41Sg08Ygm0&ithint=file%2cxlsx
Link to image showing data and what the pivot answer should look like _http://i.imgur.com/2HC7Lk7.png
Link to image showing the data model _http://i.imgur.com/KK3b61v.png
(I'm waiting to be verified..)Yes, you're right, my calculation first attempt only works if the ORU and MGR are on the rows. :(
I came up with a 2 step calc which is similar to the final calc posted by ImkeF although maybe a little cleaner. It uses a many to many pattern to calculate the ChargeAmt and then a SUMX to iterate over the ORUBUMGR table and apply the percentages.
ChargeAmt:=CALCULATE(SUM(Charges[Value]),ORUMAP)
Amt2:=SUMX(ORUBUMGR, ORUBUMGR[Percent] * [ChargeAmt])
You can roll these into a single measure, you just have to wrap the expression from [ChargeAmt] in another calculate so that it does both the many to many calc and the transition from filter context to row context
Amt3:=SUMX(ORUBUMGR, ORUBUMGR[Percent] *CALCULATE(CALCULATE(SUM(Charges[Value]),ORUMAP)))
Personally I think I'd go with the two measure approach (even if you end up hiding [ChargeAmt]) as I think it's easier to read and will be easier to maintain.
http://darren.gosbell.com - please mark correct answers -
How to calculate the total of a calculated column in a list view at the end of the view?
I have a view with the following columns ProductName, Quantity, Price, Total The total column is a calculated column which is the product of quantity and price. I want to place the sum of the total column by the end of the list view. I can do this with
the price and quantity but not with the total column. how do I do this?You can use SharePoint Designer and calculate the total in xslt view. Refer to the following post for more information
http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/04/24/how-to-total-calculated-columns-in-a-sharepoint-list.aspx
http://blog.metrostarsystems.com/2012/12/03/jennys-sharepoint-tip-sum-calculated-columns/
Cheers, -
The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
pear to be working or at least I am not getting any indication on the inidcator.
Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
Attachments:
regulation_tester_7_loops.vi 244 KBI didn't really have time to dig in and understand your program in depth,
but I have a few tips for you that might things a bit easier:
- You use local variables excessively which really complicates things. Try
not to use them and it will make your life easier.
- If you flowchart the design (very similar to a dataflow diagram, keep in
mind!) you want to gather data, calculate a value from that data, store the
calculation in an array, and loop while the time is in a certain range. So
theres really not much need for a sequence as long as you get rid of the
local variables (sequences also complicate things)
- You loop again if timepassed+1 is still less than some constant. Rather
than messing with locals it seems so much easier to use a shiftregister (if
absolutely necessary) or in this case base it upon the number of iterations
of the loop. In this case it looks like "time passed" is the same thing as
the number of loop iterations, but I didn't check closely. There's an i
terminal in your whileloop to read for the number of iterations.
- After having simplified your design by eliminating unnecessary sequence
and local variables, you should be able to draw out the labview diagram.
Don't try to use the "insert into array" vis since theres no need. Each
iteration of your loop calculates a number which goes into the next position
of the array right? Pass your result outside the loop, and enable indexing
on the terminal so Labview automatically generates the array for you. If
your calculation is a function of previous data, then use a shift register
to keep previous values around.
I wish you luck. Post again if you have any questions. Without a more
detailed understanding of your task at hand it's kind of hard to post actual
code suggestions for you.
-joey
"nelsons" wrote in message
news:[email protected]...
> how do I create a 1d array that takes a single calculation and insert
> the result into the first row and then the next calculation the next
> time the loop passes that point and puts the results in thsecond row
> and so on until the loop is exited.
>
> The attached file is work inprogress, with some dummy data sp that I
> can test it out without having to connect to equipment.
> The second tab is the one that I am having the problem with. the
> output array from the replace element appears to be starting at the
> index position of 1 rather than 0 but that is ok it is still show that
> the new data is placed in incrementing element locations. However the
> main array that I am trying to build that is suppose to take each new
> calculation and place it in the next index(row) does not appear to be
> working or at least I am not getting any indication on the inidcator.
>
> Basically what I am attempting to do is is gather some pulses from
> adevice for a minute, place the results for a calculation, so that it
> displays then do the same again the next minute, but put these result
> in the next row and so on until the specifiied time has expired and
> the loop exits. I need to have all results displayed and keep building
> the array(display until, the end of the test)Eventually I will have to
> include a min max section that displays the min and max values
> calculated, but that should be easy with the min max function.Actually
> I thought this should have been easy but, I gues I can not see the
> forest through the trees. Can any one help to slear this up for me. -
I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation. It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0. How can I get this to work?
Oaky, at least we got that far. Next step is to determine if all those "numbers" are really numbers. Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number. Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
Here are some that will remain as strings:
+123
123 with a space after it.
.123 -
Hi All,
I have a scenario like this :
Look into the follwing Data.
PLANT | RUNDATE| WORK_CENTER| SHIFT| PRODUCT_TYPE| ALLOWED_TIME| LINEHOUR1
1010--10/01/2007D0001A400--
0.114
1010--10/01/2007D0001B500--
0.142
1010--10/01/2007D0001C100--
0.028
1010--10/01/2007D0001D1100--
0.314
1010--10/01/2007D0001E600--
0.171
1010--10/01/2007D0001F800--
0.228
TOTAL ALLOWED_TIEM------ 3500
1010--10/01/2007D0011A1400--
0.334
1010--10/01/2007D0011B500--
0.142
1010--10/01/2007D0011C100--
0.028
1010--10/01/2007D0011D1100--
0.314
1010--10/01/2007D0011E600--
0.171
1010--10/01/2007D0011F800--
0.228
TOTAL ALLOWED_TIEM------ 4500
I have to calculate the Production Line Hours, based on the following calculation.
Now i have to input the value in the INFOOBJECT LINEHOUR1 based on the following calculation.
400 / 3500 = 0.114 (ALLOWED_TIME of every line item has to be divided with TOTAL ALLOWED_TIME)
500 / 3500 = 0.142
100 / 3500 = 0.028
1100 / 3500 = 0.314
.........so on
The workcenter is different is two blocks of example data, and hence to be calculated differently.
Now how to achive this,
I appriciate your insite on this problem.
Regards
Shaan.Hi Philips,
Thanks for your response.
I want to make you more clear about the problem.
We are calculating based on the following combinations.
PLANT--RUNDATE-WORKCENTER-SHIFT-----PRODUCTTYPE
We have three different Plants.
Rundate is assume as the Calday.
We have 18 Workcenters.
Each Workcenter can have 3 shifts maximum.
And in every sift there would be 3 to 4 product types produced.
So what i mean to let you know is, the calculation is not based on WORKCENTER, where as it is based on all the five(5)
characteristics combination.
The total allowed time will be calculated based on PLANT......RUNDATE......WORKCENTER....SHIFT.
We normally calculate the linehour with the below formula...
(ALLOWED TIME/ TOTAL ALLOWED TIME) * (SHIFTTIME - DOWN TIME - BREAK TIME).
So i have all the information in the line item level except the TOTAL ALLOWED TIME.
Now i want to insert a new column in the CUBE and wanted to have the TOTAL ALLOWED TIME in every line item,
might not seem to be a good idea, but just let me know how to do it.
If it is not clear, you can ask me for further questions.
THANK YOU PHILIPS.
Regards
Shaan -
How does one increase the y-axis (amplitude) of the audio tracks?
How does one increase the y-axis (amplitude) of the audio tracks? My patient appears to have flatlined. I don't want to increase the gain, just the way the waveform looks on my monitor.
DrDtMM
The "Expert view" is a part of the new interface of Premiere Elements 11. In your version 10, you have the Timeline and the Sceneline view choices.
For now, I will assume that you are in the Timeline view where you utilize video and audio tracks and not a Filmstrip with scene slots.
I suspect that you may be after the following. Let us see.
To the right of where it shows the name "Audio 1" is a microphone icon. That represents the "Audio Display Style". There are two Audio Display Styles and you can select one or the other by toggling that microphone icon.
a. In one instance, you will see the wave form plus a horizontal orange line which is typically the Volume Rubberband for Volume adjust. This Display Style has a light green background.
and
b. In the other case, you will see a dark horizontal line, no wave form. That dark line is on a light green background.
I suspect you are at "b". Are you aware that "a" exists.
If you want a really blown up version of "a" to look at, you could separate the audio from the video, double click the audio to open the Preview Windows, and then scale up the Preview Window.
We will be watching for your follow up to see if we are getting in sync.
Thanks.
ATR -
Hello
I have a problem in calculating the apple id Can you help me please
I forgot answer security questions for your account How can knowledge
Please help
Please reply as soon as possible
I can not buy from camels Store
And the rest of the account balance $25
Message was edited by: lingo azamI think you mean App Store.
Rescue email address and how to reset Apple ID security questions -
How to calculated the with out quntity strecter cost estimate
dera sir &mams
how to calculated the with out quntity strecter cost estimate.
thankes regardsDear Battikala,
Please post your questions in an understandable way without any spelling mistakes.
Regards
Madhusekhar Gupta
Maybe you are looking for
-
Need Help With Custom Calculation Script
Hey everyone. I'm using Acrobat Pro X and stumbling a bit on the syntax for the following equation. I need to add the value of "Cell1" & "Cell2" then add the value of "Cell3". However,the value of "Cell3" is entered by the user and specifies a per
-
My new Ipod Nano 7 does not come up as a drive on my computer. The computer clunks to acknowledge a new device is attached but it is not shown in explorer. ITunes DOES open as it should, but it gives me a message "An IPod has been detected but it cou
-
Help needed in RTF form field to display yes or no based on xml value
Hi, I have the data in xml as follows: <CP_ZERO_COST>2</CP_ZERO_COST> Now my requirement is, if CP_ZERO_COST is 2 then the column should display 'No' and if CP_ZERO_COST is 1 the column should display 'Yes'. Now this 'yes' or 'no' is not coming in xm
-
How can I set a different language in Pages
How can I change the language in pages? I'm editing a document in French, so want the spell checker to check in French, not English !
-
Infotype 2011 corresponding RFC in Component version 5.0
Hi all , I am very new to SAP. Basicaly i am a XI consutnat. Now i am working on HR scenario infotype 2011. what my task is i have to insert employee, third party access control data to the R/3 system. I am woking on SAP ERP Central Component 5.0.