LTSpice Error in Simulating Behavioral Voltages – Troubleshooting Tips
ltspicespice
I've been receiving this error whenever I want to create a voltage source affected by another voltage source:
It says here that V1 is an unknown symbol but clearly I've inserted a voltage source V1 in the schematic.
Best Answer
V1 is a symbol instance. You need to use the voltage of a node in your behavioural expression.
It's not clear without digging around at the schematic what LTSpice will have called the node on the top of your V1 symbol. It's best to label it manually. Use the \$\boxed{\text{A}}\$ tool on the toolbar to add a label to the relevant node.
Your equation should be V=0.0487*V(NodeLabel)+0.838
X. Subcircuit
Syntax: Xxxx n1 n2 n3... <subckt name>
[<parameter>=<expression>]
Subcircuits allow circuitry to be defined and stored in a
library for later retrieval by name. Below is an example of
defining and calling a voltage divider and invoking it in a
circuit.
* calling a subcircuit
*
* This is the circuit
X1 in out 0 divider top=9K bot=1K
V1 in 0 pulse(0 1 0 .5m .5m 0 1m)
* This is the subcircuit
.subckt divider A B C
R1 A B {top}
R2 B C {bot}
.ends divider
.tran 3m
.end
Notice that params: never appears in the LTSpice syntax for a subcircuit call.
I am guessing that including this token in your X card has confused LTSpice about how the subcircuit should be called.
As i was not able to get an answer, i looked for alternatives for a PWM source and found one. IT DOES NOT ANSWER THIS QUESTION but does help if someone wants to include a PWM source in there schematic.
Best Answer
V1 is a symbol instance. You need to use the voltage of a node in your behavioural expression.
It's not clear without digging around at the schematic what LTSpice will have called the node on the top of your V1 symbol. It's best to label it manually. Use the \$\boxed{\text{A}}\$ tool on the toolbar to add a label to the relevant node.
Your equation should be V=0.0487*V(NodeLabel)+0.838