Prototypes for Analysis Modules
- Updated2025-07-23
- 1 minute(s) read
The TestStand Sequence Analyzer requires that analysis modules use the following specific prototypes.
LabVIEW
The VI connector pane must use an ActiveX Refnum input with the ActiveX class set to TSAnalyzer.AnalysisContext and can optionally include an Error Out cluster output or a Boolean, an I32 numeric, and a string output, which represent the unbundled elements of an Error Out cluster. You can use the Unbundle by Name function in LabVIEW to obtain the individual elements of the Error Out cluster.
LabWindows/CVI
The function prototype must be one of the following:
void Function(CAObjHandle analysisContext);
bool Function(CAObjHandle analysisContext, char errorMessage[]);
int Function(CAObjHandle analysisContext, char errorMessage[]);
where analysisContext is an input that contains an instance of the TSAnalyzer.AnalysisContext ActiveX class, and errorMessage is a string buffer of 1024 characters in which the function returns error messages for the analysis module code.
Microsoft Visual C#
The method prototype must be one of the following:
void Method(NationalInstruments.TestStand.Interop.SequenceAnalyzer.AnalysisContext analysisContext);
bool Method(NationalInstruments.TestStand.Interop.SequenceAnalyzer.AnalysisContext analysisContext, out string errorMessage);
where analysisContext is an input that contains an instance of the AnalysisContext COM interop class and errorMessage is an output string in which the method returns error messages for the analysis module code.
Microsoft Visual C++
The function prototype must be one of the following:
void Function(TSAnalyzer::AnalysisContext *analysisContext);
bool Function(TSAnalyzer::AnalysisContext *analysisContext, char errorMessage[]);
int Function(TSAnalyzer::AnalysisContext *analysisContext, char errorMessage[]);
where analysisContext is an input that contains an instance of the TSAnalyzer.AnalysisContext ActiveX class, and errorMessage is a string buffer of 1024 characters in which the function returns error messages for the analysis module code.