From: Rene on
I have been trying to use the discrete sine wave generator in SIMULINK. It asks you to specify a frequency, but no matter what you put in this block it still outputs only what amounts to the baseband representation of the sine wave at the phase offset you specify. Is there something wrong with this block or am I misinterpreting the output? For example, if I specify a frequency of 500 Hz, a phase offset of 0 radians, and a sample rate of 2000 Hz, all I get out is a sequence of 1's at every sample time.
From: Wayne King on
"Rene " <rja5(a)psu.edu> wrote in message <hvqj9d$coh$1(a)fred.mathworks.com>...
> I have been trying to use the discrete sine wave generator in SIMULINK. It asks you to specify a frequency, but no matter what you put in this block it still outputs only what amounts to the baseband representation of the sine wave at the phase offset you specify. Is there something wrong with this block or am I misinterpreting the output? For example, if I specify a frequency of 500 Hz, a phase offset of 0 radians, and a sample rate of 2000 Hz, all I get out is a sequence of 1's at every sample time.

Rene, are you using the block in sample-based mode, or time-based mode? The fact that you said you specified the frequency sounds like it's in time-based mode, but then you say you are using a discrete block, which sounds like sample-based.

Wayne