THM1176InstrumentManager  1.0
Qt Object abstraction for Metrolab THM1176
IEEE488InstrumentTest.cpp File Reference

Test IEEE488Instrument API: Utility functions. More...

#include <regex>
#include "IEEE488InstrumentTest.h"
#include "Helpers.h"
#include "Exception.h"
Include dependency graph for IEEE488InstrumentTest.cpp:

Go to the source code of this file.

Functions

bool FetchIEEE4888Resource (IEEE4888_TEST_RESOURCE_MANAGER_CLASS &rResourceManager, tResourceName &rInstrumentName)
 Open a connection to the Resource Manager and find an IEEE488Instrument. More...
 
bool ConnectToIEEE488Instrument (IEEE4888_TEST_RESOURCE_MANAGER_CLASS *&rpResourceManager, IEEE4888_TEST_INSTRUMENT_CLASS *&rpInstrument)
 Connect to an IEEE488Instrument. More...
 
bool CheckIDNResponse (const CSCPIBuffer &rBuffer)
 Sanity-check of the response to an *IDN? query. More...
 

Detailed Description

Test IEEE488Instrument API: Utility functions.

Definition in file IEEE488InstrumentTest.cpp.

Function Documentation

◆ CheckIDNResponse()

bool CheckIDNResponse ( const CSCPIBuffer rBuffer)

Sanity-check of the response to an *IDN? query.

Parameters
[in]rBufferResponse to *IDN? query.
Returns
True if successful.

Definition at line 70 of file IEEE488InstrumentTest.cpp.

◆ ConnectToIEEE488Instrument()

bool ConnectToIEEE488Instrument ( IEEE4888_TEST_RESOURCE_MANAGER_CLASS *&  rpResourceManager,
IEEE4888_TEST_INSTRUMENT_CLASS *&  rpIEEE488Instrument 
)

Connect to an IEEE488Instrument.

Start Resource Manager, call FetchIEEE4888Resource, create IEEE488Instrument object, and connect to IEEE488Instrument.

Parameters
[out]rpResourceManagerPointer to Resource Manager object.
[out]rpIEEE488InstrumentPointer to IEEE488Instrument object.
Returns
True if successful.

Definition at line 40 of file IEEE488InstrumentTest.cpp.

◆ FetchIEEE4888Resource()

bool FetchIEEE4888Resource ( IEEE4888_TEST_RESOURCE_MANAGER_CLASS &  rResourceManager,
tResourceName rInstrumentName 
)

Open a connection to the Resource Manager and find an IEEE488Instrument.

Parameters
[in]rResourceManagerResource Manager
[out]rInstrumentNameResource Name of first IEEE488Instrument found
Returns
True if successful.

Definition at line 14 of file IEEE488InstrumentTest.cpp.