<TestLimits> Element

TestStand ATML Toolkit 2017 Help

Edition Date: June 2018

Part Number: 374205B-01

»View Product Info
Download Help (Windows Only)

For all cases in which the ATML TD translator creates a Numeric Limit Test step, Multiple Numeric Limit Test step, and String Value Test step, the translator translates the <TestResult>/<TestLimits> element as the limits for the step.

For all cases in which the translator creates a Pass/Fail Test step, the translator copies the XML content of the <TestLimits> element as a comment in the code module that implements the parent <Action> element.

(LabVIEW)  For a LabVIEW code module, the translator creates in the VI created for the parent <Action> element block diagram labels that begin with the string <ATMLTranslatorComment> and that contain the XML content of the <TestLimits> 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 <TestLimits> element and adds the comments to the function.

Incremental Update Incremental Update  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 <TestLimits> 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. The translator incrementally updates <TestLimits> elements only when the translator translates the parent <Action> element as a Pass/Fail Test step.
Note Note  (LabVIEW)  If a Pass/Fail Test step the translator previously created for the parent <Action> element changes to a different step type, the translator deletes the PASS/FAIL Flag parameter from the LabVIEW code module and deletes the block diagram labels it previously created for the <TestLimits> element. For any step type other than a Pass/Fail Test step that changes to a Pass/Fail Test step, the translator adds the PASS/FAIL Flag parameter to the LabVIEW code module.
Note Note  (LabWindows/CVI)  If a Pass/Fail Test step the translator previously created for the parent <Action> element changes to a different step type, the translator deletes the PassFailResult parameter from the LabWindows/CVI code module and deletes the comments it previously created for the <TestLimits> element. For any step type other than a Pass/Fail Test step that changes to a Pass/Fail Test step, the translator adds the PassFailResult parameter to the LabWindows/CVI code module.
Change in Source TD Instance Document Change in VI Change in Function
You add or modify a <TestLimits> 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 <TestResult> parent element or all the <TestLimits> child elements of the <TestResult> element. The translator deletes the corresponding block diagram label from the VI. The translator deletes the corresponding comment from the function.
Completing the Partial Test Program Completing the Partial Test Program  You must implement in the code module the limit comparison that the <TestLimits>/<Limit> element describes and return the comparison results to TestStand. Refer to the post-translation recommended actions section of the log file for more information about how you can implement the logic the <Limit> element describes.

See Also

<Action> Element

ATML Test Description Translator Configuration dialog box

<Behavior> Element

Creating LabVIEW Code Modules for <Behavior> Elements

Creating LabWindows/CVI Code Modules for <Behavior> Elements

Determining Test Steps to Create for <Limit> Elements

Logging Translation Information

Pass/Fail Test Step

WAS THIS ARTICLE HELPFUL?

Not Helpful