Agilent T&M Toolkit 2.0 New Features: Spectrum Data Type

Agilent T&M Toolkit 2.0 for Visual Studio .NET 2003 also supports a Spectrum data type which maps an array of complex values (y axis) to the frequency domain (x axis).  It can be used like so:

using Agilent.TMFramework;
using Agilent.TMFramework.DataAnalysis;
using Agilent.TMFramework.DataVisualization;

FunctionWaveformGenerator fgen = new FunctionWaveformGenerator();
fgen.FunctionType = FunctionType.Square;

Waveform w = fgen.GenerateWaveform();
Spectrum s = Dsp.FFT(w);
Waveform w2 = Dsp.IFFT(s);

magnitudeSpectrumGraph.PlotDefaultTrace(s);
phaseSpectrumGraph.PlotDefaultTrace(s);

Spectrum supports various operator overloads like +, -, * and / as does the Waveform data type.

Advertisements
This entry was posted in Agilent T&M Toolkit. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s