Method NewSiteData
- 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
tsmContextISemiconductorModuleContextThe NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.
valueTValue to apply to all sites.
Returns
- SiteData<T>
 A new SiteData<T> object.
Type Parameters
TData 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
tsmContextISemiconductorModuleContextThe NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.
valuesT[]Values to apply to each site.
Returns
- SiteData<T>
 A new SiteData<T> object.
Type Parameters
TData 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 });