Method DoAndPublishResults
- Assembly
- NationalInstruments.SemiconductorTestLibrary.Abstractions.dll
DoAndPublishResults<TSessionInformation>(ISessionsBundle<TSessionInformation>, Func<TSessionInformation, double>, string)
Does an operation and publishes the results.
public static double[] DoAndPublishResults<TSessionInformation>(this ISessionsBundle<TSessionInformation> sessionsBundle, Func<TSessionInformation, double> function, string publishedDataId = "")
Parameters
sessionsBundle
ISessionsBundle<TSessionInformation>The sessions bundle object.
function
Func<TSessionInformation, double>The operation to happen on each session info.
publishedDataId
stringThe unique data id to use when publishing.
Returns
- double[]
The per-instrument operation results.
Type Parameters
TSessionInformation
The type of the session info.
DoAndPublishResults<TSessionInformation>(ISessionsBundle<TSessionInformation>, Func<TSessionInformation, double[]>, string)
Does an operation and publishes the results.
public static double[][] DoAndPublishResults<TSessionInformation>(this ISessionsBundle<TSessionInformation> sessionsBundle, Func<TSessionInformation, double[]> function, string publishedDataId = "")
Parameters
sessionsBundle
ISessionsBundle<TSessionInformation>The sessions bundle object.
function
Func<TSessionInformation, double[]>The operation to happen on each session info.
publishedDataId
stringThe unique data id to use when publishing.
Returns
- double[][]
The per-instrument per-channel operation results as a jagged array. Where, the first dimension represents the instrument sessions, and the second dimension represents the instrument channels within an instrument session.
Type Parameters
TSessionInformation
The type of the session info.
DoAndPublishResults<TSessionInformation>(ISessionsBundle<TSessionInformation>, Func<TSessionInformation, bool>, string)
Does an operation and publishes the results.
public static bool[] DoAndPublishResults<TSessionInformation>(this ISessionsBundle<TSessionInformation> sessionsBundle, Func<TSessionInformation, bool> function, string publishedDataId = "")
Parameters
sessionsBundle
ISessionsBundle<TSessionInformation>The sessions bundle object.
function
Func<TSessionInformation, bool>The operation to happen on each session info.
publishedDataId
stringThe unique data id to use when publishing.
Returns
- bool[]
The per-instrument operation results.
Type Parameters
TSessionInformation
The type of the session info.
DoAndPublishResults<TSessionInformation>(ISessionsBundle<TSessionInformation>, Func<TSessionInformation, bool[]>, string)
Does an operation and publishes the results.
public static bool[][] DoAndPublishResults<TSessionInformation>(this ISessionsBundle<TSessionInformation> sessionsBundle, Func<TSessionInformation, bool[]> function, string publishedDataId = "")
Parameters
sessionsBundle
ISessionsBundle<TSessionInformation>The sessions bundle object.
function
Func<TSessionInformation, bool[]>The operation to happen on each session info.
publishedDataId
stringThe unique data id to use when publishing.
Returns
- bool[][]
The per-instrument per-channel operation results as a jagged array. Where, the first dimension represents the instrument sessions, and the second dimension represents the instrument channels within an instrument session.
Type Parameters
TSessionInformation
The type of the session info.
DoAndPublishResults<TSessionInformation>(ISessionsBundle<TSessionInformation>, Func<TSessionInformation, Tuple<double[], double[]>>, string, string)
Does an operation and publishes the results.
public static Tuple<double[][], double[][]> DoAndPublishResults<TSessionInformation>(this ISessionsBundle<TSessionInformation> sessionsBundle, Func<TSessionInformation, Tuple<double[], double[]>> function, string publishedDataId1 = "", string publishedDataId2 = "")
Parameters
sessionsBundle
ISessionsBundle<TSessionInformation>The sessions bundle object.
function
Func<TSessionInformation, Tuple<double[], double[]>>The operation to happen on each session info. This operation returns two results.
publishedDataId1
stringThe unique data id to use when publishing the first operation result.
publishedDataId2
stringThe unique data id to use when publishing the second operation result.
Returns
- Tuple<double[][], double[][]>
The two per-instrument per-channel operation results as a tuple of two jagged arrays, one for each set of results. Where, the first dimension of each jagged array represents the instrument sessions, and the second dimension represents the instrument channels within an instrument session.
Type Parameters
TSessionInformation
The type of the session info.