Closed chemyibinjiang closed 2 years ago
The time_interval
and voltage_interval
both define the maximum change the respective values can take before the Biologic records data, and a mesurement is taken whenever one of the thresholds is exceeded. So, when you set the voltage_interval
to be small many more readings will be taken as that threshold is surpassed more often. Thus, you should also set the data_interval
in the _run
function to be small in this case so data is read out more quickly and the memory of the Biologic is not filled.
This is an additional issue to the problem discussed before. (https://github.com/bicarlsen/easy-biologic/issues/6) When running the CP, we can define the reading of data via either
time_interval
orvoltage_interval
. In the case wherevoltage_interval
is large (e.g., set as 1), the read-out purely depends ontime_interval
and by settingdata_interval
in the_run
function to be a small value (e.g., set as 0.0001), it works fine. However, if thevoltage_interval
is decreased to the default value (0.001), it can not record the complete data. The same problem exists for CA, whencurrent_interval
is small.If the params are changed to
params = {'currents': [1e-05, 2e-05],'durations': [0.001, 0.001], 'vs_initial': False,'time_interval': 0.0002, 'N_Cycles': 80000,'voltage_interval': 0.001}
, by running the program, the data become:In both cases, the control time of potentialstat is the same and normal.