PostTranslateAction Callback

TestStand ATML Toolkit 2017 Help

Edition Date: June 2018

Part Number: 374205B-01

»View Product Info
Download Help (Windows Only)

The ATML TD translator calls the PostTranslateAction callback after translating any 1.01 schema <Action> element or any 3.0 <Test> element.

Typical Use

Use the PostTranslateAction callback to modify VIs or functions that generated code modules can use and deallocate resources the PreTranslateAction callback allocated.


The following figure shows the controls and indicators connected to the VI connector pane.

  • TranslatorCodeGenerator—Automation Refnum control that uses the TranslatorCodeGenerator interface.
  • CodeGenerator—Automation Refnum control that uses the LVCodeGenerator interface.
  • DOMNode—Automation Refnum control that uses the MSXML DOM Node of the <Action> element.
  • Step—Automation Refnum control that uses the TestStand Step interface that <TestStand>\Bin\teapi.dll defines.
  • Error Out—The error out cluster, which contains the error status, code, and source information.


LabWindows/CVI Function Prototype

HRESULT __stdcall CodeGenerator_PostTranslateAction(
IDispatch * translatorCodeGen,
IDispatch * cviCodeGen,
IDispatch * domNode,
IDispatch * step,
long* errorCode,
BSTR* errorDescription )

Microsoft Visual C++ Function Prototype

extern "C" HRESULT __stdcall CodeGenerator_PostTranslateAction(
TranslatorCodeGenerator* translatorCodeGen,
CVICodeGenerator* cviCodeGen,
MSXML2::IXMLDOMNode* domNode,
TS::Step* step,
long* errorCode,
BSTR* errorDescription )


  • translatorCodeGen—Instance that implements TranslatorCodeGenerator interface.
  • cviCodeGen—Instance that implements CVICodeGenerator interface.
  • domNode—MSXML DOM Node of the <Action> element.
  • step—TestStand step the translator creates for the <Action> element.
  • errorCode—Error code to log in the log file.
  • errorDescription—Error description of the error code.

See Also

<Action> Element

Creating a DLL for a LabWindows/CVI Custom Code Generator

Creating a VI for a LabVIEW Custom Code Generator


Example LabVIEW Custom Code Generator VIs


PreTranslateAction Callback

Recommended LabWindows/CVI Function Prototypes

Recommended Microsoft Visual C++ Function Prototypes




Not Helpful