Programming your own modules, Using the script module, Chapter 6 programming your own modules – Measurement Computing DASYLab User Manual User Manual
Page 55: Using the script module -1

© National Instruments Ireland Resources Limited
|
6-1
6
Programming Your Own
Modules
In DASYLab, modules are function units. The module is the container in
which the functions are embedded. The worksheet combines several modules
in order to acquire, scale, analyze, and display data. You configure the
modules to tailor the functions to your application.
The script module enables you to program functions yourself. To do so, the
script module offers the container, which has no functions. You create the
functions with a script which can run in this container. For example, you can
create module inputs and module outputs for measurement hardware not
supported by default. You can program mathematical functions for a
processing module in order to analyze data. However, you cannot create
visualization modules as a script module.
Using the Script Module
The script module is in the Special modules group in the
browser. If you select the module in the browser and drag it into
the worksheet, the dialog box Predefined Settings opens. The
predefined settings specify the number of inputs and outputs and their
connections. This specifies the tasks for which you want to use the module.
Modules that read data from a file and pass this data on to the worksheet, only
need outputs. Modules that receive data from the worksheet and write this
data into a file, only need inputs. Modules that process data need inputs and
outputs.
After you have specified the predefined settings, DASYLab creates a script
module. DASYLab saves the predefined settings as binary data in the
module, which means you cannot view or change the predefined settings. At
the same time the script which you want to create must be based on these