aboutsummaryrefslogtreecommitdiffstats
path: root/two_tone_tuner.ipynb
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-01-09 14:53:17 +0000
committerandreas128 <Andreas>2017-01-09 14:53:17 +0000
commit62d6affd9fd9c5d45305cd5880c16696c0744044 (patch)
tree0bb5dafba926b592ead5cc5a0223595c166405c2 /two_tone_tuner.ipynb
parent1ee69f061ce25f03ea97da3fc3f5e54d95423561 (diff)
downloadODR-StaticPrecorrection-62d6affd9fd9c5d45305cd5880c16696c0744044.tar.gz
ODR-StaticPrecorrection-62d6affd9fd9c5d45305cd5880c16696c0744044.tar.bz2
ODR-StaticPrecorrection-62d6affd9fd9c5d45305cd5880c16696c0744044.zip
Plot whole spectrum for two tone analyse
Diffstat (limited to 'two_tone_tuner.ipynb')
-rw-r--r--two_tone_tuner.ipynb13
1 files changed, 9 insertions, 4 deletions
diff --git a/two_tone_tuner.ipynb b/two_tone_tuner.ipynb
index 6564068..af96f5a 100644
--- a/two_tone_tuner.ipynb
+++ b/two_tone_tuner.ipynb
@@ -80,7 +80,8 @@
"metadata": {},
"outputs": [],
"source": [
- "top.set_txgain(85)"
+ "top.set_txgain(85)\n",
+ "top.set_rxgain(15)"
]
},
{
@@ -88,7 +89,9 @@
"execution_count": null,
"metadata": {},
"outputs": [],
- "source": []
+ "source": [
+ "tt.gen_two_tone(debug = True)"
+ ]
},
{
"cell_type": "code",
@@ -170,11 +173,13 @@
"outputs": [],
"source": [
"top.set_txgain(85)\n",
+ "top.set_rxgain(5)\n",
+ "\n",
"pars = np.zeros(7)\n",
"\n",
- "for i in range(100):\n",
+ "for i in range(10000):\n",
" i_rand = np.random.randint(0, len(pars))\n",
- " pars = simple_opt(pars, i_rand, 0.05, measure)\n"
+ " pars = simple_opt(pars, i_rand, 0.005, measure)\n"
]
},
{