Seite 1 von 2

Grafik

Verfasst: Di 8. Jan 2019, 13:30
von Magic.Wolf
Ist es diese Grafik in TikZ einzureichen. Und weiss jemand ob es ein Problem ist wenn ich in die Bachelor Arbeit das Bild rein tun würde mit veränderten Daten

Verfasst: Di 8. Jan 2019, 13:33
von Rolli
Wieso sollte das ein Problem sein? Zeichne es, und mache eine Zitation "Eigene Darstellung, nach ...".

Gruß vom Rolli

Verfasst: Di 8. Jan 2019, 13:51
von Magic.Wolf
OKEY danke . 1 Problem gelöst :lol:

Verfasst: Di 8. Jan 2019, 13:56
von Rolli
Was ist denn Dein 2. Problem? Hast Du noch nie mit TikZ gearbeitet und weißt nicht genau, wie man das macht? Oder ... ?

Gruß vom Rolli

Verfasst: Di 8. Jan 2019, 14:04
von Magic.Wolf
ja genau also ich bin allgemein ein Anfänger in Latex. Ich setze mich seit 1 Monat damit auseinander. Ich habe Null Ahnung wie ich das ein programmieren muss . Ich habe nur das hinbekommen und das mit Glück.
\begin{figure}[hpt!]
\centering
\tikzstyle{block} = [draw, fill=gray!3, rectangle, minimum height=3em, minimum width=6em]
\tikzstyle{sum} = [draw, fill=gray!3, circle, node distance=2cm]
\tikzstyle{input} = [coordinate]
\tikzstyle{output} = [coordinate]
\tikzstyle{pinstyle} = [pin edge={to-,thin,black}]
\begin{tikzpicture}[auto, node distance=3cm,>=latex']
\node [input, name=input] {};
\node [sum, right of=input] (sum) {};
\node [block, right of=sum] (controller) {Regler};
\node [block, right of=controller, node distance=3.5cm] (motor) {Stellgleid};
\node [block, right of=motor, pin={[pinstyle]above:Störgröße},
node distance=3.5cm] (system) {Regelgröße};

\draw [->] (controller) -- node[name=u] {$u(t)$} (motor);
\node [output, right of=system] (output) {};
\node [block, below of=motor] (msystem) {Messglied};

\draw [draw,->] (input) -- node {$w(t)$} (sum);
\draw [->] (sum) -- node {$e(t)$} (controller);
\draw [->] (motor) -- node {$u(t)$} (system);
\draw [->] (system) -- node [name=y] {$y(t)$}(output);
\draw [->] (y) |- (msystem);
\draw [->] (msystem) -| node[pos=0.99] {$-$}  node [near end] {$y(t)_\text{Rück}$} (sum);	
\end{tikzpicture}

Verfasst: Di 8. Jan 2019, 14:14
von Rolli
Wir haben Dir doch schon mehrfach gesagt, bitte lauffähige Minimalbeispiel zu erstellen.

Weißt Du: Die Bereitschaft zur Hilfe sinkt um so mehr, je mehr ein Helfer rum pfriemeln muss.

Das Mindeste, was sein muss: Es muss laufen, wenn man auf "Öffne im Overleaf" klickt.

Das habe ich Dir schon einmal vor ein paar Tagen gesagt.
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{figure}[hpt!]
\centering
\tikzstyle{block} = [draw, fill=gray!3, rectangle, minimum height=3em, minimum width=6em]
\tikzstyle{sum} = [draw, fill=gray!3, circle, node distance=2cm]
\tikzstyle{input} = [coordinate]
\tikzstyle{output} = [coordinate]
\tikzstyle{pinstyle} = [pin edge={to-,thin,black}]
\begin{tikzpicture}[auto, node distance=3cm,>=latex']
\node [input, name=input] {};
\node [sum, right of=input] (sum) {};
\node [block, right of=sum] (controller) {Regler};
\node [block, right of=controller, node distance=3.5cm] (motor) {Stellgleid};
\node [block, right of=motor, pin={[pinstyle]above:Störgröße},
node distance=3.5cm] (system) {Regelgröße};

\draw [->] (controller) -- node[name=u] {$u(t)$} (motor);
\node [output, right of=system] (output) {};
\node [block, below of=motor] (msystem) {Messglied};

\draw [draw,->] (input) -- node {$w(t)$} (sum);
\draw [->] (sum) -- node {$e(t)$} (controller);
\draw [->] (motor) -- node {$u(t)$} (system);
\draw [->] (system) -- node [name=y] {$y(t)$}(output);
\draw [->] (y) |- (msystem);
\draw [->] (msystem) -| node[pos=0.99] {$-$}  node [near end] {$y(t)_\text{Rück}$} (sum);   
\end{tikzpicture}
\end{figure}
\end{document}
So richtig minimal ist das nicht. Aber jetzt läuft es wenigstens.

Wo genau kommst Du nicht weiter?

Gruß vom Rolli

Verfasst: Di 8. Jan 2019, 15:12
von Magic.Wolf
Danke jetzt habe ich auch verstand was du meintest.
Also was ich gepostet habe ist auch richtig. Wollte es nur posten .
Mein Problem ist das Foto was ich veröffentlicht habe zu programmieren.

Verfasst: Di 8. Jan 2019, 15:14
von Rolli
Das sieht aber ganz anders aus als das, was Dein LaTeX-Lauf produziert!
Bitte sage präzise, was Du haben willst - dann mache ich Dir ein ganz einfaches No-Frills-TikZ-Bild.

Gruß vom Rolli

Verfasst: Di 8. Jan 2019, 15:17
von Magic.Wolf
Okey ich brauche genau die Abbildung des Fotos. Ein block mit einem Batterie Symbol ,Pfeil nach rechts auf dem Pfeil soll P(t)_el stehen. Danach noch ein block mit der Bezeichnung Inverter und so weiter.

Verfasst: Di 8. Jan 2019, 15:39
von markusv
Vielleicht als Anschub und daher nicht vollständig:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{circuitikz}
\tikzstyle{block} = [thick,draw,rectangle,minimum width=1.4cm, minimum height=1.4cm]
\usepackage{siunitx}
\begin{document}
\begin{figure}%[hpt!]
\centering
\begin{tikzpicture}[>=latex,node distance=2.8cm,font=\footnotesize]
  \node[block,label={$\eta_\text{Bat}=\SI{97}\percent$}](A) at (0,0) {};
  \node[block, right of=A,label={$\eta_\text{inv}=\SI{95}\percent$}](B) {};
  \node[block, right of=B,label={$\eta_\text{PSM}=\SI{88}\percent$}](C) {\normalsize\sffamily M};
  \node[block, right of=C,label={$\eta_\text{mech}=\SI{95}\percent$}](D) {};
  \node[block, right of=D](E) {};
  \draw[thick] (B.north east) -- (B.south west);
  \draw (C) circle (.6);
  \draw (-.5,0) to [battery] (0.5,0);
  \draw[->] (A.east) -- (B.west) node[midway,above] {$P(t)_\text{el}$};
  \draw[->] (B.east) -- (C.west);
  \draw[->] (C.east) -- (D.west);
  \draw[->] (D.east) -- (E.west);
\end{tikzpicture}
\end{figure}
\end{document}
circuitikz könnte hierbei auch noch mehr behilflich sein, als nur für die Bereitstellung des Batterie-Symbols.