09-23-2005 03:52 PM
09-26-2005 11:01 AM
Hi gja,
I was hoping you could post a screenshot of what you mean by incorrectly scaled amplitude. Also, paste a snippet of your code in which you are creating the spectrum. This will help me determine what we can do to better scale your data.
09-27-2005 10:45 AM
For i = 0 To ulCount - 1
xtime(i) = xtimetemp(i)
Datanm(i) = 10 * Sin(xtimetemp(i) * 100000)
Next i
dttime = 1 / ulCount
09-28-2005 03:52 PM
09-29-2005 01:38 PM
Yes, I think this SpectrumUnitConversion should do the trick. I do have a question on the inputs for that function however. What exactly are the ENBW and CoherentGain inputs?
10-01-2005 01:24 PM
The Help topic for the SpectrumUnitConversion Method describes ENBW as, “equivalent noise bandwidth of the selected window. You can use this value to compute the power in a given frequency span.” CoherentGain is defined as, ”peak gain of the window relative to the peak gain of the Rectangular window. Use this value to normalize peak signal gains to that of the Rectangular window.”
The Help topic also says, “The ENBW and CoherentGain parameters are output by the ScaledWindow function. You need this input only when you use the spectral density output formats (the last four DisplayUnit selections).” In other words, you only need to use these inputs if you have used the ScaledWindow method and are setting the DisplayUnit to 4, 5, 6, or 7. From what you and Caroline have discussed, I assume you will be setting the DisplayUnit parameter to 1.
Regards,
Eric
10-01-2005 05:42 PM
10-03-2005 03:09 PM
Hi Steve,
i do not have an example to show you but if you could tell me specifically what you have questions on in regards to the syntax than I can better help you out. Let me know what specific parts of the functions you are having trouble with and I can help you out.