2
\$\begingroup\$

I've been trying to make an LTspice solar panel model based on this video: https://youtu.be/ox0UtYe4owI (2:45). This is the circuit that I got:

enter image description here

When I try to run a simulation I get an error:

"Error on line 2 : i§b1 0 n001 i=v(illu)/(1000*iph) Unknown parameter "i" Fatal Error: Missing current value for "B1" "

If I add curly braces (i={v(illu)/(1000 * iph)}) I get:

" Questionable use of curly braces in "i§b1 0 n001 i={v(illu)/(1000iph)}" Error: undefined symbol in: "v/(1000iph)" Error on line 2 : i§b1 0 n001 i=(v(illu)/(1000*iph)) Unknown parameter "i" Fatal Error: Missing current value for "B1" "

What am I doing wrong?

\$\endgroup\$
4
  • 1
    \$\begingroup\$ It looks like "B1" is set to have a prefix of "I", making it an I source and not a B source. I sources cannot use the "I=whatever" syntax. \$\endgroup\$
    – Hearth
    Commented Oct 11, 2023 at 2:55
  • \$\begingroup\$ so what should I do? \$\endgroup\$ Commented Oct 11, 2023 at 4:10
  • 2
    \$\begingroup\$ Turn B1 into an actual B source by changing its prefix to B. \$\endgroup\$
    – Hearth
    Commented Oct 11, 2023 at 12:19
  • \$\begingroup\$ Or use the correct symbol in the first place which is bi. Looks like you used current instead. \$\endgroup\$
    – Ste Kulov
    Commented Oct 11, 2023 at 14:54

1 Answer 1

1
\$\begingroup\$

You could use a "Voltage dependent current source"
"g" in the component list.

enter image description here

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.