Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

EMB Cosine Generator (DSP Module)

LabVIEW DSP Module 2.5 Help
August 2007

NI Part Number:
371300C-01

»View Product Info

Generates a cosine waveform.

This VI is reentrant, so you can use EMB Cosine Generator to generate a continuous cosine waveform. This VI remembers the phase of the current waveform and uses this data to continuously generate subsequent waveforms.

Details  

offset is the DC offset of the signal. The default is 0.0.
amplitude is the amplitude of the cosine waveform you want to generate. The default is 1.
frequency is the frequency of the cosine waveform you want to generate in hertz. The default is 62.5.
phase specifies the initial phase in radians. The default is 0.
#s is the number of samples in the waveform. The default is 128.
Fs is the sampling rate in samples per second.
signal out is the generated waveform.

EMB Cosine Generator Details

If the sequence Y represents the cosine waveform, this VI generates the pattern according to the following equation.

y[i] = amp x cos(phase[i]), for i=0, 1, 2,…, n–1

where

amp is amplitude

n is #s

phase[i] is frequency × 360.0 × i/Fs


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit