MRPT  1.9.9
Macros
CNationalInstrumentsDAQ.cpp File Reference
#include "hwdrivers-precomp.h"
#include <mrpt/hwdrivers/CNationalInstrumentsDAQ.h>
#include <mrpt/serialization/CArchive.h>
#include <iostream>
#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)
 
#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 std::string format(std::string_view fmt, ARGS &&... args)
Definition: format.h:26

Definition at line 86 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 72 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 58 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 80 of file CNationalInstrumentsDAQ.cpp.

◆ MRPT_HAS_SOME_NIDAQMX

#define MRPT_HAS_SOME_NIDAQMX   (MRPT_HAS_NIDAQMXBASE || MRPT_HAS_NIDAQMX)

Definition at line 18 of file CNationalInstrumentsDAQ.cpp.

◆ MRPT_USE_NIDAQMX

#define MRPT_USE_NIDAQMX   (MRPT_HAS_NIDAQMX)

Definition at line 21 of file CNationalInstrumentsDAQ.cpp.

◆ MRPT_USE_NIDAQMXBASE

#define MRPT_USE_NIDAQMXBASE   (MRPT_HAS_NIDAQMXBASE && !MRPT_HAS_NIDAQMX)

Definition at line 20 of file CNationalInstrumentsDAQ.cpp.

◆ MY_LOAD_HERE_CONFIG_VAR

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

Definition at line 120 of file CNationalInstrumentsDAQ.cpp.

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

◆ 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())); \
} \
}
std::string std::string format(std::string_view fmt, ARGS &&... args)
Definition: format.h:26

Definition at line 126 of file CNationalInstrumentsDAQ.cpp.

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




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020