previous next Up Title Contents

Utility_Accumulate:


File name
UtAccumulate.[ch]


Description
This utility accumulates data in the process EarObject `s output signal from its input signal. It adds to previous data if the output signal has already been used. It will continue adding to the previuos data unless the process is resetsee section 0 Accumulating Data with Process Modules.

This utility can also accumulate output from more than one connected process EarObject. This allows the output from more than one processEarObject o be accumulated into a single signal.



Example parameter file format
This utility has no parameters.



Test program directory
Tests/Utilities

Generic Module Routines

This module has no parameters so it does not need to be initialised, nor require any Set... functions.

The Process_Utility_Accumulate(...) Process Routine

Syntax
BOOLN Process_Utility_Accumulate(EarObjectPtr data);


Returns
TRUE if the process is successful, otherwise it returns FALSE.

Example: Tests/Utilities/Accumulate.c

Parameter file: Accumlate.par:
#
# Main Parameter file
#

output.dat	Main output file.

# Module specifications.

#Par. file		Name			Description
#---------		-----			-------------
PTone2.par		PureTone		Stimulus generation paradigm.
PTone3.par		PureTone		Stimulus generation paradigm.

# Miscellaneous parameters

2		Number of input EarObjects for test EarObject
2		No. of accumulation repeats for the combined signal.
Output

Figure [148] Two pure tones added together using the accumulator module.


previous next Up Title Contents