ファンクションブロックの描画
Aug 21 2020
私はこのようなものを再現しようとしています:

ただし、LaTeX n00bとして、テキストを内側に配置し、矢印を下部に配置することに頭を悩ませることはできません。
これは私がどこまで到達したかです:
\begin{tikzpicture}[
start chain=going right,
every join/.style={thick},
node distance=5mm
]
\node [on chain] {Inngang};
\node [on chain,draw,join,xshift=5mm,minimum width=5cm,minimum height=3cm,label=above:Måleomformer] (omformer) {
\tikz\draw (0,0) -- (5cm,3cm);
};
\node [on chain,join,xshift=5mm]{4-20 mA utgang};
\end{tikzpicture}

どんな助けでも大歓迎です!
回答
1 Ignasi Aug 21 2020 at 10:02
このようなものが機能する可能性があります。ボックス内の対角線とテキストが蜂を追加したpath picture
コマンドが、彼らはまた、追加で追加することができdraw
、およびnode
コマンド。代わりにchain
、メインノードとその周りの他のすべてを配置しました。
\documentclass[tikz, border=2mm]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[
node distance=5mm
]
\node [draw, minimum width=5cm, minimum height=3cm,
label=Måleomformer,
path picture={%
\draw (path picture bounding box.south west)--(path picture bounding box.north east);
\path (path picture bounding box.north west)--node[pos=.25] {Trykk} node[pos=.75] {Strom} (path picture bounding box.south east) ;
}] (omformer) {};
\node[left=of omformer] (inngang) {Inngang};
\node[right=of omformer] (out) {4-20 mA utgang};
\node[below right=of omformer.south west, align=center] (zero) {Nedre\\ malegrense\\ (Zero)};
\node[below left=of omformer.south east, align=center] (span) {Ovre\\ malegrense\\ (Span)};
\draw[->] (inngang)--(omformer);
\draw[->] (zero)--(zero|-omformer.south);
\draw[->] (span)--(span|-omformer.south);
\draw[<-] (out)--(omformer);
\end{tikzpicture}
\end{document}
