THM1176 API.
More...
#include <regex>
#include <thread>
#include <chrono>
#include <set>
#include <iostream>
#include "THM1176.h"
#include "THM1176TypeConversions.h"
#include "OSDefines.h"
#include "Helpers.h"
#include "Exception.h"
#include "SCPIParsing.h"
#include <sstream>
#include <iomanip>
#include <locale>
Go to the source code of this file.
THM1176 API.
Definition in file THM1176.cpp.
◆ DEBUG_MTL_INSTRUMENT_THM1176
#define DEBUG_MTL_INSTRUMENT_THM1176 1 |
◆ DEBUG_MTL_INSTRUMENT_THM1176_ERRORS_ONLY
#define DEBUG_MTL_INSTRUMENT_THM1176_ERRORS_ONLY 0 |
◆ MTL_INSTRUMENT_THM1176_DEBUG_CERR
#define MTL_INSTRUMENT_THM1176_DEBUG_CERR |
( |
|
__X__ | ) |
|
◆ MTL_INSTRUMENT_THM1176_DEBUG_COUT
#define MTL_INSTRUMENT_THM1176_DEBUG_COUT |
( |
|
__X__ | ) |
|
◆ l_ParseErrorString()
static void l_ParseErrorString |
( |
std::string & |
rErrStr, |
|
|
const std::string & |
rContext, |
|
|
sError & |
rError |
|
) |
| |
|
static |
◆ l_ParseRegexError()
static std::string l_ParseRegexError |
( |
std::regex_error & |
rE | ) |
|
|
static |
◆ l_ToString() [1/2]
static std::string l_ToString |
( |
F32 |
number, |
|
|
int |
precision = 7 , |
|
|
const char * |
locale = "C" |
|
) |
| |
|
static |
◆ l_ToString() [2/2]
static std::string l_ToString |
( |
F64 |
number, |
|
|
int |
precision = 15 , |
|
|
const char * |
locale = "C" |
|
) |
| |
|
static |
◆ THM1176_CAL_FILE_OFFSET_MATRIX_V2()
static const U32 THM1176_CAL_FILE_OFFSET_MATRIX_V2 |
( |
116 |
| ) |
|
|
static |
◆ THM1176_CAL_FILE_OFFSET_VERSION()
static const U32 THM1176_CAL_FILE_OFFSET_VERSION |
( |
32 |
| ) |
|
|
static |
◆ THM1176_CALIBRATION_FILE_NAME()
static const std::string THM1176_CALIBRATION_FILE_NAME |
( |
"cal.dat" |
| ) |
|
|
static |
◆ THM1176_CALIBRATION_TIMEOUT()
static const U32 THM1176_CALIBRATION_TIMEOUT |
( |
30000 |
| ) |
|
|
static |
◆ THM1176_FATAL_ERROR_CODE_LIMIT()
static const I32 THM1176_FATAL_ERROR_CODE_LIMIT |
( |
200 |
| ) |
|
|
static |
◆ THM1176_FILE_ACCESS_TIMEOUT()
static const U32 THM1176_FILE_ACCESS_TIMEOUT |
( |
20000 |
| ) |
|
|
static |
◆ THM1176_IMMEDIATE_TIME_PER_ACQ()
static const F64 THM1176_IMMEDIATE_TIME_PER_ACQ |
( |
1.0281823091218700E- |
04 | ) |
|
|
static |
◆ THM1176_IMMEDIATE_TIME_PER_MEAS()
static const F64 THM1176_IMMEDIATE_TIME_PER_MEAS |
( |
4.4532792007542600E- |
05 | ) |
|
|
static |
◆ THM1176_INFO_FILE_NAME()
static const std::string THM1176_INFO_FILE_NAME |
( |
"info.dat" |
| ) |
|
|
static |
◆ MODELS_NOT_TO_CALIBRATE
const std::set<std::string> MODELS_NOT_TO_CALIBRATE |
|
static |
Initial value:=
{
std::string("TFM1186")
}
Definition at line 66 of file THM1176.cpp.
◆ STATUS_GET_CMDS
const char* STATUS_GET_CMDS[4][3] |
|
static |
Initial value:=
{
{ "*STB?", "", "*SRE?" },
{ "*ESR?", "", "*ESE?" },
{ ":STAT:QUES:EVEN?", ":STAT:QUES:COND?", ":STAT:QUES:ENAB?" },
{ ":STAT:OPER:EVEN?", ":STAT:OPER:COND?", ":STAT:OPER:ENAB?" }
}
Definition at line 58 of file THM1176.cpp.
◆ STATUS_SET_CMDS
const char* STATUS_SET_CMDS[4][3] |
|
static |
Initial value:=
{
{ "", "", "*SRE" },
{ "", "", "*ESE" },
{ "", "", ":STAT:QUES:ENAB" },
{ "", "", ":STAT:OPER:ENAB" }
}
Definition at line 50 of file THM1176.cpp.