Re: creating a sinewave on simulink(help needed)




"David " <dave@xxxxxxxxxxxxxx> wrote in message
news:gcfbpe$eun$1@xxxxxxxxxxxxxxxxxxxxx
"Mithilesh Pandya" <mithilesh_pn@xxxxxxxxx> wrote in message
<gcegsp$2er$1@xxxxxxxxxxxxxxxxxx>...
Hello

I have to create a sine wave from simulink with a max value of 3 and a
minimum value of -1. i tried to do this in simulink,but i kept getting
the sinewave being centered at 0 with 2 volts above it and 2 volts below
it. thus i was getting a max value of 2 volts and a min value of -2
volts.
i know the peak to peak amplitude of my graph should be 4 volts so i set
my amplitude to 0.5*(4),frequency to (2*pi*2) and sample time to 1/1000.
the phase and the bias is 0.

i get a sinewave but not with the max and min values i want.

How can i create a sinewave with a max value of 3 and a min value of -1?


add it to a constant 1 value maybe?


or even better, set the bias to 1. Have a look at the sine wave
documentation for more details on the different parameters:
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/sinewave.html

Arnaud


.



Relevant Pages

  • Re: creating a sinewave on simulink(help needed)
    ... thus i was getting a max value of 2 volts and a min value of -2 ... How can i create a sinewave with a max value of 3 and a min value of -1? ... set the bias to 1. ... Have a look at the sine wave ...
    (comp.soft-sys.matlab)
  • Re: sendmail and DNS problem.
    ... for www.praybourne.co.uk points to this server. ... Well, praybourne.local will obviously not exist in the "real" DNS, so ... that the message passes through sendmail twice, ... what happens in the second round. ...
    (comp.mail.sendmail)
  • Re: What/who defines "unfit for purpose"?
    ... Although you are correct in that the RMS is indeed a type of average, ... the average voltage of the sine wave that comes from ... average voltage of the mains refered to above is 216.2 volts. ...
    (uk.legal)
  • Re: how does voltage from a wall plug vary with time
    ... > where does the neutral wave come from and why is it there, ... the wall sockets have a 120 volt sine wave on the narrow ... The pole transformer produces 240 volts across its secondary winding, ...
    (sci.physics)
  • Re: No Exit & Sartre
    ... >>>And then there's how you get a sine wave out of an analog computer. ... If the gain was constant, over the range of values of the ... exactly a perfect sinewave, ... I still have an oscillator I built as part of an electronics ...
    (rec.arts.sf.composition)