Creating LabVIEW Code Modules for <Behavior> Elements

TestStand ATML Toolkit 2017 Help

Edition Date: June 2018

Part Number: 374205B-01

»View Product Info
Download Help (Windows Only)

The ATML TD translator creates a LabVIEW VI using the path you specified in the LabVIEW VI Path control on the Code Module Settings tab of the ATML Test Description Translator Configuration dialog box and creates block diagram labels that begin with the string <ATMLTranslatorComment> for the <AutomaticGeneration>, <Description>, <Extension>, <IeeeStd1641>, and <Operations> child elements of the <Behavior> element.

Completing the Partial Test Program Completing the Partial Test Program  You must manually implement the logic that the <AutomaticGeneration>, <Description>, <Extension>, <IeeeStd1641>, and <Operations> elements describe. Refer to the post-translation recommended actions section of the log file for more information about the elements you must implement.

If a VI already exists at the path you specified and the VI has a name that matches the value of the name attribute of the parent <Action> element, the translator updates existing block diagram labels in the VI. If the VI does not exist, the translator creates a new VI.

The translator configures the VI as the code module for the step and names the VI using the same name as the name attribute of the parent <Action> element. The translator configures the path of the VI to be relative to the sequence file.

The translator passes parameters as local variables or as a single container to the LabVIEW code module.

Incremental Update Incremental Update  The translator incrementally updates existing block diagram labels that correspond to the <AutomaticGeneration>, <Description>, <Extension>, <IeeeStd1641>, and <Operations> child elements of the <Behavior> element, as the following table describes.
Note Note  If you modified and consequently broke the VI after the original translation but you attempt to incrementally update the VI, the translator returns an error.
Change in Source TD Instance Document Change in VI
You modify the <AutomaticGeneration>, <Description>, <Extension>, or <IeeeStd1641> child element of the <Behavior> element. The translator updates the block diagram label that corresponds to the element you modified to use the new XML from the source TD instance document.
You delete a child element of the <Behavior> element in the source TD instance document and insert a different child element of the <Behavior> element. For example, you delete a <Description> child element and insert an <Operations> child element. The translator deletes the block diagram label that corresponds to the element you deleted and creates a new block diagram label for the element you created.
You add or modify a <Behavior>/<Operations>/<Operation> element. The translator adds or modifies the block diagram label that corresponds to the <Operation> element you added or modified.
You delete any <Behavior>/<Operations>/<Operation> element. The translator deletes the block diagram label that corresponds to the <Operation> element you deleted from the source TD instance document.
Note Note  The translator incrementally updates block diagram labels only when the text of the label begins with the string <ATMLTranslatorComment> and the XML content in the label is valid. If you modify the block diagram label after a previous translation but before you attempt an incremental update and the XML content in the label is invalid, the translator replaces the invalid XML content with the valid XML content from the source TD instance document.

If you disable the Delete Previously Generated Sequence File and Code Module Constructs option on the General Settings tab of the ATML Test Description Translator Configuration dialog box, the translator does not delete block diagram labels, controls, or indicators during an incremental update.

See Also

<Action> Element

ATML Test Description Translator Configuration dialog box

Logging Translation Information

Passing Parameters to LabVIEW Code Modules

WAS THIS ARTICLE HELPFUL?

Not Helpful