Материал из Module developer
The Setup file consists of 2 parts. Part 1 is the driver settings. The settings must require IP addresses, ports and logins to connect the driver to a device. Part 2 is the module general settings, such as number of outputs, access keys. To set fields in the Setip file set the following fields in the script:
- Field type - indicate what field must be shown to a user (text field, data array, etc. Detailed description is given in API)
- Field name - name of field that a user sees when setting a module
- Default value - what value must be put by default
- Check function - a function to validate value in the field. A function must be written that checks the correctness of the entered data.
For example,"Setup" script for HDL module looks this way:
