Squidstat API User Manual
|
an experiment that simulates a constant current flow with more advance options for stopping the experiment.
More...
#include <AisConstantCurrentElement.h>
Inherits AisAbstractElement.
Public Member Functions | |
AisConstantCurrentElement (double current, double samplingInterval, double duration) | |
the constant current element constructor. More... | |
AisConstantCurrentElement (const AisConstantCurrentElement &) | |
copy constructor for the AisConstantCurrentElement object. | |
AisConstantCurrentElement & | operator= (const AisConstantCurrentElement &) |
overload equal to operator for the AisConstantCurrentElement 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 | getCurrent () const |
get the value set for the current. More... | |
void | setCurrent (double current) |
set the value for the current. 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 | getMinSamplingVoltageDifference () const |
get the minimum sampling voltage difference for reporting the data. More... | |
void | setMinSamplingVoltageDifference (double minVoltageDifference) |
set a minimum sampling voltage difference for reporting the voltage. More... | |
double | getMaxVoltage () const |
get the value set for the maximum voltage. The experiment will end when it reaches this value. More... | |
void | setMaxVoltage (double maxVoltage) |
set a maximum voltage to stop the experiment. 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... | |
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... | |
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... | |
bool | isAutoVoltageRange () const |
tells whether the voltage range is set to auto-select or not. More... | |
void | setAutoVoltageRange () |
set to auto-select the voltage range. More... | |
double | getApproxMaxVoltage () const |
get the value set for the expected maximum voltage. More... | |
void | setApproxMaxVoltage (double approxMaxVoltage) |
set maximum voltage expected, for manual voltage range selection. More... | |
an experiment that simulates a constant current flow with more advance options for stopping the experiment.
|
explicit |
the constant current element constructor.
current | the value for the current in Amps. |
samplingInterval | the data sampling interval value in seconds. |
duration | the maximum duration for the experiment in seconds. |
double AisConstantCurrentElement::getApproxMaxCurrent | ( | ) | const |
get the value set for the expected maximum current.
double AisConstantCurrentElement::getApproxMaxVoltage | ( | ) | const |
get the value set for the expected maximum voltage.
|
override |
get a list of applicable categories of the element.
double AisConstantCurrentElement::getCurrent | ( | ) | const |
get the value set for the current.
double AisConstantCurrentElement::getMaxCapacity | ( | ) | const |
get the value set for the maximum capacity / cumulative charge.
double AisConstantCurrentElement::getMaxDuration | ( | ) | const |
get the maximum duration set for the experiment. The experiment will end when the duration of the experiment reaches this value.
double AisConstantCurrentElement::getMaxVoltage | ( | ) | const |
get the value set for the maximum voltage. The experiment will end when it reaches this value.
double AisConstantCurrentElement::getMinSamplingVoltageDifference | ( | ) | const |
get the minimum sampling voltage difference for reporting the data.
get the value set for the minimum sampling voltage difference.
double AisConstantCurrentElement::getMinVoltage | ( | ) | const |
get the value set minimum for the voltage in volts.
|
override |
get the name of the element.
double AisConstantCurrentElement::getSamplingInterval | ( | ) | const |
get how frequently we are sampling the data.
bool AisConstantCurrentElement::isAutoRange | ( | ) | const |
tells whether the current range is set to auto-select or not.
bool AisConstantCurrentElement::isAutoVoltageRange | ( | ) | const |
tells whether the voltage range is set to auto-select or not.
void AisConstantCurrentElement::setApproxMaxCurrent | ( | double | approxMaxCurrent | ) |
set maximum current expected, for manual current range selection.
This 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 AisConstantCurrentElement::setApproxMaxVoltage | ( | double | approxMaxVoltage | ) |
set maximum voltage expected, for manual voltage range selection.
This is an optional parameter. If nothing is set, the device will auto-select the voltage range.
approxMaxVoltage | the value for the maximum current expected in V. |
void AisConstantCurrentElement::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 AisConstantCurrentElement::setAutoVoltageRange | ( | ) |
set to auto-select the voltage 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 AisConstantCurrentElement::setCurrent | ( | double | current | ) |
set the value for the current.
current | the value for the current in Amps. |
void AisConstantCurrentElement::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 AisConstantCurrentElement::setMaxDuration | ( | double | maxDuration | ) |
set the maximum duration for the experiment.
The experiment will continue to run as long as the time passed is less than the value to set.
maxDuration | the maximum duration for the experiment in seconds. |
void AisConstantCurrentElement::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 below that value.
maxVoltage | the maximum voltage value in volts at which the experiment will stop. |
void AisConstantCurrentElement::setMinSamplingVoltageDifference | ( | double | minVoltageDifference | ) |
set a minimum sampling voltage difference for reporting the voltage.
This is an optional condition. If nothing is set, then the experiment will report the data at time sampling interval. When this is set, then the voltage is reported when there is a voltage difference of at least the given minimum sampling voltage difference. So, when one voltage data point is reported (at the minimum possible time sampling interval), the next data point is not reported unless the difference between the two voltage data points exceeds this given minimum sampling voltage difference value.
minVoltageDifference | the minimum sampling voltage difference value in volts. |
void AisConstantCurrentElement::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 AisConstantCurrentElement::setSamplingInterval | ( | double | samplingInterval | ) |
set how frequently we are sampling the data.
samplingInterval | the data sampling interval value in seconds. |