|Download Help (Windows Only)|
You can create a VI to implement a custom code generator callback for a LabVIEW code module. The translator validates the order and types of controls and indicators connected to the connector pane. You can store all the callback VIs in a single directory that the translator references when creating the code modules. You can implement one or more callbacks in a custom code generator.
Enable the LabVIEW option on the Code Module Settings tab of the ATML Test Description Translator Configuration dialog box and use the Directory Containing Custom Code Generator VIs control to specify the directory that contains the callback VIs.
The ATML Toolkit includes an example that demonstrates how the translator uses custom code generator VIs to create complete LabVIEW code modules. The translator calls custom code generator VIs during translation or during an incremental update.
Use the example VIs, located in the <TestStand Public>\Examples\Toolkits\ATMLTDTranslator\Code Generator\LabVIEW directory, as a starting point for implementing a VI that calls a specific code generator callback. In addition, you can complete the LabVIEW custom code generator tutorial to create a LabVIEW code generator VI.
|Note When you create a VI to implement a custom code generator callback, the VI must use the same filename as the example VI that implements the same callback. For example, if you create a VI to implement the PreTranslateAction callback, the VI filename must be CodeGenerator_PreTranslateAction.vi. If you use an example VI as a starting point to implement a callback, National Instruments recommends that you copy the example VI to another location and modify the copy so that you do not modify the example the ATML Toolkit installs.|