Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions

di194_dsdk Class Reference

Main device class for the DI-194RS.

#include <di194.h>

Inheritance diagram for di194_dsdk:
Inheritance graph
[legend]
Collaboration diagram for di194_dsdk:
Collaboration graph
[legend]

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 &copy)
 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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

di194_dsdk::di194_dsdk ( const di194_dsdk copy ) [inline, private]
Parameters:
copyClass to copy.

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_dataPointer to array of raw data.
num_chanChannel list position to check for analog or digital.

Reimplemented in di154_dsdk.

Definition at line 921 of file di194.cpp.


Field Documentation

Definition at line 101 of file di194.h.

bool di194_dsdk::digital_chan [protected]

Definition at line 99 of file di194.h.

Definition at line 100 of file di194.h.


The documentation for this class was generated from the following files: