| 1 |
\documentclass[11pt,a4paper,usenames,dvipsnames]{article} |
| 2 |
|
| 3 |
\usepackage{../tikz-osci} |
| 4 |
|
| 5 |
% Use sans serif font |
| 6 |
\renewcommand{\familydefault}{\sfdefault} |
| 7 |
|
| 8 |
\begin{document} |
| 9 |
|
| 10 |
\begin{center} |
| 11 |
|
| 12 |
\osci[% |
| 13 |
scale=0.7 |
| 14 |
] |
| 15 |
|
| 16 |
\vspace*{0.3cm} |
| 17 |
|
| 18 |
\osci[% |
| 19 |
scale=0.7, |
| 20 |
rounded corners=5, |
| 21 |
second channel=1, |
| 22 |
screen offset one=2, |
| 23 |
screen offset two=-2, |
| 24 |
time div=20, |
| 25 |
voltage div one=4, |
| 26 |
voltage div two=1, |
| 27 |
sample rate=200, |
| 28 |
xy mode=0, |
| 29 |
func one=2*sin(2*180/0.020*x), |
| 30 |
func two=1*sin(2*180/0.020*x)+0.2*sin(2*180/0.040*x), |
| 31 |
indicators=0, |
| 32 |
color one=D62626, |
| 33 |
color two=1053AF, |
| 34 |
graph back color=777799, |
| 35 |
info back color=333333, |
| 36 |
info text color=FFFFFF, |
| 37 |
main axis color=DDDDDD, |
| 38 |
grid color=CCCCCC, |
| 39 |
] |
| 40 |
|
| 41 |
\vspace*{0.3cm} |
| 42 |
|
| 43 |
\osci[% |
| 44 |
scale=0.7, |
| 45 |
rounded corners=0, |
| 46 |
second channel=1, |
| 47 |
screen offset one=2, |
| 48 |
screen offset two=-2, |
| 49 |
time div=20, |
| 50 |
voltage div one=4, |
| 51 |
voltage div two=10, |
| 52 |
sample rate=200, |
| 53 |
xy mode=0, |
| 54 |
func one=2*sin(2*180/0.020*x), |
| 55 |
func two=10*sin(2*180/0.010*x)+5*sin(2*180/0.020*x), |
| 56 |
indicators=1, |
| 57 |
color one=F0DE25, |
| 58 |
color text one=000000, |
| 59 |
color two=F0DE25, |
| 60 |
color text two=000000, |
| 61 |
graph back color=668866, |
| 62 |
info back color=D6D6D6, |
| 63 |
info text color=000000, |
| 64 |
main axis color=000000, |
| 65 |
grid color=CCCCCC, |
| 66 |
] |
| 67 |
|
| 68 |
\end{center} |
| 69 |
|
| 70 |
\newpage |
| 71 |
|
| 72 |
\begin{center} |
| 73 |
\osci[% |
| 74 |
scale=0.7, |
| 75 |
second channel=1, |
| 76 |
time div=300, |
| 77 |
voltage div one=1, |
| 78 |
voltage div two=0.5, |
| 79 |
sample rate=500, |
| 80 |
xy mode=1, |
| 81 |
func one=sin(7*x), |
| 82 |
func two=sin(2*x), |
| 83 |
indicators=1, |
| 84 |
graph back color=FFFFFF, |
| 85 |
info back color=D6D6D6, |
| 86 |
info text color=000000, |
| 87 |
main axis color=000000, |
| 88 |
grid color=CCCCCC, |
| 89 |
] |
| 90 |
|
| 91 |
\vspace*{0.3cm} |
| 92 |
|
| 93 |
\osci[% |
| 94 |
scale=0.7, |
| 95 |
second channel=1, |
| 96 |
time div=1000, |
| 97 |
voltage div one=1, |
| 98 |
voltage div two=1, |
| 99 |
sample rate=500, |
| 100 |
xy mode=1, |
| 101 |
func one=3*sin(2*x), |
| 102 |
func two=3*sin(2*x+45), |
| 103 |
indicators=1, |
| 104 |
graph back color=FFFFFF, |
| 105 |
info back color=D6D6D6, |
| 106 |
info text color=000000, |
| 107 |
main axis color=000000, |
| 108 |
grid color=CCCCCC, |
| 109 |
] |
| 110 |
|
| 111 |
\vspace*{0.3cm} |
| 112 |
|
| 113 |
\osci[% |
| 114 |
scale=0.7, |
| 115 |
second channel=1, |
| 116 |
time div=10, |
| 117 |
voltage div one=2, |
| 118 |
voltage div two=2, |
| 119 |
sample rate=500, |
| 120 |
xy mode=0, |
| 121 |
math mode=3, |
| 122 |
math mode hide source=0, |
| 123 |
func one=2*sin(2*180/0.040*x), |
| 124 |
func two=3*sin(2*180/0.005*x), |
| 125 |
indicators=0, |
| 126 |
graph back color=FFFFFF, |
| 127 |
info back color=D6D6D6, |
| 128 |
info text color=000000, |
| 129 |
main axis color=000000, |
| 130 |
grid color=CCCCCC, |
| 131 |
] |
| 132 |
|
| 133 |
\end{center} |
| 134 |
|
| 135 |
\newpage |
| 136 |
|
| 137 |
\begin{center} |
| 138 |
|
| 139 |
\osci[% |
| 140 |
scale=0.7, |
| 141 |
second channel=1, |
| 142 |
time div=10, |
| 143 |
voltage div one=2, |
| 144 |
voltage div two=2, |
| 145 |
sample rate=500, |
| 146 |
xy mode=0, |
| 147 |
math mode=3, |
| 148 |
math mode hide source=1, |
| 149 |
func one=2*sin(2*180/0.040*x), |
| 150 |
func two=3*sin(2*180/0.005*x), |
| 151 |
indicators=0, |
| 152 |
graph back color=FFFFFF, |
| 153 |
info back color=D6D6D6, |
| 154 |
info text color=000000, |
| 155 |
main axis color=000000, |
| 156 |
grid color=CCCCCC, |
| 157 |
] |
| 158 |
|
| 159 |
\vspace*{0.3cm} |
| 160 |
|
| 161 |
|
| 162 |
% Square wave function |
| 163 |
\pgfmathdeclarefunction{square}{4}{% |
| 164 |
\pgfmathparse{(sin(2*180*x/#2+#4)+#3>0?#1:-#1)}% |
| 165 |
} |
| 166 |
|
| 167 |
% Triangle wave function |
| 168 |
\pgfmathdeclarefunction{triangle}{4}{% |
| 169 |
\pgfmathparse{#1*asin(sin(2*180/#2*x+#4))/90}% |
| 170 |
} |
| 171 |
|
| 172 |
\osci[% |
| 173 |
scale=0.7, |
| 174 |
second channel=1, |
| 175 |
time div=50, |
| 176 |
voltage div one=1, |
| 177 |
voltage div two=1, |
| 178 |
sample rate=1000, |
| 179 |
func one={triangle(2,0.2,0,0)}, |
| 180 |
func two={square(2,0.2,0,-60)}, |
| 181 |
smooth one = 1, |
| 182 |
smooth two = 0, |
| 183 |
vertical cursor one = 2, |
| 184 |
vertical cursor two = 2.67, |
| 185 |
cursor precision = 1 |
| 186 |
] |
| 187 |
|
| 188 |
|
| 189 |
\end{center} |
| 190 |
|
| 191 |
|
| 192 |
\end{document} |