Loading...
Searching...
No Matches
AisDCCurrentSweepElement Class Reference

this experiment performs a DC current sweep from the starting current to the ending current which progresses linearly according to the scan rate. More...

#include <AisDCCurrentSweepElement.h>

#include <AisDCCurrentSweepElement.h>

Public Member Functions

 AisDCCurrentSweepElement (double startCurrent, double endCurrent, double scanRate, double samplingInterval)
 the DC current sweep element.
 
 AisDCCurrentSweepElement (const AisDCCurrentSweepElement &)
 copy constructor for the AisDCCurrentSweepElement object.
 
AisDCCurrentSweepElementoperator= (const AisDCCurrentSweepElement &)
 overload equal to operator for the AisDCCurrentSweepElement object.
 
QString getName () const override
 get the name of the element.
 
QStringList getCategory () const override
 get a list of applicable categories of the element.
 
double getQuietTime () const
 Gets the quiet time duration.
 
void setQuietTime (double quietTime)
 Sets the quiet time duration.
 
double getQuietTimeSamplingInterval () const
 gets the quiet time sampling interval.
 
void setQuietTimeSamplingInterval (double quietTimeSamplingInterval)
 Sets the quiet time sampling interval.
 
double getStartingCurrent () const
 get the value set for the starting current.
 
void setStartingCurrent (double startingCurrent)
 set the value for the starting current.
 
double getEndingCurrent () const
 get the value set for the ending current.
 
void setEndingCurrent (double endingCurrent)
 set the value for the ending current.
 
double getScanRate () const
 get the value set for the scan rate.
 
void setScanRate (double scanRate)
 set the value for the current scan rate.
 
double getSamplingInterval () const
 get how frequently we are sampling the data.
 
void setSamplingInterval (double samplingInterval)
 set how frequently we are sampling the data.
 
double getMaxVoltage () const
 get the value set for the maximum voltage. The experiment will end when it reaches this value.
 
void setMaxVoltage (double maxVoltage)
 set a maximum voltage to stop the experiment.
 
double getMinVoltage () const
 get the value set minimum for the voltage in volts.
 
void setMinVoltage (double minVoltage)
 set a minimum voltage to stop the experiment.
 
double getAlphaFactor () const
 Get the value set for the alpha factor.
 
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.
 

Constructor & Destructor Documentation

◆ AisDCCurrentSweepElement()

AisDCCurrentSweepElement::AisDCCurrentSweepElement ( double startCurrent,
double endCurrent,
double scanRate,
double samplingInterval )
explicit
Parameters
startCurrentthe value for the starting current in Amps.
endCurrentthe value for the ending current in Amps.
scanRatethe value for the current scan rate in A/s.
samplingIntervalhow frequently we are sampling the data.

Member Function Documentation

◆ getAlphaFactor()

double AisDCCurrentSweepElement::getAlphaFactor ( ) const
Returns
The value for the alpha factor is represented as a percent between 0 and 100.
Note
If nothing is set, this function will return a default value of 75.

◆ getCategory()

QStringList AisDCCurrentSweepElement::getCategory ( ) const
override
Returns
A list of applicable categories: ("Galvanostatic Control", "Basic Voltammetry").

◆ getEndingCurrent()

double AisDCCurrentSweepElement::getEndingCurrent ( ) const
Returns
the value for the ending current in Amps.

◆ getMaxVoltage()

double AisDCCurrentSweepElement::getMaxVoltage ( ) const
Returns
the value set for the maximum voltage.
Note
this is an optional parameter. If no value has been set, the default value is positive infinity

◆ getMinVoltage()

double AisDCCurrentSweepElement::getMinVoltage ( ) const
Returns
the value set for the minimum voltage in volts.
Note
this is an optional parameter. If no value has been set, the default value is negative infinity

◆ getName()

QString AisDCCurrentSweepElement::getName ( ) const
override
Returns
The name of the element: "DC Current Linear Sweep".

◆ getQuietTime()

double AisDCCurrentSweepElement::getQuietTime ( ) const
Returns
The quiet time duration in seconds.

◆ getQuietTimeSamplingInterval()

double AisDCCurrentSweepElement::getQuietTimeSamplingInterval ( ) const
Returns
samplingInterval The quiet time sampling interval to set in seconds.

◆ getSamplingInterval()

double AisDCCurrentSweepElement::getSamplingInterval ( ) const
Returns
the data sampling interval value in seconds.

◆ getScanRate()

double AisDCCurrentSweepElement::getScanRate ( ) const
Returns
the value set for the scan rate in A/s.
See also
setScanRate

◆ getStartingCurrent()

double AisDCCurrentSweepElement::getStartingCurrent ( ) const
Returns
the value set for the constant current in Amps.

◆ setAlphaFactor()

void AisDCCurrentSweepElement::setAlphaFactor ( double alphaFactor)

This is an optional parameter. If nothing is set, the device will use the default value of 75.

Parameters
alphaFactorthe value for the alphaFactor ranges from 0 to 100.

◆ setEndingCurrent()

void AisDCCurrentSweepElement::setEndingCurrent ( double endingCurrent)
Parameters
endingCurrentthe value for the ending current in Amps

◆ setMaxVoltage()

void AisDCCurrentSweepElement::setMaxVoltage ( double maxVoltage)

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.

Parameters
maxVoltagethe maximum voltage value in volts at which the experiment will stop.

◆ setMinVoltage()

void AisDCCurrentSweepElement::setMinVoltage ( double minVoltage)

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.

Parameters
minVoltagethe minimum voltage value in volts at which the experiment will stop.

◆ setQuietTime()

void AisDCCurrentSweepElement::setQuietTime ( double quietTime)
Parameters
quietTimeThe quiet time duration to set in seconds.

◆ setQuietTimeSamplingInterval()

void AisDCCurrentSweepElement::setQuietTimeSamplingInterval ( double quietTimeSamplingInterval)
Parameters
quietTimeSamplingIntervalThe quiet time sampling interval to set in seconds.

◆ setSamplingInterval()

void AisDCCurrentSweepElement::setSamplingInterval ( double samplingInterval)
Parameters
samplingIntervalthe data sampling interval value in seconds.

◆ setScanRate()

void AisDCCurrentSweepElement::setScanRate ( double scanRate)

The scan rate represents the value of the discrete current step size in one second in the linear sweep.

Parameters
scanRatethe value to set for the scan rate.

◆ setStartingCurrent()

void AisDCCurrentSweepElement::setStartingCurrent ( double startingCurrent)
Parameters
startingCurrentthe value to set for the starting current in Amps

The documentation for this class was generated from the following file: