我想要在电路中添加的元素是这个函数发生器:
以下是我迄今为止所做的代码:
\begin{circuitikz}
\draw
(0,0) node[op amp](opamp){}
(opamp.up) --++(0,0.5) node[vcc]{12\,\textnormal{V}}
(opamp.down) --++(0,-0.5) node[vee]{-12\,\textnormal{V}}
(opamp.-) to [R, l_= 1 k$\Omega$] ($(opamp.-)+(-3,0)$)
(opamp.-) to [short] ($(opamp.-)+(0,3)$)
($(opamp.-)+(0,3)$) to [R, l = $R_F$] ($(opamp.-)+(3,3)$)
($(opamp.-)+(3,3)$) to [short] ($(opamp.out)+(0.64,0)$)
(opamp.out) to [short,-o] ($(opamp.out)+(2,0)$)
;
\end{circuitikz}
这是完整的电路(仅供参考)。
答案1
我知道这可能不是您想要的答案,但鉴于这是一个示意图,我会选择这个:
\documentclass[border=10pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\usetikzlibrary{fit}
\begin{document}
\begin{circuitikz}
\coordinate (start) at (0,0);
\draw (start) -- ++(0,-0.5)
node[rotary switch <-=3 in 90 wiper -90, anchor=in, rotate=-90](SW){};
\draw (SW.aout 3) -- ++(-1,0) to[sqV, name=sq-gen]
++(0,-3) coordinate(gGND);
\draw (SW.aout 2) to[sV, -*] (SW.aout 2 |- gGND)
-- ++(0,-0.5) node[tlground]{};
\draw (SW.aout 1) -- ++(1,0) coordinate(tmp) to[tV, name=t-gen]
(tmp |- gGND) -- (gGND);
\node[draw, dashed, fit=(SW) (gGND) (sq-gen) (t-gen), inner sep=0.3cm]
(signal generator){};
\node[right] at (signal generator.east) {\texttt{XFR1}};
\node [ocirc] at (signal generator.north){};
\node [ocirc] at (signal generator.south){};
\end{circuitikz}
\end{document}
...您可以通过更改(start)
坐标将其移动到任何地方。它不像您的想法那么奇特,但它在电气上是正确的。