Public Member Functions
LjacklmWrapper Class Reference

#include <ljacklm_wrapper.h>

Inheritance diagram for LjacklmWrapper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

long config ()
 Configure input/output lines in labjack.
long disableWatchdog (int activeD)
 Disable the watchdog for a D line.
long enableWatchdog (long timeout, int activeD, long state)
 Enable and configure the watchdog.
long readAI (long channel, float *voltage)
 Read the value of one AI line.
long readAIs (long num_channels, long *channels, float *voltages)
 Read the voltage of several AI lines.
long readD (long channel, long *state)
 Read the value of one D line.
long readDifferentialAI (long channel, float *voltage)
 Read the voltage in a differential way of the AI lines.
long readDIOs (long *stateD, long *stateIO)
 Read all the D and IO input lines.
long readDirectionDs (long *directions)
 Read the D line directions (in binary, 0:input and 1:output)
long readIO (long channel, long *state)
 Read the value of one IO line.
long reset ()
 Reset the labjack.
long writeAO (int channel, float voltage)
 Write the value of one AO line.
long writeAOs (float voltageAO0, float voltageAO1)
 Write the voltage of AO0 and AO1 lines.
long writeD (long channel, long state)
 Write the value of one D line.
long writeDCONFIG (long channel, long state)
 Write the value of one D line and configure the D lines.
long writeDIOs (long *direcD, long *direcIO, long *stateD, long *stateIO)
 Write and read all D and IO input lines.
long writeDIOsCONFIG (long *stateD, long *stateIO)
 Write and read all D and IO input lines depending on CONFIG_D and CONFIG_IO.
long writeIO (long channel, long state)
 Write the value of one IO line.
long writePulse (long pulse_level, long line, long pulse_time, long line_type)
 Generate the pulse in one the lines D0..D15.

Detailed Description

Definition at line 58 of file ljacklm_wrapper.h.


Member Function Documentation

long LjacklmWrapper::config ( ) [virtual]

Configure input/output lines in labjack.

Returns:
error code or 0 (no error).

Implements LabjackDriverInterface.

Definition at line 34 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::disableWatchdog ( int  activeD) [virtual]

Disable the watchdog for a D line.

Parameters:
activeDD line to disable (0,1,8).
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 424 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::enableWatchdog ( long  timeout,
int  activeD,
long  state 
) [virtual]

Enable and configure the watchdog.

Parameters:
timeouttime in seconds to reset (1-715).
activeDD line to enable (0,1,8).
statestate of the D line (0-1).
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 390 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::readAI ( long  channel,
float *  voltage 
) [virtual]

Read the value of one AI line.

Parameters:
channelchannel number to read: 0..7. (e.g. to channel=0 => read AI0).
voltageread voltage to return.
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 255 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::readAIs ( long  num_channels,
long *  channels,
float *  voltages 
) [virtual]

Read the voltage of several AI lines.

Parameters:
num_channelsnumber of channels to read: 1, 2 รณ 4.
channelsarray with channels values: channels[num_channels] = {0,..,7}. (e.g. to channels={0,1} => read AI0 and AI1).
voltagesarray with read voltages to return.
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 271 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::readD ( long  channel,
long *  state 
) [virtual]

Read the value of one D line.

Parameters:
channelline to read: channel >= 0 & channel <= 3.
statevalue of the line state: state > 0 -> high level, state = 0 -> low level.
Returns:
error code or 0 (no error).

Implements LabjackDriverInterface.

Definition at line 177 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::readDifferentialAI ( long  channel,
float *  voltage 
) [virtual]

Read the voltage in a differential way of the AI lines.

Parameters:
channelchannel number to read: 8..11. (e.g. to channel=8 => read difference between AI0 and AI1, and so on).
voltagesarray with read voltages to return.
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 320 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::readDIOs ( long *  stateD,
long *  stateIO 
) [virtual]

Read all the D and IO input lines.

