Author Topic: LTSpice - varying frequency along time  (Read 4284 times)

0 Members and 1 Guest are viewing this topic.

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
LTSpice - varying frequency along time
« on: February 14, 2015, 07:32:51 pm »
LTSpice simulation.

I could not find a way to implement this:

a) Testing a circuit fed with a fixed amplitude sinusoidal voltage source varying frequency along a certain period. Say, in 2 seconds, between 6KHz to 450 Hz  with 0.5 V amplitude.

b) Later I would like to test the same circuit in the same period at a fixed frequency with a varying amplitude.

c) And last, eventually, mixing both options.

Is such a thing possible? I fear I am out of luck here.

Please note:

I am not trying to do a .tran .ac simulation; my test is in one pass along time and stepping a parameter is not what I need either (well, the way I know to use it, at least...).

Suggestions appreciated.
« Last Edit: February 15, 2015, 07:18:08 pm by atferrari »
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LTSpice - varying frequency along time
« Reply #1 on: February 14, 2015, 07:34:35 pm »
I am not trying to do a .tran simulation; my test is in one pass along time

That's the whole idea of a transient simulation!

AC analysis?

The alternative it to use a behavioral voltage source and put in the equation for the signal you want by hand. I'd go with an AC analysis though.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
Re: LTSpice - varying frequency along time
« Reply #2 on: February 14, 2015, 07:52:05 pm »
I am not trying to do a .tran simulation; my test is in one pass along time

That's the whole idea of a transient simulation!

AC analysis?

The alternative it to use a behavioral voltage source and put in the equation for the signal you want by hand. I'd go with an AC analysis though.

I spent some time reading about the behavioral sources but couldn't come to try anything yet. Any link where to go for read some concrete examples?
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 

Offline MrAl

  • Super Contributor
  • ***
  • Posts: 1590
Re: LTSpice - varying frequency along time
« Reply #3 on: February 14, 2015, 07:53:49 pm »
Hi,

There is a VCO in the software.  Use a ramp voltage to control it, that gives a frequency sweep unless it has sweep built in.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LTSpice - varying frequency along time
« Reply #4 on: February 14, 2015, 07:56:36 pm »
I am not trying to do a .tran simulation; my test is in one pass along time

That's the whole idea of a transient simulation!

AC analysis?

The alternative it to use a behavioral voltage source and put in the equation for the signal you want by hand. I'd go with an AC analysis though.

I spent some time reading about the behavioral sources but couldn't come to try anything yet. Any link where to go for read some concrete examples?

It's just a source that takes an equation directly. Just put in something like V=sin((6.28*time*10k) * time)
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
Re: LTSpice - varying frequency along time
« Reply #5 on: February 14, 2015, 08:32:01 pm »
I am not trying to do a .tran simulation; my test is in one pass along time

That's the whole idea of a transient simulation!

AC analysis?

The alternative it to use a behavioral voltage source and put in the equation for the signal you want by hand. I'd go with an AC analysis though.

I spent some time reading about the behavioral sources but couldn't come to try anything yet. Any link where to go for read some concrete examples?

It's just a source that takes an equation directly. Just put in something like V=sin((6.28*time*10k) * time)

Thanks for that!  :-+
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 

Offline atferrariTopic starter

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
Re: LTSpice - varying frequency along time
« Reply #6 on: February 15, 2015, 07:20:03 pm »
I am not trying to do a .tran simulation; my test is in one pass along time

That's the whole idea of a transient simulation!

AC analysis?

The alternative it to use a behavioral voltage source and put in the equation for the signal you want by hand. I'd go with an AC analysis though.

Sorry. You were RIGHT. What I did not want was exactly that: .ac analysis. My bad. :palm:
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf