8#include "gtest/gtest.h"
33 ASSERT_EQ(
true, l_THM1176.
Connect(THM1176_TIMEOUT));
34 ASSERT_EQ(
true, l_THM1176.IsOpen());
36 ASSERT_EQ(
false, l_THM1176.IsOpen());
TEST_F(CTHM1176ConnectTest, ConnectDisconnect)
unsigned int U32
32-bit unsigned integer.
Utility functions used to test THM1176 API.
bool FetchTHM1176Resource(THM1176_TEST_RESOURCE_MANAGER_CLASS &rResourceManager, tResourceName &rTHM1176)
Open a connection to the Resource Manager and find a THM1176.
Type conversion routines for C++ API for Metrolab THM1176/TFM1186.
Test THM1176 API: Connect, Disconnect.
static const U32 THM1176_TIMEOUT
THM1176_TEST_RESOURCE_MANAGER_CLASS ResourceManager
THM1176 instrument class.
bool Connect(U32 InitialTimeout, bool Exclusive=true, std::string *pErrMsg=nullptr)
Open the connection to the instrument.
void Disconnect()
Close the connection to the instrument.
std::string tResourceName
IEEE488 resource name.