Squidstat API User Manual
Loading...
Searching...
No Matches
AisOpenCircuitElement Class Referencefinal

This experiment observes the open circuit potential of the working electrode for a specific period of time.
More...

#include <AisOpenCircuitElement.h>

Inherits AisAbstractElement.

Public Member Functions

 AisOpenCircuitElement (double duration, double samplingInterval)
 the open-circuit element constructor. More...
 
 AisOpenCircuitElement (const AisOpenCircuitElement &)
 copy constructor for the AisOpenCircuitElement object.
 
AisOpenCircuitElementoperator= (const AisOpenCircuitElement &)
 overload equal to operator for the AisOpenCircuitElement 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 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 getMaxDuration () const
 get the value set for the duration of the experiment. More...
 
void setMaxDuration (double maxDuration)
 set the value set for the duration of the experiment. 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 getMindVdt () const
 get the value set for the minimum voltage rate of change with respect to time (minimum dV/dt). More...
 
void setMindVdt (double mindVdt)
 set the minimum value for the voltage rate of change with respect to time (minimum dV/dt). 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...
 

Detailed Description

This experiment observes the open circuit potential of the working electrode for a specific period of time.

Constructor & Destructor Documentation

◆ AisOpenCircuitElement()

AisOpenCircuitElement::AisOpenCircuitElement ( double  duration,
double  samplingInterval 
)
explicit

the open-circuit element constructor.

Parameters
durationthe maximum duration for the experiment in seconds.
samplingIntervalthe data sampling interval value in seconds.

Member Function Documentation

◆ getApproxMaxVoltage()

double AisOpenCircuitElement::getApproxMaxVoltage ( ) const

get the value set for the expected maximum voltage.

Returns
the value set for the expected maximum Voltage in volt.
Note
if nothing was manually set, the device will auto-select the voltage range and the return value will be positive infinity.

◆ getCategory()

QStringList AisOpenCircuitElement::getCategory ( ) const
override

get a list of applicable categories of the element.

Returns
A list of applicable categories: ("Basic Experiments").

◆ getMaxDuration()

double AisOpenCircuitElement::getMaxDuration ( ) const

get the value set for the duration of the experiment.

Returns
the value set for the duration of the experiment in seconds.

◆ getMaxVoltage()

double AisOpenCircuitElement::getMaxVoltage ( ) const

get the value set for the maximum voltage. The experiment will end when it reaches this value.

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.

◆ getMindVdt()

double AisOpenCircuitElement::getMindVdt ( ) const

get the value set for the minimum voltage rate of change with respect to time (minimum dV/dt).

Returns
the value set for the minimum voltage rate of change with respect to time (minimum dV/dt).
Note
this is an optional parameter. If no value has been set, the default value is zero

◆ getMinVoltage()

double AisOpenCircuitElement::getMinVoltage ( ) const

get the value set minimum for the voltage in volts.

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 AisOpenCircuitElement::getName ( ) const
override

get the name of the element.

Returns
The name of the element: "Open Circuit Potential".

◆ getSamplingInterval()

double AisOpenCircuitElement::getSamplingInterval ( ) const

get how frequently we are sampling the data.

Returns
the data sampling interval value in seconds.

◆ isAutoVoltageRange()

bool AisOpenCircuitElement::isAutoVoltageRange ( ) const

tells whether the voltage range is set to auto-select or not.

Returns
true if the voltage range is set to auto-select and false if a range has been selected.

◆ setApproxMaxVoltage()

void AisOpenCircuitElement::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.

Parameters
approxMaxVoltagethe value for the maximum voltage expected in V.

◆ setAutoVoltageRange()

void AisOpenCircuitElement::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.

◆ setMaxDuration()

void AisOpenCircuitElement::setMaxDuration ( double  maxDuration)

set the value set for the duration of the experiment.

Parameters
maxDurationthe value to set for the duration of the experiment in seconds.

◆ setMaxVoltage()

void AisOpenCircuitElement::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.

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

◆ setMindVdt()

void AisOpenCircuitElement::setMindVdt ( double  mindVdt)

set the minimum value for the voltage rate of change with respect to time (minimum dV/dt).

This is an optional condition. If nothing is set, then the experiment will not stop based on an lower-limit rate of change value. If a minimum value is set, the experiment will continue to run as long as the rage of change is above that value.

Parameters
mindVdtthe minimum value for the voltage rate of change with respect to time (minimum dV/dt).

◆ setMinVoltage()

void AisOpenCircuitElement::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.

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

◆ setSamplingInterval()

void AisOpenCircuitElement::setSamplingInterval ( double  samplingInterval)

set how frequently we are sampling the data.

Parameters
samplingIntervalthe data sampling interval value in seconds.

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