THM1176InstrumentDriver 1.1
C++ API for Metrolab THM1176
Loading...
Searching...
No Matches
THM1176TestUtilities.h
Go to the documentation of this file.
1// Copyright (c) 2020 Metrolab Technology S.A., Geneva, Switzerland (www.metrolab.com)
2// See the included file LICENSE.txt for the licensing conditions.
3
7
8#pragma once
9
10#include "THM1176.h"
11
12#if (THM1176_INSTRUMENT_TYPE_IS_VISA)
13 #define THM1176_TEST_RESOURCE_MANAGER_CLASS CVISAResourceManager
14 #define THM1176_TEST_INSTRUMENT_CLASS CVISAInstrument
15 #define THM1176_TEST_RESOURCE_FILTER "USB[0-9]*::0x1BFA::0x0498::[0-9]+::INSTR"
16 #include "VISAInstrument.h"
17#elif (THM1176_INSTRUMENT_TYPE_IS_USBTMC)
18 #define THM1176_TEST_RESOURCE_MANAGER_CLASS CUSBTMCResourceManager
19 #define THM1176_TEST_INSTRUMENT_CLASS CUSBTMCInstrument
20 #define THM1176_TEST_RESOURCE_FILTER "7162:1176"
21 #include "USBTMCInstrument.h"
22#else
23 #error "One of THM1176_TEST_INSTRUMENT_TYPE_IS_VISA or ..._USBTMC must be defined"
24#endif
25
26using namespace MTL::Instrument;
27using namespace MTL::Instrument::THM1176Types;
28
33bool FetchTHM1176Resource (THM1176_TEST_RESOURCE_MANAGER_CLASS & rResourceManager, tResourceName & rTHM1176);
34
41bool ConnectToTHM1176 (THM1176_TEST_RESOURCE_MANAGER_CLASS * & rpResourceManager, CTHM1176Instrument<THM1176_TEST_INSTRUMENT_CLASS, THM1176_TEST_RESOURCE_MANAGER_CLASS> * & rpTHM1176);
42
Interface definition for C++ API for Metrolab THM1176/TFM1186.
bool ConnectToTHM1176(THM1176_TEST_RESOURCE_MANAGER_CLASS *&rpResourceManager, CTHM1176Instrument< THM1176_TEST_INSTRUMENT_CLASS, THM1176_TEST_RESOURCE_MANAGER_CLASS > *&rpTHM1176)
Connect to a THM1176.
bool FetchTHM1176Resource(THM1176_TEST_RESOURCE_MANAGER_CLASS &rResourceManager, tResourceName &rTHM1176)
Open a connection to the Resource Manager and find a THM1176.
USBTMC driver based on libusb: interface definition.
C++ wrapper for NI-VISA: interface definition.
THM1176 instrument class.
Definition THM1176.h:98
std::string tResourceName
IEEE488 resource name.