fluidlab.objects.probes¶
Probes (fluidlab.objects.probes
)¶
Provides:
- class fluidlab.objects.probes.ConductivityProbe(board=None, channel=1, sample_rate=1000, has_to_config_board=True, VALVE=True)[source]¶
Represent a conductivity probe.
This is an example of modification.
- Parameters:
- board???
Object representing a board.
- channelnumber
The channel index.
- prepare_calibration(rho_min=1, rho_max=1.18, nb_solutions=6)[source]¶
Gives indications to prepare a calibration.
- calibrate(rhos, duration_1measure=4.0)[source]¶
Calibrates the probe.
- Parameters:
- rhosarray_like
The density \(\rho\) of the samples (in kg/l).
- duration_1measurenumber
The duration of one measurement (in s).
Notes
\(\rho(C)\) and \(U(C, T)\), where \(C\) the concentration, \(U\) the voltage and \(T\) the temperature.
- plot_calibrations(rhos=None, volts=None, rho_real=None)[source]¶
Plots the measurements of the saved calibrations.
- measure_volts(duration, sample_rate=None, return_time=False, verbose=False)[source]¶
Measure and return the times and voltages.
- Parameters:
- duration
(in s)
- class fluidlab.objects.probes.MovingConductivityProbe(board=None, channel=1, sample_rate=100, has_to_config_board=True, position_start=300.0, position_max=None, Deltaz=400.0)[source]¶
Represent a conductivity probe that can be deplaced by a traverse.
- Parameters:
- (for the __init__ method)
- board, optional
Acquisition board.
- channel{1, int}, optional
Indice of the channel in the acquisition board.
- sample_rate{100, number}, optional
Sample rate of the probe.
- has_to_config_board{True, bool}, optional
Has to configure the board.
- position_start{300., number}, optional
Position when created (in mm).
- position_max{None, number}, optional
???
- Deltaz{400, number}, optional
Distance between extremal points.
Classes
|
Represent a conductivity probe. |
|
Represent a conductivity probe that can be deplaced by a traverse. |