Creating Analysis Modules for Custom Rules
- 已更新2026-07-27
- 閱讀時間為 1 分鐘
NI recommends that you copy an analysis module template from the <TestStand>\Components\Analyzer\Templates\<Environment> directory to the <TestStand Public>\Components\Analyzer\<YourRuleName> directory, where <Environment> is LabVIEW, CVI, CSharp, or VC, or LabVIEW NXG and <YourRuleName> is the descriptive name or the unique ID of the custom rule. NI recommends also using your company name as part of the directory name to avoid potential conflicts with other custom analysis modules. After you copy the template files, search for the text Template in each source file and follow the instructions in the file.
相關內容
- Search Directories
- Accessing Rule Configuration Data in Rule Configuration Modules and Analysis Modules
To use custom rule settings during analysis, the analysis module first uses the AnalysisContext.GetRuleConfiguration method to retrieve the rule configuration and then accesses the RuleConfiguration.ConfigurationData PropertyObject, which is an empty container if the user did not configure the rule. The analysis module uses the default setting values in this case. Otherwise, the analysis module retrieves the setting values from the subproperties of the PropertyObject.
- Accessing Rule Settings in Analysis Modules
Use the RuleSettingValues.GetBooleanValue, RuleSettingValues.GetStringValue, and RuleSettingValues.GetNumberValue methods to obtain individual setting values.
- Creating Custom Rules in the TestStand Sequence Analyzer
You can customize the TestStand Sequence Analyzer by creating custom rules and analysis modules.
- Debugging Analysis Modules and Rule Configuration Modules