MyTooliT / ICOc

ICOc is a tool to control the ICOtronic system, acquire data, and test stationary transceiver units and sensory tool holders.
https://mytoolit.github.io/ICOc/
2 stars 0 forks source link

Plotter Time Axis Incorrect for Non-Default ADC Values #43

Open sanssecours opened 1 year ago

sanssecours commented 1 year ago

Description

Currently the time axis for the icoc plotter window shows an incorrect time interval if you change the ADC values.

Note: While the fixed time interval of 10 seconds:

https://github.com/MyTooliT/ICOc/blob/a8af82e7a37e8190e005069f10b8d57e3f3a84e6/mytoolit/old/cli.py#L50-L52

is even slightly incorrect when you use the default ADC value it should at least reflect the passage of time a little better.

Steps to Reproduce

Start the measurement with non-standard ADC values (e.g. with a oversampling rate of 512):

icoc -o 512 -n Test-STH

Note: Please replace Test-STH with the name of your STH

Expected Results

The plotter window should fill up with sensor data in about 10 seconds

Actual Result

It takes about 20 seconds until the graph is filled with sensor data values

Additional Information