Squidstat API User Manual
|
an experiment that simulates a constant applied voltage.
More...
#include <AisConstantPotElement.h>
Inherits AisAbstractElement.
Public Member Functions | |
AisConstantPotElement (double voltage, double samplingInterval, double duration) | |
the constant potential element constructor. More... | |
AisConstantPotElement (const AisConstantPotElement &) | |
copy constructor for the AisConstantPotElement object. | |
AisConstantPotElement & | operator= (const AisConstantPotElement &) |
overload equal to operator for the AisConstantPotElement object. | |
QString | getName () const override |
get the name of the element. More... | |
QStringList | getCategory () const override |
get a list of applicable categories of the element. More... | |
double | getPotential () const |
get the value set for the potential in volts. More... | |
void | setPotential (double potential) |
set the value for the potential in volts. More... | |
bool | isVoltageVsOCP () const |
tells whether the specified voltage is set against the open-circuit voltage or the reference terminal. More... | |
void | setVoltageVsOCP (bool vsOCP) |
set whether to reference the specified voltage against the open-circuit voltage or the reference terminal. More... | |
double | getSamplingInterval () const |
get how frequently we are sampling the data. More... | |
void | setSamplingInterval (double samplingInterval) |
set how frequently we are sampling the data. More... | |
double | getMaxDuration () const |
get the maximum duration set for the experiment. The experiment will end when the duration of the experiment reaches this value. More... | |
void | setMaxDuration (double maxDuration) |
set the maximum duration for the experiment. More... | |
double | getMaxCurrent () const |
get the maximum value set for the absolute current in Amps. The experiment will end when the absolute current reaches this value. More... | |
void | setMaxCurrent (double maxCurrent) |
set the maximum value for the absolute current in Amps. More... | |
double | getMinCurrent () const |
get the minimum value set for the absolute current in Amps. The experiment will end when the absolute current falls down to this value. More... | |
void | setMinCurrent (double minCurrent) |
set the minimum value for the absolute current in Amps. More... | |
double | getMaxCapacity () const |
get the value set for the maximum capacity / cumulative charge. More... | |
void | setMaxCapacity (double maxCapacity) |
set the value for the maximum capacity / cumulative charge in Coulomb. More... | |
double | getMindIdt () const |
get the value set for the minimum current rate of change with respect to time (minimum di/dt). More... | |
void | setMindIdt (double mindIdt) |
set the minimum value for the current rate of change with respect to time (minimum di/dt). More... | |
bool | isAutoRange () const |
tells whether the current range is set to auto-select or not. More... | |
void | setAutoRange () |
set to auto-select the current range. More... | |
double | getApproxMaxCurrent () const |
get the value set for the expected maximum current. More... | |
void | setApproxMaxCurrent (double approxMaxCurrent) |
set maximum current expected, for manual current range selection. More... | |
int | getVoltageRange () const |
get the value set for the voltage range. More... | |
void | setVoltageRange (int idx) |
manually set the voltage control range. More... | |
an experiment that simulates a constant applied voltage.
|
explicit |
the constant potential element constructor.
voltage | the value set for the voltage/potential in volts. |
samplingInterval | the data sampling interval value in seconds. |
duration | the maximum duration for the experiment in seconds. |
double AisConstantPotElement::getApproxMaxCurrent | ( | ) | const |
get the value set for the expected maximum current.
|
override |
get a list of applicable categories of the element.
double AisConstantPotElement::getMaxCapacity | ( | ) | const |
get the value set for the maximum capacity / cumulative charge.
double AisConstantPotElement::getMaxCurrent | ( | ) | const |
get the maximum value set for the absolute current in Amps. The experiment will end when the absolute current reaches this value.
double AisConstantPotElement::getMaxDuration | ( | ) | const |
get the maximum duration set for the experiment. The experiment will end when the duration of the experiment reaches this value.
double AisConstantPotElement::getMinCurrent | ( | ) | const |
get the minimum value set for the absolute current in Amps. The experiment will end when the absolute current falls down to this value.
double AisConstantPotElement::getMindIdt | ( | ) | const |
get the value set for the minimum current rate of change with respect to time (minimum di/dt).
|
override |
get the name of the element.
double AisConstantPotElement::getPotential | ( | ) | const |
get the value set for the potential in volts.
double AisConstantPotElement::getSamplingInterval | ( | ) | const |
get how frequently we are sampling the data.
int AisConstantPotElement::getVoltageRange | ( | ) | const |
get the value set for the voltage range.
bool AisConstantPotElement::isAutoRange | ( | ) | const |
tells whether the current range is set to auto-select or not.
bool AisConstantPotElement::isVoltageVsOCP | ( | ) | const |
tells whether the specified voltage is set against the open-circuit voltage or the reference terminal.
void AisConstantPotElement::setApproxMaxCurrent | ( | double | approxMaxCurrent | ) |
set maximum current expected, for manual current range selection.
The is an optional parameter. If nothing is set, the device will auto-select the current range.
approxMaxCurrent | the value for the maximum current expected in Amps. |
void AisConstantPotElement::setAutoRange | ( | ) |
set to auto-select the current range.
This option is set by default. There is no need to call this function to auto-select if the range was not manually set.
void AisConstantPotElement::setMaxCapacity | ( | double | maxCapacity | ) |
set the value for the maximum capacity / cumulative charge in Coulomb.
The is an optional condition. If nothing is set, then the experiment will not stop based on an upper-limit cumulative charge value. If a maximum capacity is set, the experiment will continue to run as long as the cumulative charge is below that value.
maxCapacity | the value to set for the cell maximum capacity. |
void AisConstantPotElement::setMaxCurrent | ( | double | maxCurrent | ) |
set the maximum value for the absolute current in Amps.
The is an optional condition. If nothing is set, then the experiment will not stop based on an upper-limit current value. If a maximum current is set, the experiment will continue to run as long as the measured current is below that value.
maxCurrent | the maximum current value in Amps. |
void AisConstantPotElement::setMaxDuration | ( | double | maxDuration | ) |
set the maximum duration for the experiment.
The is an optional condition. If nothing is set, then the experiment will not stop based on an duration. If a maximum duration is set, the experiment will continue to run as long as the passed time is less than that value.
maxDuration | the maximum duration for the experiment in seconds. |
void AisConstantPotElement::setMinCurrent | ( | double | minCurrent | ) |
set the minimum value for the absolute current in Amps.
The is an optional condition. If nothing is set, then the experiment will not stop based on an lower-limit current value. If a maximum current is set, the experiment will continue to run as long as the measured current is above that value.
minCurrent | the value to set for the absolute minimum current. |
void AisConstantPotElement::setMindIdt | ( | double | mindIdt | ) |
set the minimum value for the current rate of change with respect to time (minimum di/dt).
The is an optional condition. If nothing is set, then the experiment will not stop based on an lower-limit rate of change value. If a minimum value is set, the experiment will continue to run as long as the rage of change is above that value.
mindIdt | the minimum value for the current rate of change with respect to time (minimum di/dt). |
void AisConstantPotElement::setPotential | ( | double | potential | ) |
set the value for the potential in volts.
potential | the value to set for the potential in volts. |
void AisConstantPotElement::setSamplingInterval | ( | double | samplingInterval | ) |
set how frequently we are sampling the data.
samplingInterval | the data sampling interval value in seconds. |
void AisConstantPotElement::setVoltageRange | ( | int | idx | ) |
manually set the voltage control range.
This is an optional parameter. If this function is not called, the device will auto-select the voltage range by default.
idx | the corresponding voltage range index (see AisInstrumentHandler::getManualModeVoltageRangeList()) |
void AisConstantPotElement::setVoltageVsOCP | ( | bool | vsOCP | ) |
set whether to reference the specified voltage against the open-circuit voltage or the reference terminal.
The reference terminal is for you to connect to any reference point you like. Connect it to the working electrode to reference ground.
vsOCP | true to set the specified voltage to reference the open-circuit voltage and false to set against the reference terminal. |