![]() |
THM1176InstrumentManager
1.0
Qt Object abstraction for Metrolab THM1176
|
IEEE488 instrument class. More...
#include <IEEE488Instrument.h>
Public Member Functions | |
CIEEE488Instrument (CIEEE488ResourceManager &rRM, tResourceName Rsrc) | |
Constructor. More... | |
virtual | ~CIEEE488Instrument () |
virtual bool | Open (void)=0 |
Open a session to this IEEE488 instrument. More... | |
virtual void | Close ()=0 |
Close session to this instrument. More... | |
virtual bool | IsOpen ()=0 |
Check whether a session to this instrument is open. More... | |
I32 | Status (void) |
virtual std::string | StatusDescription (I32 Status)=0 |
Return description of status word. More... | |
virtual bool | Timeout (void)=0 |
Last operation timed out. More... | |
virtual bool | Write (const char *Str)=0 |
Write to a IEEE488 instrument: C string variant. More... | |
virtual bool | Write (const std::string &rStr)=0 |
Write to a IEEE488 instrument: C++ string variant. More... | |
virtual bool | Write (const CSCPIBuffer &rBuf)=0 |
Write to a IEEE488 instrument: SCPI buffer class variant. More... | |
virtual bool | Read (CSCPIBuffer &rBuf, bool Append=false)=0 |
Read from a IEEE488 instrument: SCPI buffer class variant. More... | |
bool | SetTimeout (U32 Timeout) |
Set the timeout for this instrument. More... | |
U32 | GetTimeout (void) |
Return the timeout for this instrument. More... | |
virtual bool | Clear ()=0 |
Clear the instrument. More... | |
virtual bool | ReadSTB (U16 &rSTB)=0 |
Read status byte. More... | |
virtual bool | AssertTrigger (void)=0 |
Assert a trigger. More... | |
virtual bool | LockExclusive (U32 Timeout)=0 |
Obtain an exclusive lock for this session. More... | |
virtual bool | Unlock ()=0 |
Unlock the session. More... | |
virtual bool | LockedExclusive ()=0 |
Check whether session is locked exclusively. More... | |
Protected Attributes | |
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... | |
IEEE488 instrument class.
Definition at line 62 of file IEEE488Instrument.h.
|
inline |
Constructor.
[in] | rRM | IEEE488 Instrument Resource Manager. |
[out] | Rsrc | IEEE488 resource name. |
Definition at line 79 of file IEEE488Instrument.h.
|
inlinevirtual |
Definition at line 82 of file IEEE488Instrument.h.
|
pure virtual |
Assert a trigger.
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
pure virtual |
Clear the instrument.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Close session to this instrument.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
inline |
Return the timeout for this instrument.
Definition at line 141 of file IEEE488Instrument.h.
|
pure virtual |
Check whether a session to this instrument is open.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Check whether session is locked exclusively.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Obtain an exclusive lock for this session.
[in] | Timeout | Timeout value, in ms. |
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
pure virtual |
Open a session to this IEEE488 instrument.
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
pure virtual |
Read from a IEEE488 instrument: SCPI buffer class variant.
[in] | rBuf | Buffer to receive the data. |
[in] | Append | Whether to append to the existing data. |
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
pure virtual |
Read status byte.
[out] | rSTB | Status byte. |
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
inline |
Set the timeout for this instrument.
[in] | Timeout | Timeout for operations during this session, in ms. |
Definition at line 132 of file IEEE488Instrument.h.
|
inline |
Definition at line 93 of file IEEE488Instrument.h.
|
pure virtual |
Return description of status word.
[in] | Status | Status word. |
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
pure virtual |
Last operation timed out.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Unlock the session.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Write to a IEEE488 instrument: C string variant.
[in] | Str | Data to write. |
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
pure virtual |
Write to a IEEE488 instrument: SCPI buffer class variant.
[in] | rBuf | Data to write. |
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
pure virtual |
Write to a IEEE488 instrument: C++ string variant.
[in] | rStr | Data to write. |
Implemented in MTL::Instrument::CVISAInstrument, and MTL::Instrument::CUSBTMCInstrument.
|
mutableprotected |
Lock onto the class interface.
Definition at line 68 of file IEEE488Instrument.h.
|
protected |
Reference to the associated resource manager.
Definition at line 69 of file IEEE488Instrument.h.
|
protected |
Resource name of the instrument.
Definition at line 70 of file IEEE488Instrument.h.
|
protected |
Status of last operation.
Definition at line 71 of file IEEE488Instrument.h.
|
protected |
Timeout for operations.
Definition at line 72 of file IEEE488Instrument.h.