Strangly enough, this did work while making the figure, but now suddenly out of the blue, I can't get it to work again, and I really don't know what has happened since the last time it did work.
I've attached the code for the TikZ figure, and also the document I use when drawing figures (I probably load more TikZ libraries than I need, but since I often use the same document for compiling TikZ graphics, the number of libraries have just gathered up).
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{xcolor}
\usepackage{float}
\usepackage{siunitx}
\newcommand\hmmax{0} % default 3
\usepackage{bm}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\pgfplotsset{plot coordinates/math parser=false}
\usetikzlibrary{decorations.pathmorphing}
\usepgflibrary{decorations.pathreplacing}
\usetikzlibrary{arrows}
\usetikzlibrary{calc}
\usetikzlibrary{shapes}
\usetikzlibrary{matrix}
\usetikzlibrary{positioning}
\usetikzlibrary{patterns}
\usepackage[siunitx,european,americanresistors]{circuitikz}
\begin{document}
\thispagestyle{empty}
\begin{figure}[ht]
\centering
\input{meas_setup_loadpull.tikz}
\end{figure}
\end{document}
Code: Select all
\tikzstyle{branch} = [circle, inner sep = 0pt, minimum size = 0.5mm, fill = black, draw = black]
\tikzstyle{cyl} = [cylinder, shape border rotate = 90,draw = black]
\tikzstyle{circ} = [draw, circle, inner sep = 0mm, minimum size = 1mm, semithick]
\tikzstyle{circL} = [draw, circle, inner sep = 0mm, minimum size = 0.8cm, semithick]
\tikzstyle{connector} = [->,thick]
\tikzstyle{snakeline} = [connector, decorate, decoration={pre length=0.2cm,
post length=0.2cm, snake, amplitude=.8mm,
segment length=2mm},semithick,->]
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}
\begin{tikzpicture}[semithick,>=latex']
\draw[semithick] (10,5) -- (14,5) -- (14,4) -- (10,4) -- cycle;
\node[] at (12,4.5) {\footnotesize PC w/ MATLAB};
\draw[semithick] (10,3) -- (14,3) -- (14,2) -- (10,2) -- cycle;
\node[] at (12,2.5) {\footnotesize $\begin{matrix}\text{VTD SWAP-X402}\\\text{Time--domain receiver}\end{matrix}$};
\draw[semithick] (15.25,5) -- (17.65,5) -- (17.65,4) -- (15.25,4) -- cycle;
\node[] at (16.45,4.5) {\footnotesize $\begin{matrix}\text{R\&S}\\\text{FSQ40}\\\text{Spectrum analyzer}\end{matrix}$};
\draw[semithick] (15.25,3) -- (17.65,3) -- (17.65,2) -- (15.25,2) -- cycle;
\node[] at (16.45,2.5) {\footnotesize $\begin{matrix}\text{Output block:}\\\text{bias tee, coupler,}\\\text{attenuator}\end{matrix}$};
\begin{pgfonlayer}{foreground}
\draw[semithick,fill=white] (15.7,1) -- (17.2,1) -- (17.2,0) -- (15.7,0) -- cycle;
\node[] at (16.45,0.5) {\large$\boldsymbol{\Gamma}$\footnotesize $_\text{L}$};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
\draw[semithick,->] (15.7,-0.2) -- (17.2,1.2);
\end{pgfonlayer}
\node[] at (18,0.5) {\footnotesize$\begin{matrix}\text{FMW}\\\text{MPT--1820}\end{matrix}$};
\draw[semithick] (8.75,5) -- (6.35,5) -- (6.35,4) -- (8.75,4) -- cycle;
\node[] at (7.55,4.5) {\footnotesize $\begin{matrix}\text{R\&S}\\\text{SMU200A}\\\text{Signal generator}\end{matrix}$};
\draw[semithick] (8.75,3) -- (6.35,3) -- (6.35,2) -- (8.75,2) -- cycle;
\node[] at (7.55,2.5) {\footnotesize $\begin{matrix}\text{Input block:}\\\text{drivers, circulator,}\\\text{coupler, bias tee}\end{matrix}$};
\begin{pgfonlayer}{foreground}
\draw[semithick,fill=white] (8.3,1) -- (6.8,1) -- (6.8,0) -- (8.3,0) -- cycle;
\node[] at (7.55,0.5) {\large$\boldsymbol{\Gamma}$\footnotesize $_\text{S}$};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
\draw[semithick,->] (6.8,-0.2) -- (8.3,1.2);
\end{pgfonlayer}
\node[] at (6,0.5) {\footnotesize$\begin{matrix}\text{FMW}\\\text{MPT--1820}\end{matrix}$};
\node[cyl,aspect=0.25] at (10.3,1.15) {$\begin{matrix}\text{}\end{matrix}$};
\node[cyl,aspect=0.25] at (10.6,1.15) {$\begin{matrix}\text{}\end{matrix}$};
\draw[snakeline,->] (10.3,0.75) -- (10.3,1.5);
\draw[snakeline,->] (10.6,0.75) -- (10.6,1.5);
\path (10.1,1.75) node (a) {};
\path (10.8,0.4) node (b) {};
\path[semithick,draw] (a) rectangle (b);
\draw[semithick] (10.3,0.75) -- (10.3,0.6) -- (10.6,0.6) -- (10.6,0.75);
\draw[semithick,->] (10.3,1.51) -- (10.3,2);
\draw[semithick,->] (10.6,1.51) -- (10.6,2);
\node[] at (9.4,1.5) {\footnotesize$\begin{matrix}\text{FMW}\\\text{WP--18--F}\end{matrix}$};
\node[cyl,aspect=0.25] at (13.7,1.15) {$\begin{matrix}\text{}\end{matrix}$};
\node[cyl,aspect=0.25] at (13.4,1.15) {$\begin{matrix}\text{}\end{matrix}$};
\draw[snakeline,->] (13.7,0.75) -- (13.7,1.5);
\draw[snakeline,->] (13.4,0.75) -- (13.4,1.5);
\path (13.9,1.75) node (a) {};
\path (13.2,0.4) node (b) {};
\path[semithick,draw] (a) rectangle (b);
\draw[semithick] (13.4,0.75) -- (13.4,0.6) -- (13.7,0.6) -- (13.7,0.75);
\draw[semithick,->] (13.4,1.51) -- (13.4,2);
\draw[semithick,->] (13.7,1.51) -- (13.7,2);
\node[] at (14.6,1.5) {\footnotesize$\begin{matrix}\text{FMW}\\\text{WP--18--F}\end{matrix}$};
\draw[semithick] (11.25,-0.25) -- (12.75,-0.25) -- (12.75,1.25) -- (11.25,1.25) -- cycle;
\draw[semithick] (12.2,0.5) node[nmos,scale=0.75] {};
\node[circL] at (12.05,0.5) {};
\node[above] at (12,1.25) {\footnotesize DUT: CGH40010};
\draw[snakeline,->] (10,0.25) -- (11,0.25);
\draw[snakeline,<-] (10,-0.15) -- (11,-0.15);
\node[left] at (10,0.25) {$a_1$};
\node[left] at (10,-0.15) {$b_1$};
\draw[snakeline,<-] (13,0.25) -- (14,0.25);
\draw[snakeline,->] (13,-0.15) -- (14,-0.15);
\node[right] at (14,0.25) {$a_2$};
\node[right] at (14,-0.15) {$b_2$};
\draw[semithick,->] (8.3,0.5) -- (11.25,0.5);
\draw[semithick,->] (12.75,0.5) -- (15.7,0.5);
\draw[semithick,->] (16.45,1) -- (16.45,2);
\draw[semithick,->] (16.45,3) -- (16.45,4);
\draw[semithick,<-] (7.55,1) -- (7.55,2);
\draw[semithick,<-] (7.55,3) -- (7.55,4);
\draw[semithick,<->] (10,4.5) -- node[above] {\footnotesize GPIB} (8.75,4.5);
\draw[semithick,<->] (14,4.5) -- node[above] {\footnotesize GPIB} (15.25,4.5);
\draw[semithick,<->] (12,4) -- node[right] {\footnotesize GPIB} (12,3);
\end{tikzpicture}
Best regards,
dm