previous next Up Title Contents

Utility_Sample:


File name
UtSample.[ch]


Description
This module samples a signal at selected intervals


Example parameter file format
3e-3	Time offset (s).
1.0e-3	Sampling interval (s).



Test program directory
Tests/Utilities

Generic Module Routines

This module has the standard Generic Module Routines (see 0 Basic Module Routines used in Generic Programming).

The Process_Utility_Sample(...) Process Routine

Syntax
BOOLN Process_Utility_Sample(EarObjectPtr data);


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

The SetTimeOffset_Utility_Sample(...) Routine

Syntax
BOOLN SetMode_Utility_Sample(char *theTimeOffset);


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

The SetSamplingInterval_Utility_Sample(...) Routine

Syntax
BOOLN SetMode_Utility_Sample(char *theSamplingInterval);


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

Example: Tests/Utilities/Sample.c

Parameter file: Sample.par:
#
# Main Parameter file
#

output.dat	Name of output file.

# Module specifications.

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

Sample1.par	Sample utility parameter file.

# Miscellaneous parameters

1		No. of repeated runs.
Output

Figure [160] The output from a pure tone run the "Sample" utility module.


previous next Up Title Contents