Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Outputs a constant DC value with optional input control pin to scale DC value.

Discussion

The DC Source module has an internal variable holding one data value. The module continuously fills the output wire with the internal data value. This module also has optional input control pin to scale the internal data value. The output blockSize and sample rate can be specified. If not specified, the values are taken from the system input.

Type Definition

Code Block
typedef struct _ModuleDCSourceV2
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    FLOAT32 value;                                // Data Value
} ModuleDCSourceV2Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

value

float

parameter

0

1

-20:20

Pins

Output Pins

Name: control

Description: Input control signal

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: output data

Data type: float

MATLAB Usage

File Name: dc_source_v2_module.m

...