Main Page | Modules | Class Hierarchy | Class List | File List | Class Members

di194_dsdk Class Reference

Main device class for the DI-194RS. More...

#include <di194.h>

Inherits dsdk.

Inherited by di154_dsdk.

Inheritance diagram for di194_dsdk:

Inheritance graph
[legend]
Collaboration diagram for di194_dsdk:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 di194_dsdk ()
 Sets up device defaults for DI-194RS.

 ~di194_dsdk ()
 Deletes any allocated memory.

const int ADChannelCount ()
 Number of channels being scanned.

const long int AvailableData ()
 Number of data points in input buffer.

const long int EventPoint ()
 Number of data points required before NewData() fires.

const char *const  InfoSerial ()
 Device serial number.

const double SampleRate ()
 Actual sample rate.

void ADChannelCount (const int ChannelCount)
 Number of channels to scan.

void EventPoint (const long int EventPnt)
 Number of data points required before NewData() fires.

void SampleRate (const double SampleRt)
 Requested sample rate.

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.

void DeviceConnect ()
 Activate device connection.

void DeviceDisconnect ()
 Safely deactivate device connection.

void GetDataEx (short int *iArray, const int Count)
 Get acquired data from device.

void Start ()
 Start acquisition.

void Stop ()
 Stop acquisition.

const bool OverRun ()
 Determines whether the input buffer OR the device buffer overflowed.


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

bool digital_chan
 Whether the digital channel is enabled.

di_serial_io m_connection
 Connection to device.

int chan_order [DI194_CHANNELS]
 Used by convert().


Private Member Functions

 di194_dsdk (const di194_dsdk &copy)
 Do not allow copying of this class.


Detailed Description

Main device class for the DI-194RS.

Definition at line 34 of file di194.h.


Constructor & Destructor Documentation

di194_dsdk::di194_dsdk  ) 
 

Sets up device defaults for DI-194RS.

  • 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 42 of file di194.cpp.

References chan_order, digital_chan, and SampleRate().

Here is the call graph for this function:

di194_dsdk::~di194_dsdk  ) 
 

Deletes any allocated memory.

Disconnects first. Then, it deallocates any allocated memory used by the class's private members.

Definition at line 67 of file di194.cpp.

References DeviceDisconnect().

Here is the call graph for this function:

di194_dsdk::di194_dsdk const di194_dsdk copy  )  [inline, private]
 

Do not allow copying of this class.

Parameters:
copy Class 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.

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 916 of file di194.cpp.

References chan_order.

Referenced by GetDataEx().


Generated on Mon Aug 2 09:44:58 2004 for DataqSDK by doxygen 1.3.6