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

DI194_COMMANDS


Functions

const bool Ncmd (di_serial_io &conn, char *sn)
 Get serial.

const bool Ccmd (di_serial_io &conn, const u_int8_t code)
 Channels to scan.

const bool Dcmd (di_serial_io &conn, const u_int8_t code)
 Digital channel.

const bool Scmd (di_serial_io &conn, const u_int8_t code)
 Start/Stop acquisition.


Function Documentation

const bool Ncmd di_serial_io conn,
char *  sn
 

Get serial.

Precondition:
Connection object is set up and connected. Does not check!
Parameters:
conn Serial connection.
sn Pointer to an array that will hold the serial number.
Returns:
True = Successful.
False = Failure.

Definition at line 43 of file di194_commands.cpp.

References di_serial_io::di_read(), and di_serial_io::di_send().

Referenced by di194_dsdk::InfoSerial().

Here is the call graph for this function:

const bool Ccmd di_serial_io conn,
const u_int8_t  code = 0x3F
 

Channels to scan.

Channels 0000 to 1111. Each bit represents the physical channel to enable.
Dec. value - channel
1 - analog channel 1
2 - analog channel 2
4 - analog channel 3
8 - analog channel 4
add together to get any combination of channels
OR
each bit is a channel: 4 (left) to 1 (right) using above scheme
channel 1, binary: 0001 (decimal: 1)
channel 2,3 binary: 0110 (decimal: 6)

Precondition:
Connection object is set up and connected. Does not check!
Parameters:
conn Serial connection.
code The channel code to send (integer).
Returns:
True = Successful.
False = Failure.

Definition at line 79 of file di194_commands.cpp.

References di_serial_io::di_send().

Referenced by di194_dsdk::ADChannelCount(), and di194_dsdk::ADChannelList().

Here is the call graph for this function:

const bool Dcmd di_serial_io conn,
const u_int8_t  code = 0
 

Digital channel.

Code values:
0 = Output square wave on digital channels.
1 = Input digital channels.

Precondition:
Connection object is set up and connected. Does not check!
Parameters:
conn Serial connection.
code The digital channel code to send (integer).
Returns:
True = Successful.
False = Failure.

Definition at line 104 of file di194_commands.cpp.

References di_serial_io::di_send().

Referenced by di194_dsdk::ADChannelCount(), and di194_dsdk::ADChannelList().

Here is the call graph for this function:

const bool Scmd di_serial_io conn,
const u_int8_t  code = 0
 

Start/Stop acquisition.

Data aqcuisition Start/Stop.
Start = 1.
Stop = 0.

Precondition:
Connection object is set up and connected. Does not check!
Parameters:
conn Serial connection.
code The code (integer).
Returns:
True = Successful.
False = Failure.

Definition at line 129 of file di194_commands.cpp.

References di_serial_io::di_send(), and EBADRSVP.

Referenced by di194_dsdk::Start(), and di194_dsdk::Stop().

Here is the call graph for this function:


Generated on Mon Aug 2 09:45:28 2004 for DataqSDK by doxygen 1.3.6