![]() |
RTXI 1.3
|
#include <daq.h>
| DAQ::Device::Device | ( | std::string | name, |
| IO::channel_t * | chan, | ||
| size_t | size | ||
| ) |
| DAQ::Device::~Device | ( | void | ) | [virtual] |
Reimplemented from RT::Device.
Get the gain of the selected channel.
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual index_t DAQ::Device::getAnalogOffsetUnits | ( | type_t | type, |
| index_t | index | ||
| ) | const [pure virtual] |
Get the index of the units for the selected channel zero offset.
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, and ComediDevice.
Get the index of the range for the selected channel.
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
Get the number of available ranges for the specified channel.
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual std::string DAQ::Device::getAnalogRangeString | ( | type_t | type, |
| index_t | index, | ||
| index_t | range | ||
| ) | const [pure virtual] |
Get a string representation of the specified range.
| type | The channel's type. |
| index | The channel's index. |
| range | The index of the channel's range. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
Get the index of the reference for the selected channel.
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual size_t DAQ::Device::getAnalogReferenceCount | ( | type_t | type, |
| index_t | index | ||
| ) | const [pure virtual] |
Get the number of available reference for the specified channel.
| type | The channel's type. index The channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual std::string DAQ::Device::getAnalogReferenceString | ( | type_t | type, |
| index_t | index, | ||
| index_t | reference | ||
| ) | const [pure virtual] |
Get a string representation of the specified reference.
| type | The channel's type. |
| index | The channel's index. |
| reference | The index of the channel's reference. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
Get the index of the units for the selected channel.
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
Get the number of available units for the channel.
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual std::string DAQ::Device::getAnalogUnitsString | ( | type_t | type, |
| index_t | index, | ||
| index_t | units | ||
| ) | const [pure virtual] |
Get a string representation of the specifed units.
| type | The channel's type. |
| index | The channel's index. |
| units | The index of the channel's units. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
Get the offset of the selected channel that makes the signal zero
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, and ComediDevice.
Get the channel's active state.
| type | The channel's type. |
| index | The channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual size_t DAQ::Device::getChannelCount | ( | type_t | type | ) | const [pure virtual] |
Get the number of channels of the specified type.
| type | The type of the channels to be counted. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual direction_t DAQ::Device::getDigitalDirection | ( | index_t | index | ) | const [pure virtual] |
Get the direction of the specified digital channel.
| index | The digital channel's index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
Set the gain of the selected channel.
| type | The channel's type. |
| index | The channel's index. |
| gain | The channel's new gain. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual int DAQ::Device::setAnalogOffsetUnits | ( | type_t | type, |
| index_t | index, | ||
| index_t | units | ||
| ) | [pure virtual] |
Set the offset units of the selected channel.
| type | The channel's type. |
| index | The channel's index. |
| units | The channel's new offset units index. |
Implemented in AnalogyDevice, ComediDevice, and ComediDevice.
| virtual int DAQ::Device::setAnalogRange | ( | type_t | type, |
| index_t | index, | ||
| index_t | range | ||
| ) | [pure virtual] |
Set the range of the selected channel.
| type | The channel's type. |
| index | The channel's index. |
| range | The channel's new range index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual int DAQ::Device::setAnalogReference | ( | type_t | type, |
| index_t | index, | ||
| index_t | reference | ||
| ) | [pure virtual] |
Set the reference of the selected channel.
| type | The channel's type. |
| index | The channel's index. |
| reference | The channel's new reference index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual int DAQ::Device::setAnalogUnits | ( | type_t | type, |
| index_t | index, | ||
| index_t | units | ||
| ) | [pure virtual] |
Set the units of the selected channel.
| type | The channel's type. |
| index | The channel's index. |
| units | The channel's new units index. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual int DAQ::Device::setAnalogZeroOffset | ( | type_t | type, |
| index_t | index, | ||
| double | offset | ||
| ) | [pure virtual] |
Set the zero offset of the selected channel.
| type | The channel's type. |
| index | The channel's index. |
| offset | The channel's new zero offset index. |
Implemented in AnalogyDevice, ComediDevice, and ComediDevice.
Set the channel's active state.
| type | The channel's type. |
| index | The channel's index. |
| state | The channel's new state. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.
| virtual int DAQ::Device::setDigitalDirection | ( | index_t | index, |
| direction_t | direction | ||
| ) | [pure virtual] |
Set the direction of the specified digital channel.
| index | The digital channel's index. |
| direction | The digital channel's new direction. |
Implemented in AnalogyDevice, ComediDevice, ComediDevice, and NIDevice.