Circuitikz 中的 2+ 个运算放大器

Circuitikz 中的 2+ 个运算放大器

以下代码生成附图。应进行哪些调整才能使电阻器 R3 直接连接到 op2。-?我知道代码中有什么问题,但不知道如何修复它

\begin{circuitikz}
\draw
(0,0) node[op amp] (op1) {}
(op1.-) to[short,*-*] ++(-0.8,0)
to [R,l=$R_1$,*-*] (-3.8,0.5) node(ex){}
(op1.-)++(-0.8,0) to[short] ++(0,1.5) coordinate(rightC1)
to [C,l=$C_1$] ( rightC1 -| ex)
to [short] (ex)
to [short,*-o] ++ (-0.5,0)
(op1.-) to[short,*-] ++(0,1.5) coordinate (leftC)
to[C,l=$C_2$] (leftC -| op1.out)
to[short,-*] (op1.out)
to [short,-o] ++(0.5,0) coordinate(end)
(op1.+) to ++(0,-1) node[cground]{}
(op1.-) to[short,*-] ++(0,3) coordinate (leftR)
to[R,l=$R_2$] (leftR -| op1.out)
to[short,-*] (op.out)
(end) to[R,l=$R_3$,o-*] ++ (3,0)%-----------------------------error here
node[op amp] (op2){}%-----------------------------------------error here
(op2.-) to [short,-*] ++(0,1.5) coordinate (leftC2)
to [R,l=$R_4$] (leftC2 -| op2.out)
to [short,-*] (op2.out)
to [short,-o] ++ (0.5,0)
(op2.+) to ++(0,-1) node[cground]{};
\end{circuitikz}

在此处输入图片描述

答案1

根据评论者的建议,我“打破”了这两条路径,最终得到了我想要的。以下是代码,以防有人正在寻找类似的东西。

\begin{circuitikz}
\draw
(0,0) node[op amp] (op1) {}
(op1.-) to[short,*-*] ++(-0.8,0)
to [R,l=$R_1$,*-*] (-3.8,0.5) node(ex){}
(op1.-)++(-0.8,0) to[short] ++(0,1.5) coordinate(rightC1)
to [C,l=$C_1$] ( rightC1 -| ex)
to [short] (ex)
to [short,*-o] ++ (-0.5,0) coordinate(ex1)
(op1.-) to[short,*-] ++(0,1.5) coordinate (leftC)
to[C,l=$C_2$] (leftC -| op1.out)
to[short,-*] (op1.out)
to [short,-o] ++(0.5,0) coordinate(end)
(op1.+) to ++(0,-1) node[cground]{}
(op1.-) to[short,*-] ++(0,3) coordinate (leftR)
to[R,l=$R_2$] (leftR -| op1.out)
to[short,-*] (op.out);
\draw %----------------------------------------------Change
(end)++(3.5,-0.5)node[op amp] (op2){}
(end) to[R,l=$R_3$,o-*] (op2.-)
(op2.-) to [short,-*] ++(0,1.5) coordinate (leftC2)
to [R,l=$R_4$] (leftC2 -| op2.out)
to [short,-*] (op2.out)
to [short,-o] ++ (0.5,0) coordinate(end2)
(op2.+) to ++(0,-0.5) node[cground]{}
(end)++(0,-2) to[open, v=$e$] ++(0,2)
(end2)++(0,-2)to[open, v=$e_o$] ++(0,2)
(ex1)++(0,-2.5) to[open,v^>=$e_i$]++(0,2.5);
\end{circuitikz}

不要介意 R4 之前的点。

相关内容