#include <GPIBEquipment.h>
Inheritance diagram for LibGPIB::GPIBEquipment:

Public Methods | |
| void | SetController (GPIBController *controller) |
| Set the controller for this device. More... | |
| void | Clear () |
| Send a clear signal to the device. | |
| int | PrimAddress (const int addr) |
| Set the primary address of the device. | |
| int | PrimAddress () const |
| Get the primary address of the device. | |
| int | SecAddress (const int addr) |
| Set the secondary address of the device. | |
| int | SecAddress () const |
| Get the secondary address of the device. | |
| int | DeviceID () const |
| Get the device ID of the device. | |
| void | SendCommand (const string command) |
| Send the specified string to a given device. | |
| const string | ReadData (int read_bytes) |
| Read data from the specified device. | |
| void | SetLocal () |
| Set the device in local mode. | |
| GPIBEquipment () | |
| The default constructor. | |
| virtual | ~GPIBEquipment () |
| The default destructor. | |
Public Attributes | |
| friend | GPIBEquipmentBuffer |
Protected Methods | |
| GPIBController& | Controller () |
| Returns a reference to the controller for this equipment. | |
Protected Attributes | |
| int | mDeviceID |
| Device ID used by NI488 functions. | |
Private Attributes | |
| int | mAddress |
| The primary GPIB address of this equipment. | |
| int | mSecAddress |
| The secondary GPIB address of the equipment. | |
| GPIBController* | mController |
| The GPIB controller to which this device is connected. | |
| GPIBEquipmentBuffer* | mBuffer |
| The streambuf used to communicate with the GPIBEquipment. | |
One can use this as a base class to contruct classes to access specific GPIB instruments.
Definition at line 220 of file GPIBEquipment.h.
|
The default constructor.
|
The default destructor.
|
Send a clear signal to the device.
|
Returns a reference to the controller for this equipment.
|
|
|
|
Read data from the specified device.
|
|
|
Send the specified string to a given device.
|
Set the controller for this device.
If the equipment is already connected to another controller, it will be disconnected from that controller first. A NULL pointer can be passed to this routine to indicate that the equipment is not to be connected to any controller.
| controller | The GPIB controller to which this device will be connected. If NULL, the device will be not connected to any controller. |
|
Set the device in local mode.
|
Definition at line 222 of file GPIBEquipment.h.
|
|
The streambuf used to communicate with the GPIBEquipment.
Definition at line 340 of file GPIBEquipment.h.
|
The GPIB controller to which this device is connected.
Definition at line 335 of file GPIBEquipment.h.
|
|
1.1.4 written by Dimitri van Heesch,
© 1997-2000