<Action> Element

TestStand ATML Toolkit 2017 Help

Edition Date: June 2018

Part Number: 374205B-01

»View Product Info
Download Help (Windows Only)

<SessionData> Element

The ATML TD translator translates each <Action>/<SessionData>/<SessionDatum> element as an output parameter for a LabVIEW VI or as an input/output parameter for a LabWindows/CVI function. A local variable under the AdditionalResultVars container is created for the SessionDatum element. The name of this local variable is assembled as: [TestName]_SessionDatum_[SessionDatumName]. For example, a <SessionDatum> element with a name sd1 under <Action name="Test1"> will create a local variable in TestStand with the name Test1_SessionDatum_sd1.

(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 an indicator in the VI for each <SessionDatum> element.

(LabWindows/CVI)  For a LabWindows/CVI code module, the translator creates a function for each <Action> element, names the function using the value of the name attribute of the <Action> element, and inserts the function in the LabWindows/CVI code module. The translator then creates an [In/Out] parameter for each <SessionDatum> element.

Note Note  A <SessionDatum> element contains a <ValueDescription>/<DatumDescription> child element. The xsi:type attribute of the <DatumDescription> element contains a value that is a description type of a data type that the <DatumDescription> element describes.
Note Note  The translator stores <Resolution>, <ErrorLimits>, <Confidence>, and <Range> elements defined for <SessionDatum> elements as attributes of the local variable.
Incremental Update Incremental Update  If you modify the value of a <SessionDatum> element in the source TD instance document, the translator updates the local variable in the sequence file with the updated value.

The following table describes how the translator incrementally updates existing indicators in a LabVIEW VI or parameters in the LabWindows/CVI function that correspond to <SessionDatum> 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 modify a value or type of any <SessionDatum> element. The translator updates the corresponding indicator in the VI. The translator updates the corresponding [In/Out] parameter in the function.
You insert any <SessionDatum> element. The translator creates an indicator in the VI. The translator creates an [In/Out] parameter in the function.
You delete any <SessionDatum> element. The translator deletes the corresponding indicator from the VI. The translator deletes the corresponding [In/Out] parameter from the function.

See Also

ATML Test Description Translator Configuration dialog box

Creating LabVIEW Code Modules for <Behavior> Elements

Creating LabWindows/CVI Code Modules for <Behavior> Elements

<Datum> Element

<DatumDescription> Element

WAS THIS ARTICLE HELPFUL?

Not Helpful