(8.D.2.2 ) SystemVariable
Overview
System Variable
Discussion
This module implements the system variable query.
Layout Sample Rate - Sample rate of HW input pin in Hz.
Profile Clock Speed - Profile clock speed in Hz.
Fundamental Block Size - HW input pin block size in samples.
Core Clock Speed - Core clock speed in Hz.
Average Time - Average time in seconds.
Peak Time - Peak time in seconds.
Num Pumps - Number of audio pumps.
Cycle Time - Cycle time in seconds.
Elapsed Time - Elapsed time in seconds.
Percent CPU - CPU percent load.
Inst Cycle Time - Instantaneous cycle time.
Type Definition
typedef struct _ModuleSystemVariable
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
INT32 variableIndex; // Variable Index
INT32 prevTime; // Previous cycle time
} ModuleSystemVariableClass;
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
variableIndex | int | parameter | 0 | 1 | Unrestricted | Â |
prevTime | int | const | 0 | 0 | Unrestricted | Â |
Pins
Input Pins
Name: variable
Description: System Variable
Data type: {float, int, fract32}
MATLAB Usage
File Name: system_variable_module.m
M = system_variable_module(NAME)
Audio Weaver system variable module. Arguments:
NAME - name of the module.
SAMPLERATE - sample rate to output value with
Copyright (c) 2020 DSP Concepts, Inc. All Rights Reserved.
Â