Component: Frequency Generator (DSP)
Author | Matrix Ltd |
Version | 1.2 |
Category | DSP |
Contents
Frequency Generator component
A frequency generator component designed to plug into the DSP system component and allow several discreet waveforms to be generated.
Examples
No additional examples
Downloadable macro reference
GenerateTick
Assigns a single value to the specified buffer from the selected waveform data. Each call will read the next value from the waveform and will wrap correctly at the end of the data period.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Generate
Fills the specified buffer with the selected waveform data. If the buffer is smaller or larger then the waveform data period then the data passed will follow on correctly for subsequest cycles.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Buffer Manager
This property is of type Fixed list of ints and can be referenced with the variable name buffer_manager.
Selects the DSP buffer manager component
Output
This property is of type Fixed list of ints and can be referenced with the variable name input_a.
Selects the buffer to assign the waveform data to
Type
This property is of type Fixed list of ints and can be referenced with the variable name wave_type.
Waveform type selection
Amplitude
This property is of type Signed integer and can be referenced with the variable name wave_amplitude.
Waveform amplitude or volume
Offset
This property is of type Signed integer and can be referenced with the variable name wave_offset.
Waveform DC offset
Period
This property is of type Signed integer and can be referenced with the variable name wave_period.
Waveform period, the number of samples in the cyclic wave
Phase
This property is of type Fixed list of ints and can be referenced with the variable name wave_phase.
Waveform phase, the point in the wave to start streaming from
Data
This property is of type Line of text and can be referenced with the variable name wave_data.
The raw waveform data
Sample Rate (hz)
This property is of type Floating point and can be referenced with the variable name sample_rate.
Allows the sample rate to be entered to allow some basic calculations
Period (s)
This property is of type Floating point and can be referenced with the variable name calc_period.
The length of time in seconds that the wave period will cover at the specified sample rate
Frequency (hz)
This property is of type Floating point and can be referenced with the variable name calc_freq.
The repeat frequency of the wave at the specified sample rate