Document toolboxDocument toolbox

(8.D.2.3) SinkFract32

Overview

Copies the data at the input pin and stores it in an internal buffer.

Discussion

This module copies the data at the input pin to an internal buffer (value). The copy operation occurs at each block process and thus the data continuously updates. This module is used to store the value of a wire and make it available to the control code, or a host processor. The inspector window shows the data using a plot. In the inspector window, there are two edit boxes for maximum(Ymax) and minimum(Ymin) limits for plotting amplitude. If user gives Ymax less than Ymin then the range [Ymax Ymin] will be automatically set by MATLAB

Type Definition

typedef struct _ModuleSinkFract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 enable; // To Enable or disable the plotting fract32* value; // Captured values FLOAT32* yRange; // Yaxis Range } ModuleSinkFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

enable

int

parameter

0

0

Unrestricted

 

value

fract32*

state

0

[32 x 1]

Unrestricted

 

yRange

float*

parameter

0

[1 x 2]

Unrestricted

 

Pins

Input Pins

Name: in

Description: audio input

Data type: fract32

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real and Complex

MATLAB Usage

File Name: sink_fract32_module.m

M=sink_fract32_module(NAME) Creates a sink (capture) module for use with the Audio Weaver environment. The module captures a block of fract32 input data and stores it into an internal buffer. Arguments: NAME - name of the module.

Â