UpdateActionParameters Callback
- Updated2023-02-21
- 2 minute(s) read
The ATML TD translator calls the UpdateActionParameters callback after translating <Parameters>, <TestResults>, or <SessionData> child elements of each <Action> or <Test> element.
Typical Use
Use the UpdateActionParameters callback to add, delete, modify, or reorder parameters passed from TestStand to the code modules. Only this callback can add, delete, modify, or reorder parameters.
LabVIEW
The following figure shows the controls and indicators connected to the VI connector pane.
- TranslatorCodeGenerator—Automation Refnum control that uses the TranslatorCodeGenerator interface.
- CodeGenerator—Automation Refnum control that uses the LVCodeGenerator interface.
- DOMNode—Automation Refnum control that uses the MSXML DOM Node of the <Action> element.
- ParameterCollection—Automation Refnum control that uses the ParameterInfoCollection interface.
- Error Out—The error out cluster, which contains the error status, code, and source information.
LabWindows/CVI
LabWindows/CVI Function Prototype
HRESULT __stdcall CodeGenerator_UpdateActionParameters(
IDispatch * translatorCodeGen,
IDispatch * cviCodeGen,
IDispatch * domNode,
IDispatch * paramInfoCollection,
long* errorCode,
BSTR* errorDescription )
Microsoft Visual C++ Function Prototype
extern "C" HRESULT __stdcall CodeGenerator_UpdateActionParameters(
TranslatorCodeGenerator* translatorCodeGen,
CVICodeGenerator* cviCodeGen,
MSXML2::IXMLDOMNode* domNode,
ParameterInfoCollection* paramInfoCollection,
long* errorCode,
BSTR* errorDescription )
Parameters
- translatorCodeGen—Instance that implements TranslatorCodeGenerator interface.
- cviCodeGen—Instance that implements CVICodeGenerator interface.
- domNode—MSXML DOM Node of the <Action> element.
- paramInfoCollection—Instance that implements ParameterInfoCollection interface.
- errorCode—Error code to log in the log file.
- errorDescription—Error description of the error code.
See Also
Creating a DLL for a LabWindows/CVI Custom Code Generator
Creating a VI for a LabVIEW Custom Code Generator
Example LabVIEW Custom Code Generator VIs
Recommended LabWindows/CVI Function Prototypes
Recommended Microsoft Visual C++ Function Prototypes