The sine function in LTspice

Status
Not open for further replies.

Heidi

Member
Hi,

Has anybody ever used the sine/cosine function in LTspice? I tried to plot a sine function with a certain frequency, but it didn't seem to show the right curve. For example,

the green wave is the correct sine wave of frequency 1Hz without phrase angle, the blue one is the result of ploting sin(2*pi*time). Do you know what is wrong? Thank you.
 
hi,
You must include the 'radian' value in your equation. sin(2*pi*57.29*time)

[360degree/2*pi]= ~ 57.29
E
 
This is where you use a Behavioral Voltage source in place of a normal Voltage source.

a is 2Vpp @ 3Hz generated by a Voltage source
b is 1.95Vpp @ 3Hz generated by a Behavioral Voltage source
c is a offset by 90degrees (i.e. Cos)
d is a decaying version of a

 
Ha, I got it. I didn't think of that they use degree per second in LTspice. Most of the time I use Pspice where radian per second is used.

Thanks a lot!
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…