Main MRPT website > C++ reference for MRPT 1.5.6
Macros
CNationalInstrumentsDAQ.cpp File Reference
#include "hwdrivers-precomp.h"
#include <mrpt/hwdrivers/CNationalInstrumentsDAQ.h>
#include <iterator>
Include dependency graph for CNationalInstrumentsDAQ.cpp:

Go to the source code of this file.

Macros

#define MRPT_HAS_SOME_NIDAQMX   (MRPT_HAS_NIDAQMXBASE || MRPT_HAS_NIDAQMX)
 
#define MRPT_USE_NIDAQMXBASE   (MRPT_HAS_NIDAQMXBASE && !MRPT_HAS_NIDAQMX)
 
#define MRPT_USE_NIDAQMX   (MRPT_HAS_NIDAQMX)
 
#define MRPT_DAQmxGetExtendedErrorInfo   DAQmxGetExtendedErrorInfo
 
#define MRPT_DAQmxCreateTask   DAQmxCreateTask
 
#define MRPT_DAQmxCreateAIVoltageChan   DAQmxCreateAIVoltageChan
 
#define MRPT_DAQmxCreateAOVoltageChan   DAQmxCreateAOVoltageChan
 
#define MRPT_DAQmxCreateDIChan   DAQmxCreateDIChan
 
#define MRPT_DAQmxCreateDOChan   DAQmxCreateDOChan
 
#define MRPT_DAQmxCreateCIPeriodChan   DAQmxCreateCIPeriodChan
 
#define MRPT_DAQmxCreateCICountEdgesChan   DAQmxCreateCICountEdgesChan
 
#define MRPT_DAQmxCreateCIPulseWidthChan   DAQmxCreateCIPulseWidthChan
 
#define MRPT_DAQmxCreateCILinEncoderChan   DAQmxCreateCILinEncoderChan
 
#define MRPT_DAQmxCreateCIAngEncoderChan   DAQmxCreateCIAngEncoderChan
 
#define MRPT_DAQmxCreateCOPulseChanFreq   DAQmxCreateCOPulseChanFreq
 
#define MRPT_DAQmxCfgSampClkTiming   DAQmxCfgSampClkTiming
 
#define MRPT_DAQmxCfgInputBuffer   DAQmxCfgInputBuffer
 
#define MRPT_DAQmxCfgOutputBuffer   DAQmxCfgOutputBuffer
 
#define MRPT_DAQmxStartTask   DAQmxStartTask
 
#define MRPT_DAQmxStopTask   DAQmxStopTask
 
#define MRPT_DAQmxClearTask   DAQmxClearTask
 
#define MRPT_DAQmxReadAnalogF64   DAQmxReadAnalogF64
 
#define MRPT_DAQmxReadCounterF64   DAQmxReadCounterF64
 
#define MRPT_DAQmxReadDigitalU8   DAQmxReadDigitalU8
 
#define MRPT_DAQmxWriteAnalogF64   DAQmxWriteAnalogF64
 
#define MRPT_DAQmxWriteDigitalU32   DAQmxWriteDigitalU32
 
#define MRPT_DAQmxWriteDigitalLines   DAQmxWriteDigitalLines
 
#define MRPT_DAQmx_ErrChk(functionCall)
 
#define MY_LOAD_HERE_CONFIG_VAR(variableName, variableType, targetVariable, configFileObject, sectionNameStr)   targetVariable = configFileObject.read_##variableType(sectionNameStr,variableName,targetVariable,false);
 
#define MY_LOAD_HERE_CONFIG_VAR_NO_DEFAULT(variableName, variableType, targetVariable, configFileObject, sectionNameStr)
 

Macro Definition Documentation

