Creating LabVIEW Code Modules for Behavior Elements
- Updated2025-10-28
- 3 minute(s) read
Creating LabVIEW Code Modules for Behavior Elements
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

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

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.
| 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. |