gclib  2.0.8
Communications API for Galil controllers and PLCs
Galil Class Reference

Public Member Functions

 Galil (std::string address="")
std::string connection ()
std::string command (const std::string &command="MG TIME", const std::string &terminator="\r", const std::string &ack=":", bool trim=true)
double commandValue (const std::string &command="MG TIME")
std::string message (int timeout_ms=500)
int interrupt (int timeout_ms=500)
std::string programUpload ()
void programDownload (const std::string &program="MG TIME\rEN")
void programUploadFile (const std::string &file="program.dmc")
void programDownloadFile (const std::string &file="program.dmc")
std::vector< double > arrayUpload (const std::string &name="array")
void arrayDownload (const std::vector< double > &array, const std::string &name="array")
void arrayUploadFile (const std::string &file="arrays.csv", const std::string &names="")
void arrayDownloadFile (const std::string &file="arrays.csv")
void firmwareDownloadFile (const std::string &file="firmware.hex")
int write (const std::string &bytes="\r")
std::string read ()
std::vector< std::string > sources ()
void recordsStart (double period_ms=-1)
std::vector< char > record (const std::string &method="QR")
double sourceValue (const std::vector< char > &record, const std::string &source="TIME")
std::string source (const std::string &field="Description", const std::string &source="TIME")
void setSource (const std::string &field="Description", const std::string &source="TIME", const std::string &to="Sample counter")

Static Public Member Functions

static std::string libraryVersion ()
static std::vector< std::string > addresses ()

Data Fields

int timeout_ms

Detailed Description

Definition at line 25 of file Galil.h.

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