aboutsummaryrefslogtreecommitdiffstats
path: root/two_tone_tuner.ipynb
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-04-02 10:46:49 +0100
committerandreas128 <Andreas>2017-04-02 10:46:49 +0100
commit2aa99f6275e2530a8dd4d3be270e9d7a3633cd66 (patch)
tree9bb6c05b6e17e3c00c4d68660cb47f846c4d66ba /two_tone_tuner.ipynb
parent3ee39e3ae187e76b252b5758c12bd35e5707e187 (diff)
downloadODR-StaticPrecorrection-2aa99f6275e2530a8dd4d3be270e9d7a3633cd66.tar.gz
ODR-StaticPrecorrection-2aa99f6275e2530a8dd4d3be270e9d7a3633cd66.tar.bz2
ODR-StaticPrecorrection-2aa99f6275e2530a8dd4d3be270e9d7a3633cd66.zip
Add two tone and mer measure
Diffstat (limited to 'two_tone_tuner.ipynb')
-rw-r--r--two_tone_tuner.ipynb113
1 files changed, 92 insertions, 21 deletions
diff --git a/two_tone_tuner.ipynb b/two_tone_tuner.ipynb
index 1d6f6cb..af7ad74 100644
--- a/two_tone_tuner.ipynb
+++ b/two_tone_tuner.ipynb
@@ -3,7 +3,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"%matplotlib inline\n",
@@ -17,13 +20,16 @@
"import src.tcp_async as tcp_async\n",
"import src.tcp_sync as tcp_sync\n",
"\n",
- "from live_analyse_py import live_analyse_py"
+ "#from live_analyse_py import live_analyse_py"
]
},
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"try:\n",
@@ -40,7 +46,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"sync = tcp_sync.UhdSyncMsg(packet_size=4*8192,\n",
@@ -51,7 +60,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"top = live_analyse_py()"
@@ -60,7 +72,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"top.start()"
@@ -69,7 +84,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"sync.has_msg()\n",
@@ -79,7 +97,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"top.set_txgain(85)\n",
@@ -89,7 +110,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"tt.gen_two_tone(debug = True)"
@@ -98,9 +122,14 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
- "source": []
+ "source": [
+ "a = np.fromfile(\"./input.dat\")"
+ ]
},
{
"cell_type": "code",
@@ -108,6 +137,18 @@
"metadata": {},
"outputs": [],
"source": [
+ "a.max()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
"def measure(param, debug = False):\n",
" #x2, x3, x4, x5, x6, x7, x8 = param\n",
" x1, x2, x3, x4, x5, x6, x7, x8 = param + [1]\n",
@@ -158,7 +199,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"def simple_opt(pars, i, d, func):\n",
@@ -183,7 +227,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"#top.blocks_file_source_0.open(\"../dab_normalized_c64.dat\", True)"
@@ -192,14 +239,20 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"reload(dt)\n",
@@ -216,14 +269,20 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": [
"sync.stop()\n",
@@ -235,28 +294,40 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "deletable": true,
+ "editable": true
+ },
"outputs": [],
"source": []
}