# Ammeter and Voltmeter for the circuit TikZ library

How can I make the Voltmeter and Ammeter symbols look like in the follwing picture using the circuits.ee.IEC library?

I just managed to do this:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{circuits}
\usetikzlibrary{circuits.ee.IEC}

\tikzset{circuit declare symbol = ammeter}
\tikzset{set ammeter graphic ={draw,generic circle IEC, minimum size=5mm}}

\begin{document}

\begin{tikzpicture}[circuit ee IEC]
\draw (0,0) to[ammeter] (2,0);
\end{tikzpicture}

\end{document}


-

You can simply use the generic circle IEC shape. So you would put \node (name) [generic circle IEC, draw] at (location) {A} for the Ammeter. Just replace the A with a V for the voltmeter. If this is not exactly what you mean or you need additional information on how to apply it to your specific case, you should provide a minimal working example showing the diagram you have so far without the meters.

Edit: In response to your edit, you can simply use the info option to get a label and use center as the angle to position this label in the center of the shape. Your example then becomes:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{circuits}
\usetikzlibrary{circuits.ee.IEC}
\tikzset{circuit declare symbol = ammeter}
\tikzset{set ammeter graphic ={draw,generic circle IEC, minimum size=5mm,info=center:A}}
\begin{document}
\begin{tikzpicture}[circuit ee IEC]
\draw (0,0) to[ammeter] (2,0);
\end{tikzpicture}
\end{document}


Resulting in:

-
@student: see the updated answer. –  Roelof Spijker Jan 30 '12 at 19:40