20 if (!rResourceManager.Initialize())
25 if (!rResourceManager.FindResources(l_THM1176List, THM1176_TEST_RESOURCE_FILTER) || l_THM1176List.empty())
29 rTHM1176 = l_THM1176List.front();
33 std::cout <<
"l_CManagerException: " << rE.
what() << std::endl;
46 rpResourceManager =
new THM1176_TEST_RESOURCE_MANAGER_CLASS;
55 if (NULL == rpTHM1176)
59 static const U32 l_THM1176_TIMEOUT = 5000;
60 if (!rpTHM1176->
Connect(l_THM1176_TIMEOUT))
65 std::cout <<
"l_CManagerException: " << rE.
what() << std::endl;
Exception handling utilities.
Collection of utility macros for error messages.
unsigned int U32
32-bit unsigned integer.
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.
Utility functions used to test THM1176 API.
virtual const char * what() const noexcept
Return string describing what happened.
List of VISA resource names.
THM1176 instrument class.
bool Connect(U32 InitialTimeout, bool Exclusive=true, std::string *pErrMsg=nullptr)
Open the connection to the instrument.
std::string tResourceName
IEEE488 resource name.