Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

File Name: param_set_module.m

Code Block
 M=param_set_module(NAME, DATATYPE, MODVAR, EXECUTIONORDER)
 Parameter set module.  This module can reach into the instance structure
 of other modules and set parameter values.  Arguments:
    NAME - name of the module.
    DATATYPE - string specifying the data type of the variable and this
               is also used for the data type of the input pin.  Allowable
               values are 'float', 'int', or 'fract32'.
    VARNAME - specifies the module and variable name using the form:
              'MOD.VAR' where MOD is the module name and VAR is the 
              variable name.  You can also specify internal subsystems using
              'SUBSYS.MOD.VAR'.
    EXECUTIONORDER - Determines when the ParamSet module executes relative
              to the module it is controlling.  Allowable values are:
                  'undefined' - the default.  The execution order is set
                                by the routing algorithm and can occur before
                                or after the module it is controlling.
                  'before' - forces ParamSet to execute before the module it
                            is controlling.
                  'after' - forces ParamSet to execute after the module it
                            is controlling.
               When using 'before' and 'after' you could get a build error
               indicating that no more modules can execute or there is a 
               circular dependency.