Example LabVIEW Custom Code Generator VIs

TestStand ATML Toolkit 2017 Help

Edition Date: June 2018

Part Number: 374205B-01

»View Product Info
Download Help (Windows Only)

Use the example VIs located in the <TestStand Public>\Examples\Toolkits\ATMLTDTranslator\Code Generator\LabVIEW directory as a starting point for implementing a VI that calls a specific code generator callback. Refer to the individual callback topics for more information about the example VI for each callback, including the controls and indicators you must connect to the VI connector pane.

Complete the following steps to use the example VIs to generate complete LabVIEW code modules for the translated sequence.

  1. In TestStand, select Tools»Configure ATML TD Translator to launch the ATML Test Description Translator Configuration dialog box.
  2. Click the Code Module Settings tab and enable the LabVIEW option.
  3. Click the Browse button next to the Directory that Contains the Custom Code Generator VIs control and browse to <TestStand Public>\Examples\Toolkits\ATMLTDTranslator\Code Generator\LabVIEW.
  4. Click OK to close the ATML Test Description Translator Configuration dialog box.
  5. Close all open sequence files.
  6. In TestStand, select File»Open File to launch the File Open dialog box.
  7. Browse to <TestStand Public>\Examples\Toolkits\ATMLTDTranslator\Translator\Test Description 1.0\Computer 1.0.xml.
  8. Click Open to translate the TD instance document to a TestStand sequence file and a set of LabVIEW code modules.
  9. Review the translated sequence file and the generated code modules.
    Note Note  If an <Action> element contains a child element of the OperationConnect, OperationRead, or OperationDisconnect type, the custom code generator adds subVI calls to the VI reference the VIFileUpdater.VIReference property returns to implement the operation. The example demonstrates how to insert a new parameter named UUID, which TestStand passes to code modules, and how to change the flags of the step and sequence constructs to non-editable and non-deletable, respectively.
Incremental Update Incremental Update  Complete the steps in the Calling LabVIEW Custom Code Generator VIs during an Incremental Update tutorial for information about using LabVIEW custom code generator VIs when you incrementally update a previously translated sequence file.

See Also

<Action> Element

ATML Test Description Translator Configuration dialog box

Calling LabVIEW Custom Code Generator VIs during an Incremental Update

Code Generator Callbacks

Creating a VI for a LabVIEW Custom Code Generator

Creating LabVIEW Code Modules for <Behavior> Elements

Custom Code Generator API

VIFileUpdater.VIReference

WAS THIS ARTICLE HELPFUL?

Not Helpful