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
tsmContext
ISemiconductorModuleContextThe NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.
value
TValue 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
ISemiconductorModuleContextThe 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 });