<Action> Element

TestStand ATML Toolkit 2017 Help

Edition Date: June 2018

Part Number: 374205B-01

»View Product Info
Download Help (Windows Only)

<LocalSignals> Element

If the step the ATML TD translator creates for an <Action> element calls code modules, the translator translates the <Action>/<LocalSignals>/<LocalSignal> element as comments in the code module.

(LabVIEW)  For a LabVIEW code module, the translator creates a VI for each <Action> element and names the VI using the value of the name attribute of the <Action> element. The translator creates a block diagram label that begins with the string <ATMLTranslatorComment> and that contains the XML content of the <LocalSignal> element.

(LabWindows/CVI)  For a LabWindows/CVI code module, the translator creates a function for each <Action> element, names the function using the name attribute of the <Action> element, and inserts the function in the LabWindows/CVI code module. The translator then creates comments in the function that begin with the string <ATMLTranslatorComment> and that contain the XML content of the <LocalSignal> element and adds the comments to the function.

Completing the Partial Test Program Completing the Partial Test Program  You must manually implement the logic that the <LocalSignals> element describes. Refer to the post-translation recommended actions section of the log file for more information about how you can implement the logic the <LocalSignals> element describes.

If the step the translator creates for the <Action> element does not call a code module, such as a Sequence Call step, the translator stores all child elements of the <LocalSignals> element as attributes of the parent step.

Incremental Update Incremental Update  If the step the translator creates for the <Action> element does not call a code module, the translator updates <LocalSignals> elements under the step attributes of the step that corresponds to the <Action> element.

The following table describes how the translator incrementally updates existing block diagram labels in a LabVIEW VI or comments in the LabWindows/CVI function that correspond to <Parameter> elements. The LabWindows/CVI function the translator updates is the function the translator created in the C source file it created during the original translation.
Change in Source TD Instance Document Change in VI Change in Function
You add or modify a <Source>, <Sensor>, or <Monitor> child element of the <LocalSignal> element. The translator adds or modifies the corresponding block diagram label in the VI. The translator adds or modifies the corresponding comment in the function.
You delete a <Source>, <Sensor>, or <Monitor> child element of the <LocalSignal> element. The translator deletes the corresponding block diagram label from the VI. The translator deletes the corresponding comment from the function.
Note Note  (LabVIEW)  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.

(LabWindows/CVI)  The translator incrementally updates comments only when the text of the comment begins with the string <ATMLTranslatorComment> and the XML in the comment is valid. If you modify the comment 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 or function comments during an incremental update.

See Also

ATML Test Description Translator Configuration dialog box

<Behavior> Element

Creating LabVIEW Code Modules for <Behavior> Elements

Creating LabWindows/CVI Code Modules for <Behavior> Elements

Logging Translation Information

Sequence Call Step

Storing TD Instance Document Attributes in a Translated Sequence

<TestGroupCall> Element

WAS THIS ARTICLE HELPFUL?

Not Helpful