Create a plugin. To create a plugin, you need to use either one of our Visual Studio templates or create a new project using
the .NET language of your choice. To create a C# plugin from scratch, you first need to create a new, empty C# project. Once
you create your project, add references to ScopeSupportBase, TekScriptingEngine, System.Data, System.Data.DataSequence,
System.XML and System.Xml.Linq. In your code, use System, System.Collections.Generic, System.Linq, System.Text, and
Tek.Scope.Support.
There are no requirements for the name of the class or namespace the plugins use. In this example the namespace is
MyMathPlugins and the class name is MyMath. The plugin function is a public, static function inside the class with the math
attribute. We call our plugin Add, and it takes two INormalizedVectors as input and produces an INormalizedVector.
namespace MyMathPlugins
{
class MyMath
{
// Add(<wfm>, <wfm>):
// This plugin adds two INormalizedVector inputs
[Math]
public static void Add(ISettings settings, IRange gate, INormalizedVector output, INormalizedVector input1,
INormalizedVector input2)
{
// We only want to add up to the shorter input length
if (input1.Count < input2.Count)
{
output.Count = input1.Count;
output.Horizontal.Spacing = input1.Horizontal.Spacing;
output.Horizontal.ZeroIndex = input1.Horizontal.ZeroIndex;
}
else
{
output.Count = input2.Count;
output.Horizontal.Spacing = input2.Horizontal.Spacing;
output.Horizontal.ZeroIndex = input2.Horizontal.ZeroIndex;
}
// Add two inputs together
for (long i = 0; i < output.Count; i++)
output[i] = input1[i] + input2[i];
}
}
}
Oscilloscope reference
DPO70000SX, MSO/DPO70000DX, MSO/DPO70000C, DPO7000C, and MSO/DPO5000B Series
713
Содержание DPO2304SX
Страница 1: ...Tektronix Digital Phosphor Oscilloscopes Printable Help P077006219 077 0062 19...
Страница 2: ......
Страница 3: ...Tektronix Digital Phosphor Oscilloscopes Printable Help www tek com 077 0062 19...
Страница 32: ...Introduction xxviii DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 83: ...About Tektronix oscilloscopes DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series 51...
Страница 89: ...About Tektronix oscilloscopes DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series 57...
Страница 100: ...About Tektronix oscilloscopes 68 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 130: ...Cursor setups 98 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 198: ...MagniVu setup 166 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 212: ...Display setups 180 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 234: ...Horizontal and acquisition setups 202 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 276: ...Mask testing setups 244 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 300: ...Math setups 268 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 408: ...MyScope setups 376 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 510: ...Trigger setups 478 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 548: ...Vertical setups 516 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 558: ...Copying and printing 526 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 605: ...Utilities DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series 573...
Страница 606: ...Utilities 574 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 687: ...Figure A Figure B Oscilloscope reference DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series 655...
Страница 898: ...Oscilloscope reference 866 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...
Страница 920: ...Index 888 DPO70000SX MSO DPO70000DX MSO DPO70000C DPO7000C and MSO DPO5000B Series...