How can I set a voltage source based on a measured voltage?
For example, take 2 simple loops. I'd like to set V3 to 5 times V2 Loop 1: V1(10 volts) to V2(0 volts) to R1(100ohm) to ground. Loop 2: V3(V2 * 5) to R2(100 ohm) to ground.
LTspice is reading "V3 N001 0 V2 5" as "V2" is a node. Since you then have too many nodes LTspice is probably giving you an error message.
I think it's the same in LTspice as in PSpice...
V3 N001 0 {V(N003)*5}
I don't know if...
V3 N001 0 {V2*5}
will work in LTspice or not. PSpice would require a .PARAM statement.
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
"chapmjw" schrieb im Newsbeitrag news: snipped-for-privacy@m58g2000cwm.googlegroups.com...
Hell Jim,
There are voltage controlled voltage and current sources and current controlled voltage and current sources. (VCVS=E, VCCS=G, CCVS=H, CCCS=F)
You can solve your problem with a E-source. It has two inputs for the control voltage and two output nodes. You have to set the gain to 5 in your case. These sources are available for schematic drawings of course.
Syntax: Exxx n+ n- nc+ nc- The final netlist will look like the following. E1 N001 0 N003 N002 5
All this is pure SPICE. I recommend to read about the devices of SPICE or at least the help of LTspice.
I'm not sure what V2 is there for but lose it and label the 10V source to resistor wire as (say) Fred. That fred node can be referred to elsewhere using the very handy "bv" component.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.