Squidstat API User Manual
|
This experiment sweeps the potential of the working electrode back and forth between the first voltage-limit and the second voltage-limit at a constant scan rate (dE/dt) for a specified number of cycles. More...
#include <AisCyclicVoltammetryElement.h>
Inherits AisAbstractElement.
Public Member Functions | |
AisCyclicVoltammetryElement (double startVoltage, double firstVoltageLimit, double secondVoltageLimit, double endVoltage, double dEdt, double samplingInterval) | |
constructor of the cyclic voltammetry element. More... | |
AisCyclicVoltammetryElement (const AisCyclicVoltammetryElement &) | |
copy constructor for the AisCyclicVoltammetryElement object. | |
AisCyclicVoltammetryElement & | operator= (const AisCyclicVoltammetryElement &) |
overload equal to operator for the AisCyclicVoltammetryElement 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 potential sampling interval. More... | |
void | setQuietTimeSamplingInterval (double quietTimeSamplingInterval) |
Sets the quiet time sampling interval. More... | |
double | getStartVoltage () const |
get the value set for the start voltage More... | |
void | setStartVoltage (double startVoltage) |
set the value for the start voltage. More... | |
bool | isStartVoltageVsOCP () const |
tells whether the start voltage is set with respect to the open circuit voltage or not. More... | |
void | setStartVoltageVsOCP (bool startVoltageVsOCP) |
set whether to reference the start voltage against the open-circuit voltage or the reference terminal. More... | |
double | getFirstVoltageLimit () const |
get the value set for the first voltage-limit. More... | |
void | setFirstVoltageLimit (double v1) |
set the first voltage-limit More... | |
bool | isFirstVoltageLimitVsOCP () const |
tells whether the first voltage-limit is set with respect to the open circuit voltage or not. More... | |
void | setFirstVoltageLimitVsOCP (bool firstVoltageLimitVsOCP) |
set whether to reference the first voltage-limit against the open-circuit voltage or not. More... | |
double | getSecondVoltageLimit () const |
get the value set for the second voltage-limit More... | |
void | setSecondVoltageLimit (double v2) |
set the second voltage-limit More... | |
bool | isSecondVoltageLimitVsOCP () const |
tells whether the second voltage-limit is set with respect to the open circuit voltage or not. More... | |
void | setSecondVoltageLimitVsOCP (bool secondVoltageLimitVsOCP) |
set whether to reference the second voltage-limit against the open-circuit voltage or not. More... | |
unsigned int | getNumberOfCycles () |
get the value set for the number of cycles More... | |
void | setNumberOfCycles (unsigned int cycles) |
set the number of cycles to oscillate between the first voltage-limit and the second voltage-limit. More... | |
double | getEndVoltage () const |
get the value set for the ending potential value. More... | |
void | setEndVoltage (double endVoltage) |
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 | getdEdt () const |
get the value set for the constant scan rate dE/dt. More... | |
void | setdEdt (double dEdt) |
set the value for the constant scan rate dE/dt. More... | |
double | getSamplingInterval () const |
get how frequently we are sampling the data. More... | |
void | setSamplingInterval (double sampInterval) |
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 | 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 sweeps the potential of the working electrode back and forth between the first voltage-limit and the second voltage-limit at a constant scan rate (dE/dt) for a specified number of cycles.
The scan will always start from the start voltage towards the first voltage-limit. The experiment will continue to cycle between the first voltage-limit and the second voltage-limit according to the number of cycles. The cycling scheme is as follow: start voltage → [first voltage-limit → first voltage-limit]n → Ending potential, where “n” is number of cycles.
|
explicit |
constructor of the cyclic voltammetry element.
startVoltage | the value of the start voltage in volts |
firstVoltageLimit | the value of the first voltage-limit in volts |
secondVoltageLimit | the value of the second voltage-limit in volts |
endVoltage | the value of the end voltage in volts |
dEdt | the constant scan rate dE/dt in V/s. |
samplingInterval | the data sampling interval value in seconds. |
double AisCyclicVoltammetryElement::getAlphaFactor | ( | ) | const |
Get the value set for the alpha factor.
double AisCyclicVoltammetryElement::getApproxMaxCurrent | ( | ) | const |
get the value set for the expected maximum current.
|
override |
get a list of applicable categories of the element.
double AisCyclicVoltammetryElement::getdEdt | ( | ) | const |
get the value set for the constant scan rate dE/dt.
double AisCyclicVoltammetryElement::getEndVoltage | ( | ) | const |
get the value set for the ending potential value.
This is the value of the voltage at which the experiment will stop. After the last cycle, the experiment will do one last sweep towards this value.
double AisCyclicVoltammetryElement::getFirstVoltageLimit | ( | ) | const |
get the value set for the first voltage-limit.
After the starting voltage, the scan will go to the first voltage-limit. This could result in either upward scan first if the first voltage-limit is higher than the start voltage or downward scan first if the first voltage-limit is lower than the start voltage.
|
override |
get the name of the element.
unsigned int AisCyclicVoltammetryElement::getNumberOfCycles | ( | ) |
get the value set for the number of cycles
double AisCyclicVoltammetryElement::getQuietTime | ( | ) | const |
Gets the quiet time duration.
double AisCyclicVoltammetryElement::getQuietTimeSamplingInterval | ( | ) | const |
gets the potential sampling interval.
double AisCyclicVoltammetryElement::getSamplingInterval | ( | ) | const |
get how frequently we are sampling the data.
double AisCyclicVoltammetryElement::getSecondVoltageLimit | ( | ) | const |
get the value set for the second voltage-limit
After starting from the start-voltage and reaching the first voltage-limit, the scan will go to the second voltage limit. The scan will continue to oscillate between the first and second voltage-limits according to the number of cycles.
double AisCyclicVoltammetryElement::getStartVoltage | ( | ) | const |
get the value set for the start voltage
bool AisCyclicVoltammetryElement::isAutoRange | ( | ) | const |
tells whether the current range is set to auto-select or not.
bool AisCyclicVoltammetryElement::isEndVoltageVsOCP | ( | ) | const |
tells whether the end voltage is set with respect to the open circuit voltage or the reference terminal.
bool AisCyclicVoltammetryElement::isFirstVoltageLimitVsOCP | ( | ) | const |
tells whether the first voltage-limit is set with respect to the open circuit voltage or not.
bool AisCyclicVoltammetryElement::isSecondVoltageLimitVsOCP | ( | ) | const |
tells whether the second voltage-limit is set with respect to the open circuit voltage or not.
bool AisCyclicVoltammetryElement::isStartVoltageVsOCP | ( | ) | const |
tells whether the start voltage is set with respect to the open circuit voltage or not.
void AisCyclicVoltammetryElement::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 AisCyclicVoltammetryElement::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 AisCyclicVoltammetryElement::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 AisCyclicVoltammetryElement::setdEdt | ( | double | dEdt | ) |
set the value for the constant scan rate dE/dt.
dEdt | the value set for the constant scan rate dE/dt in V/s. |
void AisCyclicVoltammetryElement::setEndVoltage | ( | double | endVoltage | ) |
set the ending potential value.
This is the value of the voltage at which the experiment will stop. After the last cycle, the experiment will do one last sweep towards this value.
endVoltage | the value to set for the ending potential in volts. |
void AisCyclicVoltammetryElement::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 AisCyclicVoltammetryElement::setFirstVoltageLimit | ( | double | v1 | ) |
set the first voltage-limit
After the starting voltage, the scan will go to the first voltage-limit. This could result in either upward scan first if the first voltage-limit is higher than the start voltage or downward scan first if the first voltage-limit is lower than the start voltage.
v1 | first voltage-limit value in volts |
void AisCyclicVoltammetryElement::setFirstVoltageLimitVsOCP | ( | bool | firstVoltageLimitVsOCP | ) |
set whether to reference the first voltage-limit against the open-circuit voltage or not.
The reference terminal is for you to connect to any reference point you like. Connect it to the working electrode to reference ground.
firstVoltageLimitVsOCP | true to set the upper voltage to be referenced against the open-circuit voltage and false otherwise. |
void AisCyclicVoltammetryElement::setNumberOfCycles | ( | unsigned int | cycles | ) |
set the number of cycles to oscillate between the first voltage-limit and the second voltage-limit.
cycles | the number of cycles to set |
void AisCyclicVoltammetryElement::setQuietTime | ( | double | quietTime | ) |
Sets the quiet time duration.
quietTime | The quiet time duration to set in seconds. |
void AisCyclicVoltammetryElement::setQuietTimeSamplingInterval | ( | double | quietTimeSamplingInterval | ) |
Sets the quiet time sampling interval.
quietTimeSamplingInterval | The quiet time sampling interval to set in seconds. |
void AisCyclicVoltammetryElement::setSamplingInterval | ( | double | sampInterval | ) |
set how frequently we are sampling the data.
sampInterval | the data sampling interval value in seconds. |
void AisCyclicVoltammetryElement::setSecondVoltageLimit | ( | double | v2 | ) |
set the second voltage-limit
After starting from the start-voltage and reaching the first voltage-limit, the scan will go to the second voltage limit. The scan will continue to oscillate between the first and second voltage-limits according to the number of cycles.
v2 | the second voltage-limit value in volts |
void AisCyclicVoltammetryElement::setSecondVoltageLimitVsOCP | ( | bool | secondVoltageLimitVsOCP | ) |
set whether to reference the second voltage-limit against the open-circuit voltage or not.
The reference terminal is for you to connect to any reference point you like. Connect it to the working electrode to reference ground.
secondVoltageLimitVsOCP | true to set the second voltage-limit to be referenced against the open-circuit voltage and false otherwise. |
void AisCyclicVoltammetryElement::setStartVoltage | ( | double | startVoltage | ) |
set the value for the start voltage.
startVoltage | the value of the start voltage in volts |
void AisCyclicVoltammetryElement::setStartVoltageVsOCP | ( | bool | startVoltageVsOCP | ) |
set whether to reference the start 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.
startVoltageVsOCP | true to if the start voltage is set to reference the open-circuit voltage and false if set against the reference terminal. |