Skip to content

Commit 4b95d59

Browse files
committed
Modified slow log sampling
1 parent df7a75a commit 4b95d59

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

application_specific_examples/making_transient_dual_interface_measurement/digitizer_log_sampling_demo.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,22 @@ def receive_user_input_and_log():
166166
for dd in digitizer_data:
167167
if sampling_mode_string == slow_sampling_string:
168168
# log time scale
169-
if i > 0 and i <=99:
170-
Time_us = Time_us + 1000
171-
elif i > 99 and i <= 189:
172-
Time_us = Time_us + 10000
173-
elif i > 189 and i <= 279:
174-
Time_us = Time_us + 100000
175-
elif i > 279 and i <= 369:
176-
Time_us = Time_us + 1000000
177-
elif i > 369 and i <= 459:
178-
Time_us = Time_us + 10000000
169+
if i > 0 and i <=49:
170+
Time_us = Time_us + 2
171+
elif i > 49 and i <= 139:
172+
Time_us = Time_us + 10
173+
elif i > 139 and i <= 229:
174+
Time_us = Time_us + 100
175+
elif i > 229 and i <= 319:
176+
Time_us = Time_us + 1000
177+
elif i > 319 and i <= 364:
178+
Time_us = Time_us + 20000
179+
elif i > 364 and i <= 409:
180+
Time_us = Time_us + 200000
181+
elif i > 409 and i <= 454:
182+
Time_us = Time_us + 2000000
183+
elif i > 454 and i <= 500:
184+
Time_us = Time_us + 20000000
179185
elif sampling_mode_string == medium_sampling_string:
180186
if i > 0 and i <=49:
181187
Time_us = Time_us + 2

0 commit comments

Comments
 (0)