Main device class for the DI-194RS.
#include <di194.h>
Public Member Functions |
const int | ADChannelCount () |
| Number of channels being scanned.
|
void | ADChannelCount (const int ChannelCount) |
| Number of channels to scan.
|
void | ADChannelList (const int *const ChannelList) |
| Map software channels and physical channels.
|
void | ADMethodList (const int *const MethodList) |
| Change the IOS setting for each channel.
|
const long int | AvailableData () |
| Number of data points in input buffer.
|
void | DeviceConnect () |
| Activate device connection.
|
void | DeviceDisconnect () |
| Safely deactivate device connection.
|
| di194_dsdk () |
| Sets up device defaults for DI-194RS.
|
void | EventPoint (const long int EventPnt) |
| Number of data points required before NewData() fires.
|
const long int | EventPoint () |
| Number of data points required before NewData() fires.
|
void | GetDataEx (short int *iArray, const int Count) |
| Get acquired data from device.
|
const char *const | InfoSerial () |
| Device serial number.
|
const bool | OverRun () |
| Determines whether the input buffer OR the device buffer overflowed.
|
void | SampleRate (const double SampleRt) |
| Requested sample rate.
|
const double | SampleRate () |
| Actual sample rate.
|
void | Start () |
| Start acquisition.
|
void | Stop () |
| Stop acquisition.
|
| ~di194_dsdk () |
| Deletes any allocated memory.
|
Protected Member Functions |
virtual const short int | convert (const u_int8_t *const di_data, const u_int8_t num_chan) |
| Converts 'di_data' into counts.
|
Protected Attributes |
int | chan_order [DI194_CHANNELS] |
| Used by convert().
|
bool | digital_chan |
| Whether the digital channel is enabled.
|
di_serial_io | m_connection |
| Connection to device.
|
Private Member Functions |
| di194_dsdk (const di194_dsdk ©) |
| Do not allow copying of this class.
|
Detailed Description
Definition at line 34 of file di194.h.
Constructor & Destructor Documentation
di194_dsdk::di194_dsdk |
( |
) |
|
- Sets up the channel order array (1 channel)
- Sets channel count to use 1 analog channel
- Sets up 'connection' to use the DI-194RS settings
- Creates the following lists:
- m_ADChannelList
Normal order
- m_ADMethodList
IOS Average
- Disables the digital channel
- Calls sample rate function passing it the default sample rate, as defined in the dsdk
Definition at line 47 of file di194.cpp.
di194_dsdk::~di194_dsdk |
( |
) |
|
Disconnects first. Then, it deallocates any allocated memory used by the class's private members.
Definition at line 72 of file di194.cpp.
di194_dsdk::di194_dsdk |
( |
const di194_dsdk & |
copy ) |
[inline, private] |
- Parameters:
-
Definition at line 108 of file di194.h.
Member Function Documentation
const short int di194_dsdk::convert |
( |
const u_int8_t *const |
di_data, |
|
|
const u_int8_t |
num_chan |
|
) |
| [protected, virtual] |
Converts 'di_data' into Counts.
- Parameters:
-
di_data | Pointer to array of raw data. |
num_chan | Channel list position to check for analog or digital. |
Reimplemented in di154_dsdk.
Definition at line 921 of file di194.cpp.
Field Documentation
The documentation for this class was generated from the following files: