![]() |
DCS_SDK
2.0.0
TCP/IP control library for Ai DCS-100E and DCS-103E
|
Encaspsulates the data related to a single DCS channel. More...
#include <DCS100.h>
Public Member Functions | |
double | current () const |
Gets the current. More... | |
void | current (const double) |
Sets the current. More... | |
double | pulseWidth () const |
Gets the pulse width. More... | |
void | pulseWidth (const double) |
Sets the pulse width. More... | |
double | pulseDelay () const |
Gets the pulse delay. More... | |
void | pulseDelay (const double) |
Sets the pulse delay. More... | |
double | maxContinuous () const |
Gets the maximum continuous current (per string of LEDs). More... | |
const double | maxStrobe () const |
Gets the maximum strobe current (per string of LEDs). More... | |
Mode | mode () const |
Gets the mode the channel is in. More... | |
void | mode (const Mode) |
Sets the channels' Mode. More... | |
Trigger | triggerMode () const |
Gets the trigger mode (rising or falling edge). More... | |
void | triggerMode (const Trigger) |
Sets the trigger mode. More... | |
Channel | triggerInput () const |
Gets the configured trigger input channel. More... | |
void | triggerInput (const Channel) |
Sets the trigger input (e.g. More... | |
double | maxFrequency () const |
The maximum frequency (in Hertz) at which this channel can be triggered. More... | |
void | trigger () const |
Triggers this channel (acts as if a single hardware trigger occured). More... | |
Friends | |
class | DCS_100 |
Encaspsulates the data related to a single DCS channel.
Allows getting and setting the device current, pulse width, etc.
double AdvancedIllumination::DCS_100::DCS_Channel::current | ( | ) | const |
Gets the current.
void AdvancedIllumination::DCS_100::DCS_Channel::current | ( | const double | cur | ) |
Sets the current.
DeviceWarning | Thrown when a device warning error condition occurs. |
DeviceError | Raised when a Device error condition occurs. |
runtime_error | Raised when a runtime error condition occurs. (Third-party reference) |
cur | The current (in Amps). |
double AdvancedIllumination::DCS_100::DCS_Channel::maxContinuous | ( | ) | const |
Gets the maximum continuous current (per string of LEDs).
double AdvancedIllumination::DCS_100::DCS_Channel::maxFrequency | ( | ) | const |
The maximum frequency (in Hertz) at which this channel can be triggered.
const double AdvancedIllumination::DCS_100::DCS_Channel::maxStrobe | ( | ) | const |
Gets the maximum strobe current (per string of LEDs).
Mode AdvancedIllumination::DCS_100::DCS_Channel::mode | ( | ) | const |
Gets the mode the channel is in.
void AdvancedIllumination::DCS_100::DCS_Channel::mode | ( | const | Mode | ) |
Sets the channels' Mode.
m | The Mode to set. |
double AdvancedIllumination::DCS_100::DCS_Channel::pulseDelay | ( | ) | const |
Gets the pulse delay.
void AdvancedIllumination::DCS_100::DCS_Channel::pulseDelay | ( | const double | pd | ) |
Sets the pulse delay.
std::invalid_argument | Thrown when pulse delay exceeds 10 milliseconds. (Third-party reference) |
pd | The pulse delay (in seconds). |
double AdvancedIllumination::DCS_100::DCS_Channel::pulseWidth | ( | ) | const |
Gets the pulse width.
void AdvancedIllumination::DCS_100::DCS_Channel::pulseWidth | ( | const double | pw | ) |
Sets the pulse width.
Must be less than or equal to 65535 microseconds (0.065535 seconds)
invalid_argument | Thrown when pulse width exceeds 65535 microseconds. (Third-party reference) |
runtime_error | Raised when a runtime error condition occurs. (Third-party reference) |
pw | The pulse width (in seconds). |
void AdvancedIllumination::DCS_100::DCS_Channel::trigger | ( | ) | const |
Triggers this channel (acts as if a single hardware trigger occured).
Channel AdvancedIllumination::DCS_100::DCS_Channel::triggerInput | ( | ) | const |
Gets the configured trigger input channel.
void AdvancedIllumination::DCS_100::DCS_Channel::triggerInput | ( | const | Channel | ) |
Sets the trigger input (e.g.
which hardware trigger input this channel is bound to).
chan | The channel to which this channel's trigger will be assigned. |
Trigger AdvancedIllumination::DCS_100::DCS_Channel::triggerMode | ( | ) | const |
Gets the trigger mode (rising or falling edge).
void AdvancedIllumination::DCS_100::DCS_Channel::triggerMode | ( | const Trigger | t | ) |
Sets the trigger mode.
DeviceWarning | Thrown when a device warning error condition occurs. |
DeviceError | Raised when a device error condition occurs. |
t | The trigger mode to set. |
|
friend |