Материал из Module developer
Перейти к: навигация, поиск

The Setup files consists of 2 parts. The first part is driver settings. These settings request IP addresses, ports and logins to connect a driver to a device. The second part is general driver settings, such as the number of outputs, access keys. To set a field in the Setup, set the following fields in the script:

  • Field type - indicate what field is to be displayed to a user (text field, data array, etc. More in API)
  • Field name - the name of a field that a user sees when setting a module
  • Default value - what value is to be entered by default
  • Check function - a function that verifies the value in the field. A function that checks if the input data are correct has to be written.

These functions are to be used on the module script.

module.GetProperty("Field name")


Besides standard parameters, any parameters required for module initialisation can be requested: