Functions

DI194_COMMANDS

Functions

const bool Ccmd (di_serial_io &conn, const u_int8_t code=0x3F)
 Channels to scan.
const bool Dcmd (di_serial_io &conn, const u_int8_t code=0)
 Digital channel.
const bool Ncmd (di_serial_io &conn, char *sn)
 Get serial.
const bool Scmd (di_serial_io &conn, const u_int8_t code=0)
 Start/Stop acquisition.

Function Documentation

const bool Ccmd ( di_serial_io conn,
const u_int8_t  code 
)

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:
connSerial connection.
codeThe channel code to send (integer).
Returns:
True = Successful.
False = Failure.

Definition at line 79 of file di194_commands.cpp.

Here is the call graph for this function:

const bool Dcmd ( di_serial_io conn,
const u_int8_t  code 
)

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:
connSerial connection.
codeThe digital channel code to send (integer).
Returns:
True = Successful.
False = Failure.

Definition at line 104 of file di194_commands.cpp.

Here is the call graph for this function:

const bool Ncmd ( di_serial_io conn,
char *  sn 
)
Precondition:
Connection object is set up and connected. Does not check!
Parameters:
connSerial connection.
snPointer to an array that will hold the serial number.
Returns:
True = Successful.
False = Failure.

Definition at line 43 of file di194_commands.cpp.

Here is the call graph for this function:

const bool Scmd ( di_serial_io conn,
const u_int8_t  code 
)

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

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

Definition at line 129 of file di194_commands.cpp.

Here is the call graph for this function: