My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::Labjack Class Reference

Public Member Functions

 Labjack ()
 
 ~Labjack ()
 
bool connect (int serialNumber)
 
void disconnect ()
 
bool isConnected ()
 
long getCalibrationInfo ()
 
int configAllIO ()
 
int AllIO ()
 
int writeString (std::string message)
 
LabjackMsg packCommand (LabjackMsg::Request req, int input)
 
void sendCommand (LabjackMsg &msg)
 
LabjackMsg issueCommand (LabjackMsg::Request req, int input)
 
LabjackMsg issueCommand (LabjackMsg::Request req, int input, bool withQ)
 
std::vector< float > queryAllVoltages ()
 
int readPort (LabjackMsg &msg)
 
int readPort (LabjackMsg &msg, bool withQ)
 

Public Attributes

int serial_
 
bool connected_
 

Constructor & Destructor Documentation

Labjack::Labjack ( )

Constructor

....................................................................... Constructor

Labjack::~Labjack ( )

Destructor

....................................................................... Destructor

Member Function Documentation

bool Labjack::connect ( int  serialNumber)

Connect to the port

Returns true on success

....................................................................... Connect to the port

void Labjack::disconnect ( )

Disconnect

....................................................................... Disconnect from port

bool Labjack::isConnected ( )

returns true if connected

....................................................................... Return true if we are connected to the usb device.

LabjackMsg gcp::util::Labjack::issueCommand ( LabjackMsg::Request  req,
int  input 
)

Sends a command and reads the response if necessary

LabjackMsg gcp::util::Labjack::packCommand ( LabjackMsg::Request  req,
int  input 
)

Packs our request

int Labjack::readPort ( LabjackMsg msg)

True when we have a usb connection to the temp monitor Read bytes from the port.

....................................................................... Read bytes from the serial port and save the response

void gcp::util::Labjack::sendCommand ( LabjackMsg msg)

Sends the command

int Labjack::writeString ( std::string  message)

write message to the port

....................................................................... write a message to the port

Member Data Documentation

int gcp::util::Labjack::serial_

Serial number


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