Main MRPT website > C++ reference for MRPT 1.5.9
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

◆ MRPT_DAQmx_ErrChk

#define MRPT_DAQmx_ErrChk (   functionCall)
Value:
if( (functionCall)<0) \
{ \
char errBuff[2048]; \
MRPT_DAQmxGetExtendedErrorInfo(errBuff,2048); \
std::string sErr = mrpt::format("DAQ error: '%s'\nCalling: '%s'",errBuff,#functionCall); \
THROW_EXCEPTION(sErr) \
}
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 GLchar ** string
Definition: glext.h:3919

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().

◆ MRPT_DAQmxCfgInputBuffer

#define MRPT_DAQmxCfgInputBuffer   DAQmxCfgInputBuffer

◆ MRPT_DAQmxCfgOutputBuffer

#define MRPT_DAQmxCfgOutputBuffer   DAQmxCfgOutputBuffer

Definition at line 70 of file CNationalInstrumentsDAQ.cpp.

◆ MRPT_DAQmxCfgSampClkTiming

#define MRPT_DAQmxCfgSampClkTiming   DAQmxCfgSampClkTiming

◆ MRPT_DAQmxClearTask

#define MRPT_DAQmxClearTask   DAQmxClearTask

◆ MRPT_DAQmxCreateAIVoltageChan

#define MRPT_DAQmxCreateAIVoltageChan   DAQmxCreateAIVoltageChan

◆ MRPT_DAQmxCreateAOVoltageChan

#define MRPT_DAQmxCreateAOVoltageChan   DAQmxCreateAOVoltageChan

◆ MRPT_DAQmxCreateCIAngEncoderChan

#define MRPT_DAQmxCreateCIAngEncoderChan   DAQmxCreateCIAngEncoderChan

◆ MRPT_DAQmxCreateCICountEdgesChan

#define MRPT_DAQmxCreateCICountEdgesChan   DAQmxCreateCICountEdgesChan

◆ MRPT_DAQmxCreateCILinEncoderChan

#define MRPT_DAQmxCreateCILinEncoderChan   DAQmxCreateCILinEncoderChan

◆ MRPT_DAQmxCreateCIPeriodChan

#define MRPT_DAQmxCreateCIPeriodChan   DAQmxCreateCIPeriodChan

◆ MRPT_DAQmxCreateCIPulseWidthChan

#define MRPT_DAQmxCreateCIPulseWidthChan   DAQmxCreateCIPulseWidthChan

◆ MRPT_DAQmxCreateCOPulseChanFreq

#define MRPT_DAQmxCreateCOPulseChanFreq   DAQmxCreateCOPulseChanFreq

◆ MRPT_DAQmxCreateDIChan

#define MRPT_DAQmxCreateDIChan   DAQmxCreateDIChan

◆ MRPT_DAQmxCreateDOChan

#define MRPT_DAQmxCreateDOChan   DAQmxCreateDOChan

◆ MRPT_DAQmxCreateTask

#define MRPT_DAQmxCreateTask   DAQmxCreateTask

◆ MRPT_DAQmxGetExtendedErrorInfo

#define MRPT_DAQmxGetExtendedErrorInfo   DAQmxGetExtendedErrorInfo

Definition at line 56 of file CNationalInstrumentsDAQ.cpp.

◆ MRPT_DAQmxReadAnalogF64

#define MRPT_DAQmxReadAnalogF64   DAQmxReadAnalogF64

◆ MRPT_DAQmxReadCounterF64

#define MRPT_DAQmxReadCounterF64   DAQmxReadCounterF64

◆ MRPT_DAQmxReadDigitalU8

#define MRPT_DAQmxReadDigitalU8   DAQmxReadDigitalU8

◆ MRPT_DAQmxStartTask

#define MRPT_DAQmxStartTask   DAQmxStartTask

◆ MRPT_DAQmxStopTask

#define MRPT_DAQmxStopTask   DAQmxStopTask

◆ MRPT_DAQmxWriteAnalogF64

#define MRPT_DAQmxWriteAnalogF64   DAQmxWriteAnalogF64

◆ MRPT_DAQmxWriteDigitalLines

#define MRPT_DAQmxWriteDigitalLines   DAQmxWriteDigitalLines

◆ MRPT_DAQmxWriteDigitalU32

#define MRPT_DAQmxWriteDigitalU32   DAQmxWriteDigitalU32

Definition at line 78 of file CNationalInstrumentsDAQ.cpp.

◆ MRPT_HAS_SOME_NIDAQMX

#define MRPT_HAS_SOME_NIDAQMX   (MRPT_HAS_NIDAQMXBASE || MRPT_HAS_NIDAQMX)

Definition at line 16 of file CNationalInstrumentsDAQ.cpp.

◆ MRPT_USE_NIDAQMX

#define MRPT_USE_NIDAQMX   (MRPT_HAS_NIDAQMX)

Definition at line 19 of file CNationalInstrumentsDAQ.cpp.

◆ MRPT_USE_NIDAQMXBASE

#define MRPT_USE_NIDAQMXBASE   (MRPT_HAS_NIDAQMXBASE && !MRPT_HAS_NIDAQMX)

Definition at line 18 of file CNationalInstrumentsDAQ.cpp.

◆ MY_LOAD_HERE_CONFIG_VAR

#define MY_LOAD_HERE_CONFIG_VAR (   variableName,
  variableType,
  targetVariable,
  configFileObject,
  sectionNameStr 
)    targetVariable = configFileObject.read_##variableType(sectionNameStr,variableName,targetVariable,false);

◆ MY_LOAD_HERE_CONFIG_VAR_NO_DEFAULT

#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() )); \
} }\
GLsizei const GLchar ** string
Definition: glext.h:3919
GLenum GLsizei GLenum format
Definition: glext.h:3513

Definition at line 123 of file CNationalInstrumentsDAQ.cpp.

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




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020