save conf

This commit is contained in:
2025-07-17 16:38:02 +02:00
parent 555a4779cb
commit e85ed24aba
4 changed files with 19 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
{
"Number_of_cycles": 1000,
"Number_of_cycles": 10,
"Amplitude_mm": 1,
"Time_in_beam_s": 5,
"Time_out_of_beam_s": 10,

View File

@@ -367,7 +367,9 @@ def camera_thread_function( img_queue):
camera.start()
start_time = time.time()
print("NR cycles:",init_nr_of_cycles())
for i in range(init_nr_of_cycles()):
sleep(0.1)
img_queue.put((camera.get_image(),time.time()))
stop_time = time.time()
elapsed_time = stop_time - start_time

View File

@@ -89,8 +89,8 @@
"source_hidden": true
},
"ExecuteTime": {
"end_time": "2025-07-17T14:27:13.704906Z",
"start_time": "2025-07-17T14:27:13.502595Z"
"end_time": "2025-07-17T14:37:47.980965Z",
"start_time": "2025-07-17T14:37:47.710355Z"
}
},
"source": [
@@ -313,7 +313,7 @@
"Connect to PLC\n",
"is_open()=True\n",
"get_local_address()=None\n",
"read_device_info()=('Plc30 App', <pyads.structs.AdsVersion object at 0x000002CC7D2C5400>)\n",
"read_device_info()=('Plc30 App', <pyads.structs.AdsVersion object at 0x000001B74A225400>)\n",
"GVL_APP.nAXIS_NUM=3\n",
"Constructor for axis\n"
]
@@ -326,7 +326,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "fc4230427234482883aae709683738da"
"model_id": "0210c36591ca4d6f8b6a55b221b0b2e4"
}
},
"metadata": {},
@@ -340,7 +340,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "71c9152bb2d8469bb15b15589486ce6b"
"model_id": "da20e292e79a48debab13d61f786ac8c"
}
},
"metadata": {},
@@ -349,12 +349,12 @@
{
"data": {
"text/plain": [
"BoundedIntText(value=1000, description='Nr of cycles:', max=1000, min=1)"
"BoundedIntText(value=10, description='Nr of cycles:', max=1000, min=1)"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "e9787f7a587f4da0989c1d3869c6b489"
"model_id": "2149a03288d044e8979a914a3652c551"
}
},
"metadata": {},
@@ -368,7 +368,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "c0f8b09d8f46420e8495efe5845cfc91"
"model_id": "5989ac0770634fffbf1e06849174c75f"
}
},
"metadata": {},
@@ -382,7 +382,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "12ec486c732e4ca78d2e1cfcc9a2ccbb"
"model_id": "1ceae98681904645ab1769554081e74f"
}
},
"metadata": {},
@@ -396,7 +396,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "9a698c4d24e149ed91e21ed2d4e95017"
"model_id": "11cb2ba2c88644d2a905333b73bcac3f"
}
},
"metadata": {},
@@ -410,7 +410,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "a330539dd8b94877a0f3216ff108c755"
"model_id": "13b901ca4c05498691daec705947cb23"
}
},
"metadata": {},
@@ -424,7 +424,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "4089210bf6024e9fb17ccb32d3a40617"
"model_id": "40cde2b4827f47abb6d3ae5a1abc0e48"
}
},
"metadata": {},
@@ -438,7 +438,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "a14d3eac97a04fed99438cb904870560"
"model_id": "f6730335ecf745b4a3c3a22ea88039e2"
}
},
"metadata": {},
@@ -452,7 +452,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "8d488488da5d4658847e20c7913502d8"
"model_id": "b8d6d1a667f6482189beab3cf4f2324b"
}
},
"metadata": {},
@@ -466,7 +466,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "8ece0ce356be48f5a4f7553a747438da"
"model_id": "df0bd61ac25344c5a4f775907e80fc43"
}
},
"metadata": {},
@@ -480,7 +480,7 @@
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "e66524cc588e4556818212361003d1c8"
"model_id": "912225694cae4183995bac7002ee60c2"
}
},
"metadata": {},