#define MRPT_DAQmx_ErrChk (   functionCall)
Value:
if( (functionCall)<0) \
{ \
char errBuff[2048]; \
std::string sErr = mrpt::format("DAQ error: '%s'\nCalling: '%s'",errBuff,#functionCall); \
}
#define MRPT_DAQmxGetExtendedErrorInfo
#define THROW_EXCEPTION(msg)
std::string BASE_IMPEXP format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
Definition: format.cpp:21
GLsizei const GLcharARB ** string
Definition: glew.h:3293

Definition at line 83 of file CNationalInstrumentsDAQ.cpp.

Referenced by mrpt::hwdrivers::CNationalInstrumentsDAQ::grabbing_thread(), mrpt::hwdrivers::CNationalInstrumentsDAQ::initialize(), mrpt::hwdrivers::CNationalInstrumentsDAQ::writeAnalogOutputTask(), and mrpt::hwdrivers::CNationalInstrumentsDAQ::writeDigitalOutputTask().

#define MRPT_DAQmxCfgInputBuffer   DAQmxCfgInputBuffer
#define MRPT_DAQmxCfgOutputBuffer   DAQmxCfgOutputBuffer

Definition at line 70 of file CNationalInstrumentsDAQ.cpp.

#define MRPT_DAQmxCfgSampClkTiming   DAQmxCfgSampClkTiming
#define MRPT_DAQmxClearTask   DAQmxClearTask
#define MRPT_DAQmxCreateAIVoltageChan   DAQmxCreateAIVoltageChan
#define MRPT_DAQmxCreateAOVoltageChan   DAQmxCreateAOVoltageChan
#define MRPT_DAQmxCreateCIAngEncoderChan   DAQmxCreateCIAngEncoderChan
#define MRPT_DAQmxCreateCICountEdgesChan   DAQmxCreateCICountEdgesChan
#define MRPT_DAQmxCreateCILinEncoderChan   DAQmxCreateCILinEncoderChan
#define MRPT_DAQmxCreateCIPeriodChan   DAQmxCreateCIPeriodChan
#define MRPT_DAQmxCreateCIPulseWidthChan   DAQmxCreateCIPulseWidthChan
#define MRPT_DAQmxCreateCOPulseChanFreq   DAQmxCreateCOPulseChanFreq
#define MRPT_DAQmxCreateDIChan   DAQmxCreateDIChan
#define MRPT_DAQmxCreateDOChan   DAQmxCreateDOChan
#define MRPT_DAQmxCreateTask   DAQmxCreateTask
#define MRPT_DAQmxGetExtendedErrorInfo   DAQmxGetExtendedErrorInfo

Definition at line 56 of file CNationalInstrumentsDAQ.cpp.

#define MRPT_DAQmxReadAnalogF64   DAQmxReadAnalogF64
#define MRPT_DAQmxReadCounterF64   DAQmxReadCounterF64
#define MRPT_DAQmxReadDigitalU8   DAQmxReadDigitalU8
#define MRPT_DAQmxStartTask   DAQmxStartTask
#define MRPT_DAQmxStopTask   DAQmxStopTask
#define MRPT_DAQmxWriteAnalogF64   DAQmxWriteAnalogF64
#define MRPT_DAQmxWriteDigitalLines   DAQmxWriteDigitalLines
#define MRPT_DAQmxWriteDigitalU32   DAQmxWriteDigitalU32

Definition at line 78 of file CNationalInstrumentsDAQ.cpp.

#define MRPT_HAS_SOME_NIDAQMX   (MRPT_HAS_NIDAQMXBASE || MRPT_HAS_NIDAQMX)

Definition at line 16 of file CNationalInstrumentsDAQ.cpp.

#define MRPT_USE_NIDAQMX   (MRPT_HAS_NIDAQMX)

Definition at line 19 of file CNationalInstrumentsDAQ.cpp.

#define MRPT_USE_NIDAQMXBASE   (MRPT_HAS_NIDAQMXBASE && !MRPT_HAS_NIDAQMX)

Definition at line 18 of file CNationalInstrumentsDAQ.cpp.

#define MY_LOAD_HERE_CONFIG_VAR (   variableName,
  variableType,
  targetVariable,
  configFileObject,
  sectionNameStr 
)    targetVariable = configFileObject.read_##variableType(sectionNameStr,variableName,targetVariable,false);
#define MY_LOAD_HERE_CONFIG_VAR_NO_DEFAULT (   variableName,
  variableType,
  targetVariable,
  configFileObject,
  sectionNameStr 
)
Value:
{ try { \
targetVariable = configFileObject.read_##variableType(sectionNameStr,variableName,targetVariable,true); \
} catch (std::exception &) \
{ \
THROW_EXCEPTION( format( "Value for '%s' not found in config file", std::string(variableName).c_str() )); \
} }\
#define THROW_EXCEPTION(msg)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: glew.h:1168
GLsizei const GLcharARB ** string
Definition: glew.h:3293

Definition at line 139 of file CNationalInstrumentsDAQ.cpp.

Referenced by mrpt::hwdrivers::CNationalInstrumentsDAQ::loadConfig_sensorSpecific().




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018