AIOUSB::AnalogOutputSubsystem Class Reference
#include <AnalogOutputSubsystem.hpp>
List of all members.
Detailed Description
Class
AnalogOutputSubsystem is the superclass of the analog output subsystem of a device. This class provides basic features, such as writing count values to the D/As. More sophisticated functions are provided by device-specific subclasses. 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::AnalogOutputSubsystem::AnalogOutputSubsystem |
( |
USBDevice & |
parent |
) |
[protected] |
AIOUSB::AnalogOutputSubsystem::~AnalogOutputSubsystem |
( |
|
) |
[protected, virtual] |
Member Function Documentation
int AIOUSB::AnalogOutputSubsystem::getNumChannels |
( |
|
) |
const [inline] |
Gets the number of analog output channels.
- Returns:
- Number of channels, numbered 0 to n-1.
ostream & AIOUSB::AnalogOutputSubsystem::print |
( |
std::ostream & |
out |
) |
[virtual] |
Prints the properties of this subsystem. Mainly useful for diagnostic purposes.
- Parameters:
-
| out | the print stream where properties will be printed. |
- Returns:
- The print stream.
Implements AIOUSB::DeviceSubsystem.
Writes a block of count values to one or more D/A channels.
- Parameters:
-
| points | an array of 16-bit integers representing channel-count pairs. The first integer of each pair is the D/A channel number and the second integer is the D/A count value to output to the specified channel. Refer to writeCounts( int channel, unsigned short counts ) for an explanation of the channel addressing and count values. |
- Returns:
- This subsystem, useful for chaining together multiple operations.
- Exceptions:
-
AnalogOutputSubsystem & AIOUSB::AnalogOutputSubsystem::writeCounts |
( |
int |
channel, |
|
|
unsigned short |
counts | |
|
) |
| | |
Writes a count value to a D/A channel.
- Parameters:
-
| channel | the channel to write to. |
| counts | the D/A count value to output. The number of bits of resolution for the D/A outputs varies from model to model, however it's usually 12 or 16 bits. Moreover, some of the 12-bit models actually accept a 16-bit value and simply truncate the least significant 4 bits. Consult the manual for the specific device to determine the range of D/A values the device will accept. In general, 12-bit devices accept a count range of 0-0xfff, and 16-bit devices accept a count range of 0-0xffff. |
- Returns:
- This subsystem, useful for chaining together multiple operations.
- Exceptions:
-
Member Data Documentation