Scripting
Setup Tool allows you to customize a script for outputting results. Use Scripting to output a wide variety of information. For more details on customizing and making your own scripts, see DataMan Communications and Programming Guide. For verification results, Setup Tool provides two scripting templates listing the most common output formats for verification results in a CSV or an HTML report.
To enable scripting using the scripting templates:
-
Select the Format Data application step and the radio button to enable Script-Based Formatting on the Basic tab.
-
Select the Scripting tab on the ribbon menu.
- In the Scripting pane on the ribbon, click Open Script.
-
Navigate to the location of the Scripting templates: C:\Program Files (x86)\Cognex\DataMan\DataMan Software vx.x.x\Scripts. One scripting template generates results to a .CSV file and the other generates results to an .HTML file.
- To save the output to a file, click the Results History window on the right.
-
In the Logging option, check the box to Log all result codes to file system and select the option for Logging and reporting settings….
- In the Logging and reporting settings menu, enter a file Path and File Name under the Result Code section. After providing a File Name, you must include either .CSV or .HTML depending on which template is selected.
- Select OK to save and exit.
You can customize the scripts to show more or less detail. For the full list of scripting options, see the DataMan Communications and Programming Guide.