26 #include <sys/socket.h> 27 #include <sys/types.h> 28 #include <netinet/in.h> 33 #define DEFAULT_IP_ADDRESS "192.168.131.186" 34 #define DEFAULT_PORT 5025 35 #define DEBUG_MODE false 46 void configTCPIP(
string ip,
int port);
48 void closeConnection(){ close(sockfd); info(
"Connection closed.",
"MSOxxxx::close"); }
54 StatusCode channelScale (
int ch,
double value);
55 StatusCode channelOffset (
int ch,
double value);
56 StatusCode channelDisplay (
int ch,
bool display);
57 StatusCode channelDisplayName(
int ch,
string name);
65 StatusCode triggerConfig(
bool slope,
int ch,
double level);
70 StatusCode setupDeltaTime (
int chA,
int chB,
int edge);
71 PyObject* getStatistics (
int nMinMeas);
77 PyObject* waveformCapture(
int ch);
90 void help() { info(
"MSOxxxx "+name()+
". No help.",
"MSOxxxx::help"); };
123 char rxBuffer[10485760];
124 string rxItems[65536];
129 bool getTimeBase(
double *xInc,
double *xOrg);
131 bool send(
string msg);
132 int recv(
string *rxItems,
string spacer);
134 int split(
string str,
string *splitStr,
string delimiter);
def run(processus, element, nevt)
void setDebugMode(bool debug)