Generating Complete Code Modules Using a Custom Code Generator
- Updated2025-10-28
- 2 minute(s) read
Generating Complete Code Modules Using a Custom Code Generator
The ATML TD translator translates an <Action> or <Test> element to a step in the translated TestStand sequence and translates the <Action>, <Test>or <Behavior> element as a LabVIEW or LabWindows/CVI code module for the step. Because the translator cannot translate all elements in a TD source file to constructs in TestStand or logic in code modules, the translator creates comments that describe the operations and logic you must implement to create a complete test program.
You can manually implement the operations and logic the comments in the code modules describe, or you can use the custom code generator callbacks during translation to programatically translate the code module comments to code that implements the logic required to complete the test program. The translator calls the callbacks when translating an <Action> or translating a <TestGroup> element. Use a custom code generator when you want to implement code only once in callbacks, which you can reuse when translating multiple TD instance documents, to avoid manually implementing the missing code for each TD instance document you translate. You can implement one or more callbacks in a custom code generator.
API
The ATML Toolkit includes custom code generator API classes, properties, methods, and enumerations you can use when implementing the code generator functionality.
Related Information
- Creating LabVIEW Code Modules for Behavior Elements
- Creating LabWindows/CVI Code Modules for Behavior Elements
- Completing the Partial Test Program
- Incrementally Updating a Translated Sequence File
- Implementing a LabVIEW Custom Code Generator
- Implementing a LabWindows/CVI Custom Code Generator
- Logging Translation Information
- Custom Code Generator API