Squidstat API User Manual
|
this experiment performs a DC potential sweep from the starting current to the ending current which progresses linearly according to the scan rate. More...
#include <AisDCPotentialSweepElement.h>
Inherits AisAbstractElement.
Public Member Functions | |
AisDCPotentialSweepElement (double startPotential, double endPotential, double scanRate, double samplingInterval) | |
the potential sweep element constructor. More... | |
AisDCPotentialSweepElement (const AisDCPotentialSweepElement &) | |
copy constructor for the AisDCPotentialSweepElement object. | |
AisDCPotentialSweepElement & | operator= (const AisDCPotentialSweepElement &) |
overload equal to operator for the AisDCPotentialSweepElement 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 | getQuietTime () const |
Gets the quiet time duration. More... | |
void | setQuietTime (double quietTime) |
Sets the quiet time duration. More... | |
double | getQuietTimeSamplingInterval () const |
gets the quiet time sampling interval. More... | |
void | setQuietTimeSamplingInterval (double quietTimeSamplingInterval) |
Sets the quiet time sampling interval. More... | |
double | getStartingPot () const |
get the value set for the starting potential. More... | |
void | setStartingPot (double startingPotential) |
set the value for the starting potential. More... | |
bool | isStartVoltageVsOCP () const |
tells whether the starting potential is set against the open-circuit voltage or the reference terminal. More... | |
void | setStartVoltageVsOCP (bool startVoltageVsOCP) |
set whether to reference the starting potential against the open-circuit voltage or the reference terminal. More... | |
double | getEndingPot () const |
get the value set for the ending potential value. More... | |
void | setEndingPot (double endingPotential) |
set the ending potential value. More... | |
bool | isEndVoltageVsOCP () const |
tells whether the end voltage is set with respect to the open circuit voltage or the reference terminal. More... | |
void | setEndVoltageVsOCP (bool endVoltageVsOCP) |
set whether to reference the end voltage against the open-circuit voltage or the reference terminal. More... | |
double | getScanRate () const |
get the value set for the voltage scan rate. More... | |
void | setScanRate (double scanRate) |
set the value for the voltage scan rate. 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... | |
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... | |
double | getMaxAbsoluteCurrent () const |
get the value set for the maximum Current. The experiment will end when it reaches this value. More... | |
void | setMaxAbsoluteCurrent (double maxCurrent) |
set a maximum Current to stop the experiment. More... | |
double | getMinAbsoluteCurrent () const |
get the value set minimum for the Current in amps. More... | |
void | setMinAbsoluteCurrent (double minCurrent) |
set a minimum Current to stop the experiment. More... | |
double | getAlphaFactor () const |
Get the value set for the alpha factor. More... | |
void | setAlphaFactor (double alphaFactor) |
alpha factor controls the percentage of data sampled during a given interval. Data will be averaged over the last n% of the sampling interval. More... | |
this experiment performs a DC potential sweep from the starting current to the ending current which progresses linearly according to the scan rate.
|
explicit |
the potential sweep element constructor.
startPotential | the value of the starting potential in volts |
endPotential | the value of the ending potential in volts |
scanRate | the voltage scan rate in V/s |
samplingInterval | how frequently we are sampling the data. |
double AisDCPotentialSweepElement::getAlphaFactor | ( | ) | const |
Get the value set for the alpha factor.
double AisDCPotentialSweepElement::getApproxMaxCurrent | ( | ) | const |
get the value set for the expected maximum current.
|
override |
get a list of applicable categories of the element.
double AisDCPotentialSweepElement::getEndingPot | ( | ) | const |
get the value set for the ending potential value.
This is the value of the voltage at which the experiment will stop.
double AisDCPotentialSweepElement::getMaxAbsoluteCurrent | ( | ) | const |
get the value set for the maximum Current. The experiment will end when it reaches this value.
double AisDCPotentialSweepElement::getMinAbsoluteCurrent | ( | ) | const |
get the value set minimum for the Current in amps.
|
override |
get the name of the element.
double AisDCPotentialSweepElement::getQuietTime | ( | ) | const |
Gets the quiet time duration.
double AisDCPotentialSweepElement::getQuietTimeSamplingInterval | ( | ) | const |
gets the quiet time sampling interval.
double AisDCPotentialSweepElement::getSamplingInterval | ( | ) | const |
get how frequently we are sampling the data.
double AisDCPotentialSweepElement::getScanRate | ( | ) | const |
get the value set for the voltage scan rate.
double AisDCPotentialSweepElement::getStartingPot | ( | ) | const |
get the value set for the starting potential.
bool AisDCPotentialSweepElement::isAutoRange | ( | ) | const |
tells whether the current range is set to auto-select or not.
bool AisDCPotentialSweepElement::isEndVoltageVsOCP | ( | ) | const |
tells whether the end voltage is set with respect to the open circuit voltage or the reference terminal.
bool AisDCPotentialSweepElement::isStartVoltageVsOCP | ( | ) | const |
tells whether the starting potential is set against the open-circuit voltage or the reference terminal.
void AisDCPotentialSweepElement::setAlphaFactor | ( | double | alphaFactor | ) |
alpha factor controls the percentage of data sampled during a given interval. Data will be averaged over the last n% of the sampling interval.
This is an optional parameter. If nothing is set, the device will use the default value of 75.
alphaFactor | the value for the alphaFactor ranges from 0 to 100. |
void AisDCPotentialSweepElement::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 AisDCPotentialSweepElement::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 AisDCPotentialSweepElement::setEndingPot | ( | double | endingPotential | ) |
set the ending potential value.
This is the value of the voltage at which the experiment will stop.
endingPotential | the value to set for the ending potential in volts. |
void AisDCPotentialSweepElement::setEndVoltageVsOCP | ( | bool | endVoltageVsOCP | ) |
set whether to reference the end 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.
endVoltageVsOCP | true to set the end voltage to be referenced against the open-circuit voltage and false if set against the reference terminal. |
void AisDCPotentialSweepElement::setMaxAbsoluteCurrent | ( | 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 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 with the harware current limitation.
maxCurrent | the maximum Current value in volts at which the experiment will stop. |
void AisDCPotentialSweepElement::setMinAbsoluteCurrent | ( | double | minCurrent | ) |
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 maximum Current is set, the experiment will continue to run as long as the measured voltage is above that value.
minCurrent | the minimum Current value in volts at which the experiment will stop. |
void AisDCPotentialSweepElement::setQuietTime | ( | double | quietTime | ) |
Sets the quiet time duration.
quietTime | The quiet time duration to set in seconds. |
void AisDCPotentialSweepElement::setQuietTimeSamplingInterval | ( | double | quietTimeSamplingInterval | ) |
Sets the quiet time sampling interval.
quietTimeSamplingInterval | The quiet time sampling interval to set in seconds. |
void AisDCPotentialSweepElement::setSamplingInterval | ( | double | samplingInterval | ) |
set how frequently we are sampling the data.
samplingInterval | the data sampling interval value in seconds. |
void AisDCPotentialSweepElement::setScanRate | ( | double | scanRate | ) |
set the value for the voltage scan rate.
The scan rate represents the value of the discrete voltage step size in one second in the linear sweep.
scanRate | the value to set for the scan rate. |
void AisDCPotentialSweepElement::setStartingPot | ( | double | startingPotential | ) |
set the value for the starting potential.
startingPotential | the value of the starting potential in volts |
void AisDCPotentialSweepElement::setStartVoltageVsOCP | ( | bool | startVoltageVsOCP | ) |
set whether to reference the starting potential 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.
startVoltageVsOCP | true to if the starting potential is set to reference the open-circuit voltage and false if set against the reference terminal. |