Electronics > PCB/EDA/CAD

LTspice syntax problem

(1/2) > >>

How do i make the time of a "Pulse" source equal to the voltage of a node in LTspice?
The attached LTspice wont work. Do you know how to solve?

As we already explained in an earlier thread, you can't have *parameters* in a simulation that are time-dependent, even less so depending on a node voltage or on a current. Parameters can only be constants for the whole simulation; the simulator can step parameters over some range though - in this case, it will just launch as many simulations as there are steps, every time with a new constant value for said parameters. Not at all what you want here.

Also as we explained earlier, you can use an arbitrary voltage source for this. A sin function combined with some thresholding function could get you a voltage-dependent pulse width generator.

Alternatively, you can look at one of the "modulate" models in the "Special Functions".

Yep. It was https://www.eevblog.com/forum/eda/ltspice-if-statement-syntax/ three weeks ago . . . |O

I wonder if our O.P. also struggles with object permanence?

Oh well, last time I did this with a comparator. Now lets try a behavioural voltage source.

Drat. That's already been done before. I should have read the other thread properly.

Oh well, for fun, here's another way.


[0] Message Index

[#] Next page

There was an error while thanking
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod