![]() |
THM1176InstrumentManager 1.2
Qt Object abstraction for Metrolab THM1176
|
IEEE488 instrument class. More...
#include <IEEE488Instrument.h>


Public Member Functions | |
| CIEEE488Instrument (CIEEE488ResourceManager &rRM, tResourceName Rsrc) | |
| Constructor. | |
| virtual | ~CIEEE488Instrument () |
| virtual bool | Open (void)=0 |
| Open a session to this IEEE488 instrument. | |
| virtual void | Close ()=0 |
| Close session to this instrument. | |
| virtual bool | IsOpen ()=0 |
| Check whether a session to this instrument is open. | |
| I32 | Status (void) |
| virtual std::string | StatusDescription (I32 Status)=0 |
| Return description of status word. | |
| virtual bool | Timeout (void)=0 |
| Last operation timed out. | |
| virtual bool | Write (const char *Str)=0 |
| Write to a IEEE488 instrument: C string variant. | |
| virtual bool | Write (const std::string &rStr)=0 |
| Write to a IEEE488 instrument: C++ string variant. | |
| virtual bool | Write (const CSCPIBuffer &rBuf)=0 |
| Write to a IEEE488 instrument: SCPI buffer class variant. | |
| virtual bool | Read (CSCPIBuffer &rBuf, bool Append=false)=0 |
| Read from a IEEE488 instrument: SCPI buffer class variant. | |
| bool | SetTimeout (U32 Timeout) |
| Set the timeout for this instrument. | |
| U32 | GetTimeout (void) |
| Return the timeout for this instrument. | |
| virtual bool | Clear ()=0 |
| Clear the instrument. | |
| virtual bool | ReadSTB (U16 &rSTB)=0 |
| Read status byte. | |
| virtual bool | AssertTrigger (void)=0 |
| Assert a trigger. | |
| virtual bool | LockExclusive (U32 Timeout)=0 |
| Obtain an exclusive lock for this session. | |
| virtual bool | Unlock ()=0 |
| Unlock the session. | |
| virtual bool | LockedExclusive ()=0 |
| Check whether session is locked exclusively. | |
| virtual bool | EnableEvent (void)=0 |
| Enable service requests. | |
| virtual bool | DisableEvent (void)=0 |
| Disable service requests. | |
| virtual bool | WaitOnEvent (U32 Timeout)=0 |
| Wait for a service request. | |
| virtual bool | DiscardEvents (void)=0 |
| Discard service requests. | |
Protected Attributes | |
| CRecursiveMutex | m_Lock |
| Lock onto the class interface. | |
| CIEEE488ResourceManager & | m_rRrsrcMan |
| Reference to the associated resource manager. | |
| tResourceName | m_Rsrc |
| Resource name of the instrument. | |
| I32 | m_Status |
| Status of last operation. | |
| U32 | m_Timeout |
| Timeout for operations. | |
Static Protected Attributes | |
| static const I32 | IEEE488_DEFAULT_TIMEOUT = 100 |
| Default timeout (ms). | |
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::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
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.
|
pure virtual |
Disable service requests.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Discard service requests.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Enable service requests.
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::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Open a session to this IEEE488 instrument.
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
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::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Read status byte.
| [out] | rSTB | Status byte. |
Implemented in 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::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
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 |
Wait for a service request.
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::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Write to a IEEE488 instrument: SCPI buffer class variant.
| [in] | rBuf | Data to write. |
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
pure virtual |
Write to a IEEE488 instrument: C++ string variant.
| [in] | rStr | Data to write. |
Implemented in MTL::Instrument::CUSBTMCInstrument, and MTL::Instrument::CVISAInstrument.
|
staticprotected |
Default timeout (ms).
Definition at line 65 of file IEEE488Instrument.h.
|
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.