Squidstat API User Manual
|
This element/experiment simulates a constant resistance load.
More...
#include <AisConstantResistanceElement.h>
Inherits AisAbstractElement.
Public Member Functions | |
AisConstantResistanceElement (double resistance, double duration, double samplingInterval) | |
the constant resistance element constructor. More... | |
AisConstantResistanceElement (const AisConstantResistanceElement &) | |
copy constructor for the AisConstantResistanceElement object. | |
AisConstantResistanceElement & | operator= (const AisConstantResistanceElement &) |
overload equal to operator for the AisConstantResistanceElement 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 | getResistance () const |
get the value set for the resistance as a load. More... | |
void | setResistance (double resistance) |
set the value for the resistance as a load 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 | getMinVoltage () const |
get the value set minimum for the voltage in volts. More... | |
void | setMinVoltage (double minVoltage) |
set a minimum voltage to stop the experiment. More... | |
bool | isMinimumVoltageVsOCP () const |
tells whether the specified minimum voltage is set against the open-circuit voltage or the reference terminal. More... | |
void | setMinimumVoltageVsOCP (bool vsOCP) |
set whether to reference the specified minimum voltage against the open-circuit voltage or the reference terminal. More... | |
double | getMaxVoltage () const |
get the value set maximum for the voltage in volts. More... | |
void | setMaxVoltage (double maxVoltage) |
set a maximum voltage to stop the experiment. More... | |
bool | isMaximumVoltageVsOCP () const |
tells whether the specified maximum voltage is set against the open-circuit voltage or the reference terminal. More... | |
void | setMaximumVoltageVsOCP (bool vsOCP) |
set whether to reference the specified maximum voltage against the open-circuit voltage or the reference terminal. More... | |
double | getMaxCurrent () const |
get the value set maximum for the current in amps. More... | |
void | setMaxCurrent (double maxCurrent) |
set a maximum current to stop the experiment. More... | |
double | getMinCurrent () const |
get the value set minimum for the current in amps. More... | |
void | setMinCurrent (double maxCurrent) |
set a minimum current to stop the experiment. 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 | 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... | |
This element/experiment simulates a constant resistance load.
|
explicit |
the constant resistance element constructor.
resistance | the value in ohm of the load resistance |
duration | the maximum duration for the experiment in seconds. |
samplingInterval | the data sampling interval value in seconds. |
|
override |
get a list of applicable categories of the element.
double AisConstantResistanceElement::getMaxCapacity | ( | ) | const |
get the value set for the maximum capacity / cumulative charge.
double AisConstantResistanceElement::getMaxCurrent | ( | ) | const |
get the value set maximum for the current in amps.
double AisConstantResistanceElement::getMaxDuration | ( | ) | const |
get the maximum duration set for the experiment. The experiment will end when the duration of the experiment reaches this value.
double AisConstantResistanceElement::getMaxVoltage | ( | ) | const |
get the value set maximum for the voltage in volts.
double AisConstantResistanceElement::getMinCurrent | ( | ) | const |
get the value set minimum for the current in amps.
double AisConstantResistanceElement::getMinVoltage | ( | ) | const |
get the value set minimum for the voltage in volts.
|
override |
get the name of the element.
double AisConstantResistanceElement::getResistance | ( | ) | const |
get the value set for the resistance as a load.
double AisConstantResistanceElement::getSamplingInterval | ( | ) | const |
get how frequently we are sampling the data.
bool AisConstantResistanceElement::isMaximumVoltageVsOCP | ( | ) | const |
tells whether the specified maximum voltage is set against the open-circuit voltage or the reference terminal.
bool AisConstantResistanceElement::isMinimumVoltageVsOCP | ( | ) | const |
tells whether the specified minimum voltage is set against the open-circuit voltage or the reference terminal.
void AisConstantResistanceElement::setMaxCapacity | ( | double | maxCapacity | ) |
set the value for the maximum capacity / cumulative charge in Coulomb.
This 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 AisConstantResistanceElement::setMaxCurrent | ( | double | maxCurrent | ) |
set a maximum current to stop the experiment.
This is an optional condition. If nothing is set, then the experiment will not stop based on an uper-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.
maxCurrent | the maximum current value in amps at which the experiment will stop. |
void AisConstantResistanceElement::setMaxDuration | ( | double | maxDuration | ) |
set the maximum duration for the experiment.
The experiment will continue to run as long as the passed time is less than that the set duration value.
maxDuration | the maximum duration for the experiment in seconds. |
void AisConstantResistanceElement::setMaximumVoltageVsOCP | ( | bool | vsOCP | ) |
set whether to reference the specified maximum 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 maximum voltage to reference the open-circuit voltage and false to set against the reference terminal. |
void AisConstantResistanceElement::setMaxVoltage | ( | double | maxVoltage | ) |
set a maximum voltage to stop the experiment.
This is an optional condition. If nothing is set, then the experiment will not stop based on an upper-limit voltage value. If a maximum voltage is set, the experiment will continue to run as long as the measured voltage is above that value.
minVoltage | the maximum voltage value in volts at which the experiment will stop. |
void AisConstantResistanceElement::setMinCurrent | ( | double | maxCurrent | ) |
set a minimum current to stop the experiment.
This is an optional condition. If nothing is set, then the experiment will not stop based on an lower-limit Current value. If a minimum current is set, the experiment will continue to run as long as the measured current is below that value.
maxCurrent | the minimum current value in amps at which the experiment will stop. |
void AisConstantResistanceElement::setMinimumVoltageVsOCP | ( | bool | vsOCP | ) |
set whether to reference the specified minimum 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 minimum voltage to reference the open-circuit voltage and false to set against the reference terminal. |
void AisConstantResistanceElement::setMinVoltage | ( | double | minVoltage | ) |
set a minimum voltage to stop the experiment.
This is an optional condition. If nothing is set, then the experiment will not stop based on an lower-limit voltage value. If a maximum voltage is set, the experiment will continue to run as long as the measured voltage is above that value.
minVoltage | the minimum voltage value in volts at which the experiment will stop. |
void AisConstantResistanceElement::setResistance | ( | double | resistance | ) |
set the value for the resistance as a load
resistance | the value in ohm of the load resistance. |
void AisConstantResistanceElement::setSamplingInterval | ( | double | samplingInterval | ) |
set how frequently we are sampling the data.
samplingInterval | the data sampling interval value in seconds. |