![]() |
THM1176InstrumentManager
1.0
Qt Object abstraction for Metrolab THM1176
|
USBTMC instrument class. More...
#include <USBTMCInstrument.h>
Public Member Functions | |
CUSBTMCInstrument (CUSBTMCResourceManager &rRM, tResourceName Rsrc) | |
Constructor. More... | |
virtual | ~CUSBTMCInstrument (void) |
Destructor. More... | |
virtual bool | Open (void) |
Open this USBTMC instrument. More... | |
virtual void | Close (void) |
Close this USBTMC instrument. More... | |
virtual bool | IsOpen (void) |
Check whether a session to this instrument is open. More... | |
virtual std::string | StatusDescription (I32 Status) |
Return description of status word. More... | |
virtual bool | Timeout (void) |
Last operation timed out. More... | |
virtual bool | Write (const char *Str) |
Write to a USBTMC instrument: C string variant. More... | |
virtual bool | Write (const std::string &rStr) |
Write to a USBTMC instrument: C++ string variant. More... | |
virtual bool | Write (const CSCPIBuffer &rBuf) |
Write to a USBTMC instrument: SCPI buffer class variant. More... | |
virtual bool | Read (CSCPIBuffer &rBuf, bool Append=false) |
Read from a USBTMC instrument: SCPI buffer class variant. More... | |
virtual bool | Clear (void) |
Clear the instrument. More... | |
virtual bool | ReadSTB (U16 &rSTB) |
Read status byte. More... | |
virtual bool | AssertTrigger (void) |
Assert a trigger. More... | |
virtual bool | LockExclusive (U32 Timeout) |
Obtain an exclusive lock for this session. More... | |
virtual bool | Unlock (void) |
Unlock the session. More... | |
virtual bool | LockedExclusive (void) |
Check whether session is locked exclusively. More... | |
![]() | |
CIEEE488Instrument (CIEEE488ResourceManager &rRM, tResourceName Rsrc) | |
Constructor. More... | |
virtual | ~CIEEE488Instrument () |
I32 | Status (void) |
bool | SetTimeout (U32 Timeout) |
Set the timeout for this instrument. More... | |
U32 | GetTimeout (void) |
Return the timeout for this instrument. More... | |
Additional Inherited Members | |
![]() | |
CRecursiveMutex | m_Lock |
Lock onto the class interface. More... | |
CIEEE488ResourceManager & | m_rRrsrcMan |
Reference to the associated resource manager. More... | |
tResourceName | m_Rsrc |
Resource name of the instrument. More... | |
I32 | m_Status |
Status of last operation. More... | |
U32 | m_Timeout |
Timeout for operations. More... | |
USBTMC instrument class.
Definition at line 87 of file USBTMCInstrument.h.
CUSBTMCInstrument::CUSBTMCInstrument | ( | CUSBTMCResourceManager & | rRM, |
tResourceName | Rsrc | ||
) |
Constructor.
[in] | rRM | USBTMC Resource Manager. |
[out] | Rsrc | USBTMC resource name. |
Definition at line 455 of file USBTMCInstrument.cpp.
|
virtual |
Destructor.
Definition at line 463 of file USBTMCInstrument.cpp.
|
virtual |
Assert a trigger.
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 1262 of file USBTMCInstrument.cpp.
|
virtual |
Clear the instrument.
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 1072 of file USBTMCInstrument.cpp.
|
virtual |
Close this USBTMC instrument.
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 618 of file USBTMCInstrument.cpp.
|
virtual |
Check whether a session to this instrument is open.
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 657 of file USBTMCInstrument.cpp.
|
virtual |
Check whether session is locked exclusively.
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 1379 of file USBTMCInstrument.cpp.
|
virtual |
Obtain an exclusive lock for this session.
[in] | Timeout | Timeout value, in ms. |
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 1325 of file USBTMCInstrument.cpp.
|
virtual |
Open this USBTMC instrument.
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 475 of file USBTMCInstrument.cpp.
|
virtual |
Read from a USBTMC instrument: SCPI buffer class variant.
[in] | rBuf | Buffer to receive the data. |
[in] | Append | Whether to append to the existing data. |
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 794 of file USBTMCInstrument.cpp.
|
virtual |
Read status byte.
[out] | rSTB | Status byte. |
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 1163 of file USBTMCInstrument.cpp.
|
virtual |
Return description of status word.
[in] | Status | Status word. |
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 668 of file USBTMCInstrument.cpp.
|
virtual |
Last operation timed out.
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 680 of file USBTMCInstrument.cpp.
|
virtual |
Unlock the session.
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 1355 of file USBTMCInstrument.cpp.
|
virtual |
Write to a USBTMC instrument: C string variant.
[in] | Str | Data to write. |
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 765 of file USBTMCInstrument.cpp.
|
virtual |
Write to a USBTMC instrument: SCPI buffer class variant.
[in] | rBuf | Data to write. |
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 783 of file USBTMCInstrument.cpp.
|
virtual |
Write to a USBTMC instrument: C++ string variant.
[in] | rStr | Data to write. |
Implements MTL::Instrument::CIEEE488Instrument.
Definition at line 774 of file USBTMCInstrument.cpp.