fluidlab.objects.mscti_probes

Probes (fluidlab.objects.mscti_probes)

class fluidlab.objects.mscti_probes.MSCTIProbe(channels=['Dev1/ai1', 'Dev1/ai2'], sample_rate=100, Vmin=-5, Vmax=5, mode='Diff', files_calib=None)[source]

Represent a MSCTI conductivity (+ temperature) probe.

Parameters:
set_sample_rate(sample_rate)[source]

Sets the sample rate.

set_mode(mode)[source]

Sets the mode.

set_Vmin(Vmin)[source]

Sets Vmin.

set_Vmax(Vmax)[source]

Sets Vmin.

set_files_calib(files_calib)[source]

Sets the file calib.

measure_volts(duration, path_save=None, sample_rate=None, return_time=True, verbose=False)[source]

Measure and return the times and voltages.

Parameters:
duration

(in s)

save_volts(path, times, volts)[source]
measure_density()[source]
profile_by_hand(file_profile, z, duration=2)[source]
save_profile_by_hand(file_profile, z, volts)[source]

Saves the results of a calibration.

load_profile(file_profile)[source]

Loads the data from the previous profile.

plot_profile(file_profile, z=None, voltrho=None)[source]

Plots the measurements of the save profile.

plot_profiles(file_profiles)[source]
fit_profile(z, rho)[source]

Creates a function from data.

prepare_calibration(rho_min=1, rho_max=1.18, nb_solutions=6)[source]

Gives indications to prepare a calibration.

calibrate(rho, T, duration=2.0)[source]

Calibrates the probe.

Parameters:
rho

The density \(\rho\) of the sample (in kg/l)).

T

Temperature in C

durationnumber

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.

calibrate_temperature(rho, T, duration=2.0)[source]

Calibrates the temperature probe.

Parameters:
rho

The density \(\rho\) of the sample (in kg/l).

T

Temperature in C

durationnumber

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.

save_calibration(rho, T, volts, kind_of_calib)[source]

Saves the results of a calibration.

load_calibration(kind_of_calib)[source]

Loads the data from the previous calibrations.

plot_calibration(rho=None, voltrho=None)[source]

Plots the measurements of the saved calibrations for rho.

plot_calibration_T(T=None, voltT=None)[source]

Plots the measurements of the saved calibrations for T.

fit_rho_vs_voltrho(rho, voltrho)[source]

Creates a function from data.

T_from_voltT(voltT)[source]
fit_T_vs_voltT(T, voltT)[source]

Creates a function from data.

Functions

load_calibration(path)

Loads the data from the previous calibrations.

Classes

MSCTIProbe([channels, sample_rate, Vmin, ...])

Represent a MSCTI conductivity (+ temperature) probe.