PostTranslateStep 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 PostTranslateStep callback after translating each <Step> element.

Typical Use

Use the PostTranslateStep callback to change properties other than post actions of the step and deallocate resources the PreTranslateStep callback allocated.

LabVIEW

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

CodeGenerator_PostTranslateStep.vi

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

LabWindows/CVI

LabWindows/CVI Function Prototype

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

Microsoft Visual C++ Function Prototype

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

Parameters

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

See Also

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

Post Actions Panel

PreTranslateStep Callback

Recommended LabWindows/CVI Function Prototypes

Recommended Microsoft Visual C++ Function Prototypes

Step

<Step> Element

TranslatorCodeGenerator

WAS THIS ARTICLE HELPFUL?

Not Helpful