gxStartAction (string document, string action)
Starts an action in a project.
Parameters:
document - document ID of the project.
action - name of the action.
Remarks:
- Usual device actions are
"saRead", "saBlankCheck", "saProgram", "saVerify", "saErase" that work like the corresponding buttons on the device window.
- Some devices have options that affect the behavior of saProgram, f.i. by executing a blank check before or a verify during or after programming. Checkboxes like [Verify After Program] or [Blankcheck Before Program] will then appear in the device window. These checkboxes can also be set or reset by script. For finding out which script functions can control which device options, the predefined script Development / Show Config can be used.
Example:
tGXImportFlags flags;
string sDocumentID = gxImportProject("demo1.gxb", flags);
// sDocumentID contains the name of the new document created.
gxStartAction(sDocumentID,"saProgram");
See also:
gxGetActionList
► latest version online