AIOUSB::AO16_AnalogOutputSubsystem Class Reference
#include <AO16_AnalogOutputSubsystem.hpp>
List of all members.
Detailed Description
Class
AO16_AnalogOutputSubsystem represents the analog output subsystem of a device. One accesses this analog output subsystem through its parent object, typically through a method such as
dac() (see USB_AO16_Family::dac()).
Constructor & Destructor Documentation
AIOUSB::AO16_AnalogOutputSubsystem::AO16_AnalogOutputSubsystem |
( |
USBDevice & |
parent |
) |
[protected] |
AIOUSB::AO16_AnalogOutputSubsystem::~AO16_AnalogOutputSubsystem |
( |
|
) |
[protected, virtual] |
Member Function Documentation
double AIOUSB::AO16_AnalogOutputSubsystem::countsToVolts |
( |
unsigned short |
counts |
) |
const [inline] |
Converts a single D/A count value to volts, based on the current range setting.
- Parameters:
-
| counts | the count value to convert to volts. |
- Returns:
- A voltage value calculated using the current D/A range. The voltage value returned is constrained to the current minimum-maximum voltage range of the D/A. (see setRange( int range )).
int AIOUSB::AO16_AnalogOutputSubsystem::getRange |
( |
|
) |
const [inline] |
Gets the current voltage range of the D/A outputs.
- Returns:
- Current voltage range.
- See also:
- setRange( int range )
std::string AIOUSB::AO16_AnalogOutputSubsystem::getRangeText |
( |
int |
range |
) |
[static] |
Gets the textual string for the specified range.
- Parameters:
-
| range | the range for which to obtain the textual string. |
- Returns:
- The textual string for the specified range.
- See also:
- setRange( int range )
- Exceptions:
-
Sets the voltage range of the D/A outputs.
- Parameters:
-
- Returns:
- This subsystem, useful for chaining together multiple operations.
- Exceptions:
-
unsigned short AIOUSB::AO16_AnalogOutputSubsystem::voltsToCounts |
( |
double |
volts |
) |
const [inline] |
Converts a single voltage value to D/A counts, based on the current range setting.
- Parameters:
-
| volts | the voltage value to convert to counts. |
- Returns:
- A count value calculated using the current D/A range. The count value returned is constrained to the current minimum-maximum count range of the D/A. (see setRange( int range )).
Writes a block of voltage values to one or more D/A channels.
- Parameters:
-
- Returns:
- This subsystem, useful for chaining together multiple operations.
- Exceptions:
-
Writes a voltage value to a D/A channel.
- Parameters:
-
| channel | the channel to write to. |
| volts | the voltage value to output. |
- Returns:
- This subsystem, useful for chaining together multiple operations.
Friends And Related Function Documentation
Member Data Documentation
Maximum number of counts D/A can output.
Minimum number of counts D/A can output.
Initial value:
{
"0-5V"
, "+/-5V"
, "0-10V"
, "+/-10V"
}