2 #include <NIDAQmxBase.h> 16 #define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } } 31 info(
"Closing the NI6008 socket.");
40 std::string
cmd = dev + std::string(
" ") + mess;
41 std::copy(cmd.begin(), cmd.end(),
buffer);
46 n = write(
m_sockfd,buffer,strlen(buffer));
47 if (n < 0)
error(
"ERROR writing to socket");
50 if (n < 0)
error(
"ERROR reading from socket");
52 return std::string(buffer);
void info(std::string mymsg)
void setName(std::string name)
virtual ~NI6008()
Destructor.
void setType(std::string type)
void error(std::string mymsg)
std::string cmd(std::string, std::string)
NI6008()
Standard constructor.