Table of Contents

Method NewSiteData

Namespace
NationalInstruments.SemiconductorTestLibrary.DataAbstraction
Assembly
NationalInstruments.SemiconductorTestLibrary.Abstractions.dll

NewSiteData<T>(ISemiconductorModuleContext, T)

Creates a new SiteData<T> object with the same value for all sites.

public static SiteData<T> NewSiteData<T>(this ISemiconductorModuleContext tsmContext, T value)

Parameters

tsmContext ISemiconductorModuleContext

The NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.

value T

Value to apply to all sites.

Returns

SiteData<T>

A new SiteData<T> object.

Type Parameters

T

Data Type of value to use with SiteData<T> object.

Remarks

Example Usage:

var data = tsmContext.NewSiteData(4.0);

NewSiteData<T>(ISemiconductorModuleContext, T[])

Creates a new SiteData<T> object with unique values for all sites.

public static SiteData<T> NewSiteData<T>(this ISemiconductorModuleContext tsmContext, T[] values)

Parameters

tsmContext ISemiconductorModuleContext

The NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.

values T[]

Values to apply to each site.

Returns

SiteData<T>

A new SiteData<T> object.

Type Parameters

T

Data Type of value to use with SiteData<T> object.

Remarks

Note: the number of elements in value must equal to number of sites in NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext.

Example Usage:

var data = tsmContext.NewSiteData(new double[] { 1.0, 2.0, 3.0, 4.0, 5.0 });