prelimanary results notebook

This commit is contained in:
2025-09-04 15:27:18 +02:00
parent f4aba02274
commit 64e9a168cf
7 changed files with 1380 additions and 90 deletions

View File

@@ -1,3 +1,3 @@
{
"temp_correction": 1
"temp_correction": 0
}

BIN
Images_doku/longstatic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
Images_doku/sketch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -17,7 +17,7 @@
"| 4 | X-Axis Motor | P304 |\n",
"| 5 | Base | P304 |\n",
"\n",
"Currently the temperature is logged on a privat computer since the PCI doesent allow to select drivers for unkown devices. This would be necesary since the measuring device only has an rs232 connection.\n",
"Currently the temperature is logged on a privat computer since the PSI doesent allow to select drivers for unkown devices. This would be necesary since the measuring device only has an rs232 connection.\n",
"A .dat file is safed on the laptop with the following format:\n",
"\n",
"| Temp1 |Temp2 | Temp3 |Temp4 |Temp5 |Unix Time |\n",
@@ -32,7 +32,7 @@
"| Treshhold -> CM | Not influenced by lenseflare but introduced discretisation error |\n",
"| Gausian Blur -> Threshhold -> CM | Not influenced by lenseflare but introduced discretisation error |\n",
"| Gausian Blur -> Upscale 3d > TH >CM | Bad |\n",
"| 5 | Base |\n",
"\n",
"\n",
"\n",
"\n",
@@ -93,12 +93,8 @@
"- Motor properties\n",
"- Humidity\n",
"- enc resolution\n",
"## Measurement tests\n",
"### unidirectional repetabillity\n",
"### bidirectional repetability\n",
"### thermal expansion\n",
"### relative distance accuracy\n",
"\n"
"## Documentation\n",
"All results are Documented in seperate Jupyter notebooks\n"
],
"id": "ac98fcd46a8e41f9"
},
@@ -766,6 +762,10 @@
"metadata": {
"jupyter": {
"source_hidden": true
},
"ExecuteTime": {
"end_time": "2025-09-04T11:46:34.251066Z",
"start_time": "2025-09-04T11:46:33.918717Z"
}
},
"source": [
@@ -797,8 +797,21 @@
"# View log\n",
"pd.read_csv(LOG_FILE)\n"
],
"outputs": [],
"execution_count": null
"outputs": [
{
"ename": "NameError",
"evalue": "name 'pd' is not defined",
"output_type": "error",
"traceback": [
"\u001B[31m---------------------------------------------------------------------------\u001B[39m",
"\u001B[31mNameError\u001B[39m Traceback (most recent call last)",
"\u001B[36mCell\u001B[39m\u001B[36m \u001B[39m\u001B[32mIn[1]\u001B[39m\u001B[32m, line 20\u001B[39m\n\u001B[32m 17\u001B[39m \u001B[38;5;28mprint\u001B[39m(\u001B[33m\"\u001B[39m\u001B[33mImprovement logged.\u001B[39m\u001B[33m\"\u001B[39m)\n\u001B[32m 19\u001B[39m \u001B[38;5;66;03m# Example log entry\u001B[39;00m\n\u001B[32m---> \u001B[39m\u001B[32m20\u001B[39m \u001B[43mlog_improvement\u001B[49m\u001B[43m(\u001B[49m\n\u001B[32m 21\u001B[39m \u001B[43m \u001B[49m\u001B[33;43m\"\u001B[39;49m\u001B[33;43mTuned PID gains for better damping\u001B[39;49m\u001B[33;43m\"\u001B[39;49m\u001B[43m,\u001B[49m\n\u001B[32m 22\u001B[39m \u001B[43m \u001B[49m\u001B[33;43m\"\u001B[39;49m\u001B[33;43mmeas_20250710_120000\u001B[39;49m\u001B[33;43m\"\u001B[39;49m\u001B[43m,\u001B[49m\n\u001B[32m 23\u001B[39m \u001B[43m \u001B[49m\u001B[33;43m\"\u001B[39;49m\u001B[33;43mObserved 30\u001B[39;49m\u001B[38;5;132;43;01m% o\u001B[39;49;00m\u001B[33;43mvershoot reduction\u001B[39;49m\u001B[33;43m\"\u001B[39;49m\n\u001B[32m 24\u001B[39m \u001B[43m)\u001B[49m\n\u001B[32m 26\u001B[39m \u001B[38;5;66;03m# View log\u001B[39;00m\n\u001B[32m 27\u001B[39m pd.read_csv(LOG_FILE)\n",
"\u001B[36mCell\u001B[39m\u001B[36m \u001B[39m\u001B[32mIn[1]\u001B[39m\u001B[32m, line 5\u001B[39m, in \u001B[36mlog_improvement\u001B[39m\u001B[34m(change_desc, meas_id, notes)\u001B[39m\n\u001B[32m 4\u001B[39m \u001B[38;5;28;01mdef\u001B[39;00m\u001B[38;5;250m \u001B[39m\u001B[34mlog_improvement\u001B[39m(change_desc, meas_id, notes):\n\u001B[32m----> \u001B[39m\u001B[32m5\u001B[39m new_entry = \u001B[43mpd\u001B[49m.DataFrame([{\n\u001B[32m 6\u001B[39m \u001B[33m\"\u001B[39m\u001B[33mtimestamp\u001B[39m\u001B[33m\"\u001B[39m: datetime.now(),\n\u001B[32m 7\u001B[39m \u001B[33m\"\u001B[39m\u001B[33mdescription\u001B[39m\u001B[33m\"\u001B[39m: change_desc,\n\u001B[32m 8\u001B[39m \u001B[33m\"\u001B[39m\u001B[33mmeasurement_id\u001B[39m\u001B[33m\"\u001B[39m: meas_id,\n\u001B[32m 9\u001B[39m \u001B[33m\"\u001B[39m\u001B[33mnotes\u001B[39m\u001B[33m\"\u001B[39m: notes\n\u001B[32m 10\u001B[39m }])\n\u001B[32m 11\u001B[39m \u001B[38;5;28;01mif\u001B[39;00m os.path.exists(LOG_FILE):\n\u001B[32m 12\u001B[39m old_log = pd.read_csv(LOG_FILE)\n",
"\u001B[31mNameError\u001B[39m: name 'pd' is not defined"
]
}
],
"execution_count": 1
},
{
"cell_type": "code",

281
notebooks/Results.ipynb Normal file

File diff suppressed because one or more lines are too long