Parameters:
stateDD line states (D0-D15).
stateIOIO line states (IO0-IO3).
Returns:
error code or 0 (no error).

Implements LabjackDriverInterface.

Definition at line 112 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::readDirectionDs ( long *  directions) [virtual]

Read the D line directions (in binary, 0:input and 1:output)

Parameters:
directionsdirections of the D lines.
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 524 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::readIO ( long  channel,
long *  state 
) [virtual]

Read the value of one IO line.

Parameters:
channelline to read: channel >= 0 & channel <= 3.
statevalue of the line state: state > 0 -> high level, state = 0 -> low level.
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 73 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::reset ( ) [virtual]

Reset the labjack.

Returns:
error code or 0 (no error).

Implements LabjackDriverInterface.

Definition at line 60 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::writeAO ( int  channel,
float  voltage 
) [virtual]

Write the value of one AO line.

Parameters:
channelchannel number to assign a voltage: channel=0->AO0, channel=1->AO1 and channel=2->AO0&AO1.
voltagevalue of the voltage to assign: voltage >= 0.0 & voltage <= 5.0.
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 336 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::writeAOs ( float  voltageAO0,
float  voltageAO1 
) [virtual]

Write the voltage of AO0 and AO1 lines.

Parameters:
voltageAO0voltage value to assign to AO0 (voltageAO0 >= 0.0 & voltageAO0 <= 5.0).
voltageAO1voltage value to assign to AO1 (voltageAO1 >= 0.0 & voltageAO1 <= 5.0).
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 371 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::writeD ( long  channel,
long  state 
) [virtual]

Write the value of one D line.

Parameters:
channelline to read: channel >= 0 & channel <= 3.
statevalue of the line state: state > 0 -> high level, state = 0 -> low level.
Returns:
error code or 0 (no error).

Implements LabjackDriverInterface.

Definition at line 196 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::writeDCONFIG ( long  channel,
long  state 
) [virtual]

Write the value of one D line and configure the D lines.

Parameters:
channelline to read: channel >= 0 & channel <= 3.
statevalue of the line state: state > 0 -> high level, state = 0 -> low level.
Returns:
error code or 0 (no error).

Implements LabjackDriverInterface.

Definition at line 217 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::writeDIOs ( long *  direcD,
long *  direcIO,
long *  stateD,
long *  stateIO 
) [virtual]

Write and read all D and IO input lines.

Parameters:
direcDD lines direction (0=input, 1=output).
direcIOIO lines direction (0=input, 1=output).
stateDD lines level (D0-D15).
stateIOIO lines level (IO0-IO3).
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 130 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::writeDIOsCONFIG ( long *  stateD,
long *  stateIO 
) [virtual]

Write and read all D and IO input lines depending on CONFIG_D and CONFIG_IO.

Parameters:
stateDD lines level (D0-D15).
stateIOIO lines level (IO0-IO3).
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 156 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::writeIO ( long  channel,
long  state 
) [virtual]

Write the value of one IO line.

Parameters:
channelline to read: channel >= 0 & channel <= 3.
statevalue of the line state: state > 0 -> high level, state = 0 -> low level.
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 92 of file ljacklm_wrapper.cpp.

long LjacklmWrapper::writePulse ( long  pulse_level,
long  line,
long  pulse_time,
long  line_type 
) [virtual]

Generate the pulse in one the lines D0..D15.

Parameters:
pulse_levelpulse level: 0->high level, 0->low level.
lineline to use (for lines D:0..15; for lines IO:0..3).
pulse_timetime in microseconds for a pulse (1..2000000).
line_typetype of line, 0=D line, 1=IO line
Returns:
error code, 0 (no error) or <0 if any parameter is incorrect.

Implements LabjackDriverInterface.

Definition at line 458 of file ljacklm_wrapper.cpp.


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


maggie_labjack_drivers
Author(s): Raul Perula-Martinez
autogenerated on Mon Sep 14 2015 03:06:34