stresing 4.20.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,164 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ This version of the GNU Lesser General Public License incorporates
9
+ the terms and conditions of version 3 of the GNU General Public
10
+ License, supplemented by the additional permissions listed below.
11
+
12
+ 0. Additional Definitions.
13
+
14
+ As used herein, "this License" refers to version 3 of the GNU Lesser
15
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
16
+ General Public License.
17
+
18
+ "The Library" refers to a covered work governed by this License,
19
+ other than an Application or a Combined Work as defined below.
20
+
21
+ An "Application" is any work that makes use of an interface provided
22
+ by the Library, but which is not otherwise based on the Library.
23
+ Defining a subclass of a class defined by the Library is deemed a mode
24
+ of using an interface provided by the Library.
25
+
26
+ A "Combined Work" is a work produced by combining or linking an
27
+ Application with the Library. The particular version of the Library
28
+ with which the Combined Work was made is also called the "Linked
29
+ Version".
30
+
31
+ The "Minimal Corresponding Source" for a Combined Work means the
32
+ Corresponding Source for the Combined Work, excluding any source code
33
+ for portions of the Combined Work that, considered in isolation, are
34
+ based on the Application, and not on the Linked Version.
35
+
36
+ The "Corresponding Application Code" for a Combined Work means the
37
+ object code and/or source code for the Application, including any data
38
+ and utility programs needed for reproducing the Combined Work from the
39
+ Application, but excluding the System Libraries of the Combined Work.
40
+
41
+ 1. Exception to Section 3 of the GNU GPL.
42
+
43
+ You may convey a covered work under sections 3 and 4 of this License
44
+ without being bound by section 3 of the GNU GPL.
45
+
46
+ 2. Conveying Modified Versions.
47
+
48
+ If you modify a copy of the Library, and, in your modifications, a
49
+ facility refers to a function or data to be supplied by an Application
50
+ that uses the facility (other than as an argument passed when the
51
+ facility is invoked), then you may convey a copy of the modified
52
+ version:
53
+
54
+ a) under this License, provided that you make a good faith effort to
55
+ ensure that, in the event an Application does not supply the
56
+ function or data, the facility still operates, and performs
57
+ whatever part of its purpose remains meaningful, or
58
+
59
+ b) under the GNU GPL, with none of the additional permissions of
60
+ this License applicable to that copy.
61
+
62
+ 3. Object Code Incorporating Material from Library Header Files.
63
+
64
+ The object code form of an Application may incorporate material from
65
+ a header file that is part of the Library. You may convey such object
66
+ code under terms of your choice, provided that, if the incorporated
67
+ material is not limited to numerical parameters, data structure
68
+ layouts and accessors, or small macros, inline functions and templates
69
+ (ten or fewer lines in length), you do both of the following:
70
+
71
+ a) Give prominent notice with each copy of the object code that the
72
+ Library is used in it and that the Library and its use are
73
+ covered by this License.
74
+
75
+ b) Accompany the object code with a copy of the GNU GPL and this license
76
+ document.
77
+
78
+ 4. Combined Works.
79
+
80
+ You may convey a Combined Work under terms of your choice that,
81
+ taken together, effectively do not restrict modification of the
82
+ portions of the Library contained in the Combined Work and reverse
83
+ engineering for debugging such modifications, if you also do each of
84
+ the following:
85
+
86
+ a) Give prominent notice with each copy of the Combined Work that
87
+ the Library is used in it and that the Library and its use are
88
+ covered by this License.
89
+
90
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
91
+ document.
92
+
93
+ c) For a Combined Work that displays copyright notices during
94
+ execution, include the copyright notice for the Library among
95
+ these notices, as well as a reference directing the user to the
96
+ copies of the GNU GPL and this license document.
97
+
98
+ d) Do one of the following:
99
+
100
+ 0) Convey the Minimal Corresponding Source under the terms of this
101
+ License, and the Corresponding Application Code in a form
102
+ suitable for, and under terms that permit, the user to
103
+ recombine or relink the Application with a modified version of
104
+ the Linked Version to produce a modified Combined Work, in the
105
+ manner specified by section 6 of the GNU GPL for conveying
106
+ Corresponding Source.
107
+
108
+ 1) Use a suitable shared library mechanism for linking with the
109
+ Library. A suitable mechanism is one that (a) uses at run time
110
+ a copy of the Library already present on the user's computer
111
+ system, and (b) will operate properly with a modified version
112
+ of the Library that is interface-compatible with the Linked
113
+ Version.
114
+
115
+ e) Provide Installation Information, but only if you would otherwise
116
+ be required to provide such information under section 6 of the
117
+ GNU GPL, and only to the extent that such information is
118
+ necessary to install and execute a modified version of the
119
+ Combined Work produced by recombining or relinking the
120
+ Application with a modified version of the Linked Version. (If
121
+ you use option 4d0, the Installation Information must accompany
122
+ the Minimal Corresponding Source and Corresponding Application
123
+ Code. If you use option 4d1, you must provide the Installation
124
+ Information in the manner specified by section 6 of the GNU GPL
125
+ for conveying Corresponding Source.)
126
+
127
+ 5. Combined Libraries.
128
+
129
+ You may place library facilities that are a work based on the
130
+ Library side by side in a single library together with other library
131
+ facilities that are not Applications and are not covered by this
132
+ License, and convey such a combined library under terms of your
133
+ choice, if you do both of the following:
134
+
135
+ a) Accompany the combined library with a copy of the same work based
136
+ on the Library, uncombined with any other library facilities,
137
+ conveyed under the terms of this License.
138
+
139
+ b) Give prominent notice with the combined library that part of it
140
+ is a work based on the Library, and explaining where to find the
141
+ accompanying uncombined form of the same work.
142
+
143
+ 6. Revised Versions of the GNU Lesser General Public License.
144
+
145
+ The Free Software Foundation may publish revised and/or new versions
146
+ of the GNU Lesser General Public License from time to time. Such new
147
+ versions will be similar in spirit to the present version, but may
148
+ differ in detail to address new problems or concerns.
149
+
150
+ Each version is given a distinguishing version number. If the
151
+ Library as you received it specifies that a certain numbered version
152
+ of the GNU Lesser General Public License "or any later version"
153
+ applies to it, you have the option of following the terms and
154
+ conditions either of that published version or of any later version
155
+ published by the Free Software Foundation. If the Library as you
156
+ received it does not specify a version number of the GNU Lesser
157
+ General Public License, you may choose any version of the GNU Lesser
158
+ General Public License ever published by the Free Software Foundation.
159
+
160
+ If the Library as you received it specifies that a proxy can decide
161
+ whether future versions of the GNU Lesser General Public License shall
162
+ apply, that proxy's public statement of acceptance of any version is
163
+ permanent authorization for you to choose that version for the
164
+ Library.
@@ -0,0 +1,4 @@
1
+ include README.md
2
+ include LICENSE
3
+ include config.ini
4
+ recursive-include stresing *.dll
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: stresing
3
+ Version: 4.20.1
4
+ Summary: Module to operate Stresing cameras
5
+ Author: Florian Hahn
6
+ License-Expression: LGPL-3.0
7
+ Classifier: Development Status :: 4 - Beta
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.7
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Scientific/Engineering
17
+ Requires-Python: >=3.7
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Provides-Extra: dev
21
+ Requires-Dist: build; extra == "dev"
22
+ Requires-Dist: twine; extra == "dev"
23
+ Dynamic: license-file
24
+
25
+ # Python script for Stresing cameras
26
+
27
+ In this repository you can find the python module *stresing* for operating [Stresing](https://stresing.de) cameras. This is located in the folder `stresing/`. You can find examples how to use this module in the folder `example/`. If you don't know where to start, start with [examples/simple_blocking_measurement.py](examples/simple_blocking_measurement.py).
28
+
29
+ ![screenshot of the plot](./screenshot/graph.png)
30
+
31
+ ## Dependencies
32
+ * [Python 3](https://www.python.org/)
33
+ * [Microsoft Visual C++ Redistributable](https://aka.ms/vs/16/release/vc_redist.x64.exe) to use the DLL
34
+ * [ctypes](https://pypi.org/project/ctypes/)
35
+ * [configpraser](https://pypi.org/project/configparser/)
36
+
37
+ ## DLL source
38
+ The source code of the DLL ESLSCDLL.dll can be found in the repository [EBST_CAM](https://github.com/Entwicklungsburo-Stresing/EBST_CAM).
39
+
40
+ ## Documentation
41
+ There is a [full documentation](https://entwicklungsburo-stresing.github.io) of the library ESLSCDLL. The settings in `config.ini` must match your camera system. You can find a description of every setting [here](https://entwicklungsburo-stresing.github.io/structmeasurement__settings.html). The file config.ini is compatible with the exported settings of the GUI [Escam](https://github.com/Entwicklungsburo-Stresing/EBST_CAM). Settings that are not found in the file, will be left as default.
42
+
43
+ ## Examples
44
+ You can run examples with
45
+ ```
46
+ python -m examples.simple_blocking_measurement
47
+ ```
48
+
49
+ ## Installing as module
50
+ You can install the module stresing with
51
+ ```
52
+ pip install stresing
53
+ ```
54
+
55
+ For development, clone the repository and install with
56
+ ```
57
+ pip install -e .[dev]
58
+ ```
59
+
60
+ ## License
61
+ The python module *stresing* is licened under the LPGL-3. All examples in the folder `examples/` are published as public domain under the Unlicense.
@@ -0,0 +1,37 @@
1
+ # Python script for Stresing cameras
2
+
3
+ In this repository you can find the python module *stresing* for operating [Stresing](https://stresing.de) cameras. This is located in the folder `stresing/`. You can find examples how to use this module in the folder `example/`. If you don't know where to start, start with [examples/simple_blocking_measurement.py](examples/simple_blocking_measurement.py).
4
+
5
+ ![screenshot of the plot](./screenshot/graph.png)
6
+
7
+ ## Dependencies
8
+ * [Python 3](https://www.python.org/)
9
+ * [Microsoft Visual C++ Redistributable](https://aka.ms/vs/16/release/vc_redist.x64.exe) to use the DLL
10
+ * [ctypes](https://pypi.org/project/ctypes/)
11
+ * [configpraser](https://pypi.org/project/configparser/)
12
+
13
+ ## DLL source
14
+ The source code of the DLL ESLSCDLL.dll can be found in the repository [EBST_CAM](https://github.com/Entwicklungsburo-Stresing/EBST_CAM).
15
+
16
+ ## Documentation
17
+ There is a [full documentation](https://entwicklungsburo-stresing.github.io) of the library ESLSCDLL. The settings in `config.ini` must match your camera system. You can find a description of every setting [here](https://entwicklungsburo-stresing.github.io/structmeasurement__settings.html). The file config.ini is compatible with the exported settings of the GUI [Escam](https://github.com/Entwicklungsburo-Stresing/EBST_CAM). Settings that are not found in the file, will be left as default.
18
+
19
+ ## Examples
20
+ You can run examples with
21
+ ```
22
+ python -m examples.simple_blocking_measurement
23
+ ```
24
+
25
+ ## Installing as module
26
+ You can install the module stresing with
27
+ ```
28
+ pip install stresing
29
+ ```
30
+
31
+ For development, clone the repository and install with
32
+ ```
33
+ pip install -e .[dev]
34
+ ```
35
+
36
+ ## License
37
+ The python module *stresing* is licened under the LPGL-3. All examples in the folder `examples/` are published as public domain under the Unlicense.
@@ -0,0 +1,339 @@
1
+ [General]
2
+ board0=true
3
+ board1=false
4
+ board2=false
5
+ board3=false
6
+ board4=false
7
+ board_sel=1
8
+ colorScheme=0
9
+ cont_pause_in_microseconds=0
10
+ nob=1
11
+ nos=1000
12
+ settingsLevel=0
13
+ softwareVersion=4.20.1
14
+ theme=windows11
15
+ themeIndex=0
16
+ AxesMirrorXPath=false
17
+ showCrosshair=false
18
+
19
+ [board0]
20
+ adc_custom_pattern=0
21
+ adc_gain=0
22
+ adc_mode=0
23
+ bdat_in_10ns=0
24
+ bec_in_10ns=0
25
+ bslope=1
26
+ bti_mode=4
27
+ bticnt=0
28
+ btime=110000
29
+ camcnt=1
30
+ camera_system=2
31
+ ch1\ioctrl_sequence_path=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
32
+ ch1\ioctrl_width_in_1ns=3200
33
+ ch2\ioctrl_sequence_path=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
34
+ ch2\ioctrl_width_in_1ns=3200
35
+ ch3\ioctrl_sequence_path=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
36
+ ch3\ioctrl_width_in_1ns=3200
37
+ ch4\ioctrl_sequence_path=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
38
+ ch4\ioctrl_width_in_1ns=3200
39
+ ch5\ioctrl_sequence_path=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
40
+ ch5\ioctrl_width_in_1ns=3200
41
+ ch6\ioctrl_sequence_path=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
42
+ ch6\ioctrl_width_in_1ns=3200
43
+ ch7\ioctrl_sequence_path=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
44
+ ch7\ioctrl_width_in_1ns=3200
45
+ ch8\ioctrl_sequence_path=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
46
+ ch8\ioctrl_width_in_1ns=3200
47
+ channel_select=2
48
+ dac_output1Pos0=55000
49
+ dac_output2Pos0=55000
50
+ dac_output3Pos0=55000
51
+ dac_output4Pos0=55000
52
+ dac_output5Pos0=55000
53
+ dac_output6Pos0=55000
54
+ dac_output7Pos0=55000
55
+ dac_output8Pos0=55000
56
+ ec_legacy_mode=false
57
+ fft_lines=64
58
+ fft_mode=0
59
+ file_path=C:/Program Files/Stresing/Escam
60
+ gpx_offset=1000
61
+ ioctrl_T0_period_in_10ns=1000
62
+ ioctrl_impact_start_pixel=1078
63
+ ioctrl_output_delay_in_5ns_1=0
64
+ ioctrl_output_delay_in_5ns_2=100
65
+ ioctrl_output_delay_in_5ns_3=200
66
+ ioctrl_output_delay_in_5ns_4=300
67
+ ioctrl_output_delay_in_5ns_5=400
68
+ ioctrl_output_delay_in_5ns_6=500
69
+ ioctrl_output_delay_in_5ns_7=50
70
+ ioctrl_output_width_in_5ns_1=50
71
+ ioctrl_output_width_in_5ns_2=50
72
+ ioctrl_output_width_in_5ns_3=50
73
+ ioctrl_output_width_in_5ns_4=50
74
+ ioctrl_output_width_in_5ns_5=50
75
+ ioctrl_output_width_in_5ns_6=50
76
+ ioctrl_output_width_in_5ns_7=600
77
+ is_cooled_camera_legacy_mode=false
78
+ is_fft_legacy=false
79
+ led_off=false
80
+ manipulate_data_custom_factor=1
81
+ manipulate_data_mode=0
82
+ monitor=0
83
+ number_of_regions=3
84
+ pixel=1088
85
+ regionSizeEqual=true
86
+ region_size1=10
87
+ region_size2=44
88
+ region_size3=10
89
+ region_size4=0
90
+ region_size5=0
91
+ rmsFirstSample=10
92
+ rmsLastSample=100
93
+ rmsPixel=20
94
+ s1s2_read_delay_in_10ns=0
95
+ sdat_in_10ns=0
96
+ sec_in_10ns=0
97
+ sensor_gain=0
98
+ sensor_reset_or_hsir_ec=2
99
+ sensor_type=3
100
+ shift_s1s2_to_next_scan=false
101
+ shutter1=0
102
+ shutter2=0
103
+ shutter3=0
104
+ shutter4=0
105
+ shutterMshut=0
106
+ sslope=0
107
+ sti_mode=4
108
+ sticnt=0
109
+ stime=100
110
+ temp_level=0
111
+ timer_resolution_mode=0
112
+ tocnt=0
113
+ tor=0
114
+ trigger_mode_integrator=0
115
+ trigger_source=7
116
+ use_software_polling=false
117
+ vfreq=7
118
+ write_to_disc=false
119
+ xckdelay_in_10ns=0
120
+
121
+ [board1]
122
+ adc_custom_pattern=0
123
+ adc_gain=0
124
+ adc_mode=0
125
+ bdat_in_10ns=0
126
+ bec_in_10ns=0
127
+ bslope=1
128
+ bti_mode=4
129
+ bticnt=0
130
+ btime=1e+06
131
+ camcnt=1
132
+ camera_system=0
133
+ channel_select=2
134
+ ec_legacy_mode=false
135
+ fft_lines=64
136
+ fft_mode=0
137
+ file_path=C:/Program Files/Stresing/Escam
138
+ gpx_offset=1000
139
+ ioctrl_impact_start_pixel=1078
140
+ is_cooled_camera_legacy_mode=false
141
+ is_fft_legacy=false
142
+ led_off=false
143
+ manipulate_data_custom_factor=1
144
+ manipulate_data_mode=0
145
+ monitor=0
146
+ number_of_regions=3
147
+ pixel=1088
148
+ regionSizeEqual=true
149
+ region_size1=10
150
+ region_size2=44
151
+ region_size3=10
152
+ region_size4=0
153
+ region_size5=0
154
+ s1s2_read_delay_in_10ns=0
155
+ sdat_in_10ns=0
156
+ sec_in_10ns=0
157
+ sensor_gain=0
158
+ sensor_reset_or_hsir_ec=2
159
+ sensor_type=0
160
+ shift_s1s2_to_next_scan=false
161
+ sslope=0
162
+ sti_mode=4
163
+ sticnt=0
164
+ stime=1000
165
+ temp_level=0
166
+ timer_resolution_mode=0
167
+ tocnt=0
168
+ tor=0
169
+ trigger_mode_integrator=0
170
+ use_software_polling=false
171
+ vfreq=7
172
+ write_to_disc=false
173
+ xckdelay_in_10ns=0
174
+
175
+ [board2]
176
+ adc_custom_pattern=0
177
+ adc_gain=0
178
+ adc_mode=0
179
+ bdat_in_10ns=0
180
+ bec_in_10ns=0
181
+ bslope=1
182
+ bti_mode=4
183
+ bticnt=0
184
+ btime=1e+06
185
+ camcnt=1
186
+ camera_system=0
187
+ channel_select=2
188
+ ec_legacy_mode=false
189
+ fft_lines=64
190
+ fft_mode=0
191
+ file_path=C:/Program Files/Stresing/Escam
192
+ gpx_offset=1000
193
+ ioctrl_impact_start_pixel=1078
194
+ is_cooled_camera_legacy_mode=false
195
+ is_fft_legacy=false
196
+ led_off=false
197
+ manipulate_data_custom_factor=1
198
+ manipulate_data_mode=0
199
+ monitor=0
200
+ number_of_regions=3
201
+ pixel=1088
202
+ regionSizeEqual=true
203
+ region_size1=10
204
+ region_size2=44
205
+ region_size3=10
206
+ region_size4=0
207
+ region_size5=0
208
+ s1s2_read_delay_in_10ns=0
209
+ sdat_in_10ns=0
210
+ sec_in_10ns=0
211
+ sensor_gain=0
212
+ sensor_reset_or_hsir_ec=2
213
+ sensor_type=0
214
+ shift_s1s2_to_next_scan=false
215
+ sslope=0
216
+ sti_mode=4
217
+ sticnt=0
218
+ stime=1000
219
+ temp_level=0
220
+ timer_resolution_mode=0
221
+ tocnt=0
222
+ tor=0
223
+ trigger_mode_integrator=0
224
+ use_software_polling=false
225
+ vfreq=7
226
+ write_to_disc=false
227
+ xckdelay_in_10ns=0
228
+
229
+ [board3]
230
+ adc_custom_pattern=0
231
+ adc_gain=0
232
+ adc_mode=0
233
+ bdat_in_10ns=0
234
+ bec_in_10ns=0
235
+ bslope=1
236
+ bti_mode=4
237
+ bticnt=0
238
+ btime=1e+06
239
+ camcnt=1
240
+ camera_system=0
241
+ channel_select=2
242
+ ec_legacy_mode=false
243
+ fft_lines=64
244
+ fft_mode=0
245
+ file_path=C:/Program Files/Stresing/Escam
246
+ gpx_offset=1000
247
+ ioctrl_impact_start_pixel=1078
248
+ is_cooled_camera_legacy_mode=false
249
+ is_fft_legacy=false
250
+ led_off=false
251
+ manipulate_data_custom_factor=1
252
+ manipulate_data_mode=0
253
+ monitor=0
254
+ number_of_regions=3
255
+ pixel=1088
256
+ regionSizeEqual=true
257
+ region_size1=10
258
+ region_size2=44
259
+ region_size3=10
260
+ region_size4=0
261
+ region_size5=0
262
+ s1s2_read_delay_in_10ns=0
263
+ sdat_in_10ns=0
264
+ sec_in_10ns=0
265
+ sensor_gain=0
266
+ sensor_reset_or_hsir_ec=2
267
+ sensor_type=0
268
+ shift_s1s2_to_next_scan=false
269
+ sslope=0
270
+ sti_mode=4
271
+ sticnt=0
272
+ stime=1000
273
+ temp_level=0
274
+ timer_resolution_mode=0
275
+ tocnt=0
276
+ tor=0
277
+ trigger_mode_integrator=0
278
+ use_software_polling=false
279
+ vfreq=7
280
+ write_to_disc=false
281
+ xckdelay_in_10ns=0
282
+
283
+ [board4]
284
+ adc_custom_pattern=0
285
+ adc_gain=0
286
+ adc_mode=0
287
+ bdat_in_10ns=0
288
+ bec_in_10ns=0
289
+ bslope=1
290
+ bti_mode=4
291
+ bticnt=0
292
+ btime=1e+06
293
+ camcnt=1
294
+ camera_system=0
295
+ channel_select=2
296
+ ec_legacy_mode=false
297
+ fft_lines=64
298
+ fft_mode=0
299
+ file_path=C:/Program Files/Stresing/Escam
300
+ gpx_offset=1000
301
+ ioctrl_impact_start_pixel=1078
302
+ is_cooled_camera_legacy_mode=false
303
+ is_fft_legacy=false
304
+ led_off=false
305
+ manipulate_data_custom_factor=1
306
+ manipulate_data_mode=0
307
+ monitor=0
308
+ number_of_regions=3
309
+ pixel=1088
310
+ regionSizeEqual=true
311
+ region_size1=10
312
+ region_size2=44
313
+ region_size3=10
314
+ region_size4=0
315
+ region_size5=0
316
+ s1s2_read_delay_in_10ns=0
317
+ sdat_in_10ns=0
318
+ sec_in_10ns=0
319
+ sensor_gain=0
320
+ sensor_reset_or_hsir_ec=2
321
+ sensor_type=0
322
+ shift_s1s2_to_next_scan=false
323
+ sslope=0
324
+ sti_mode=4
325
+ sticnt=0
326
+ stime=1000
327
+ temp_level=0
328
+ timer_resolution_mode=0
329
+ tocnt=0
330
+ tor=0
331
+ trigger_mode_integrator=0
332
+ use_software_polling=false
333
+ vfreq=7
334
+ write_to_disc=false
335
+ xckdelay_in_10ns=0
336
+
337
+ [centralwidget]
338
+ geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x2\x9d\0\0\x1\xae\0\0\x5~\0\0\x4\x10\0\0\x2\x9d\0\0\x1\xcd\0\0\x5~\0\0\x4\x10\0\0\0\0\0\0\0\0\rp\0\0\x2\x9d\0\0\x1\xcd\0\0\x5~\0\0\x4\x10)
339
+ state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x2\xe2\0\0\x2\xe\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)
@@ -0,0 +1,46 @@
1
+ ## @file: simple_blocking_measurement.py
2
+ # @brief: This script shows how to a continuous measurement.
3
+ # @details:
4
+ # @author: Florian Hahn
5
+ # @date: 15.07.2025
6
+ # @copyright: Copyright (c) 2025, Entwicklungsbüro Stresing. Released as public domain under the Unlicense.
7
+
8
+ import stresing
9
+
10
+ def measure_start_hook():
11
+ print("Measurement started")
12
+
13
+ def measure_done_hook():
14
+ print("Measurement done")
15
+
16
+ def block_start_hook(block_index: int):
17
+ print("Block " + str(block_index) + " started")
18
+
19
+ def block_done_hook(block_index: int):
20
+ print("Block " + str(block_index) + " done")
21
+
22
+ def all_blocks_done_hook(measurement_number: int):
23
+ print("All blocks done. Measurement number: " + str(measurement_number))
24
+
25
+ # Initialize the driver.
26
+ number_of_boards = stresing.init_driver()
27
+ # Set all settings that are needed for the measurement in config.ini. The file config.ini is also compatible with the exported settings of Escam. Settings that are not found in the file, will be left as default. You can find a description of all settings here: https://entwicklungsburo-stresing.github.io/structmeasurement__settings.html
28
+ stresing.load_config_file("config.ini")
29
+ # Set all hooks
30
+ measure_started_ref = stresing.set_measure_start_hook(measure_start_hook)
31
+ measure_done_ref = stresing.set_measure_done_hook(measure_done_hook)
32
+ block_started_ref = stresing.set_block_start_hook(block_start_hook)
33
+ block_done_ref = stresing.set_block_done_hook(block_done_hook)
34
+ all_blocks_done_ref = stresing.set_all_blocks_done_hook(all_blocks_done_hook)
35
+ stresing.settings.contiuous_measurement = 1
36
+ # Initialize the measurement.
37
+ stresing.init_measurement()
38
+ # Start the measurement non blocking.
39
+ stresing.start_measurement_nonblocking()
40
+ # Wait for 10 seconds
41
+ import time
42
+ time.sleep(10)
43
+ # Stop the measurement.
44
+ stresing.abort_measurement()
45
+ # Exit the driver
46
+ stresing.exit_driver()
@@ -0,0 +1,40 @@
1
+ ## @file: simple_blocking_measurement.py
2
+ # @brief: This script shows how to use hooks.
3
+ # @details:
4
+ # @author: Florian Hahn
5
+ # @date: 14.07.2025
6
+ # @copyright: Copyright (c) 2025, Entwicklungsbüro Stresing. Released as public domain under the Unlicense.
7
+
8
+ import stresing
9
+
10
+ def measure_start_hook():
11
+ print("Measurement started")
12
+
13
+ def measure_done_hook():
14
+ print("Measurement done")
15
+
16
+ def block_start_hook(block_index: int):
17
+ print("Block " + str(block_index) + " started")
18
+
19
+ def block_done_hook(block_index: int):
20
+ print("Block " + str(block_index) + " done")
21
+
22
+ def all_blocks_done_hook(measurement_number: int):
23
+ print("All blocks done. Measurement number: " + str(measurement_number))
24
+
25
+ # Initialize the driver.
26
+ number_of_boards = stresing.init_driver()
27
+ # Set all settings that are needed for the measurement in config.ini. The file config.ini is also compatible with the exported settings of Escam. Settings that are not found in the file, will be left as default. You can find a description of all settings here: https://entwicklungsburo-stresing.github.io/structmeasurement__settings.html
28
+ stresing.load_config_file("config.ini")
29
+ # Set all hooks. It is important to save the returned references to prevent them from being garbage collected.
30
+ measure_started_ref = stresing.set_measure_start_hook(measure_start_hook)
31
+ measure_done_ref = stresing.set_measure_done_hook(measure_done_hook)
32
+ block_started_ref = stresing.set_block_start_hook(block_start_hook)
33
+ block_done_ref = stresing.set_block_done_hook(block_done_hook)
34
+ all_blocks_done_ref = stresing.set_all_blocks_done_hook(all_blocks_done_hook)
35
+ # Initialize the measurement.
36
+ stresing.init_measurement()
37
+ # Start the measurement. This is the blocking call, which means it will return when the measurement is finished. This is done to ensure that no data access happens before all data is collected.
38
+ stresing.start_measurement_blocking()
39
+ # Exit the driver
40
+ stresing.exit_driver()