|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--be.ac.ulb.gpib.WindowsGPIBDriver
A GPIB driver based on NI (www.ni.com) API.
Constructor Summary | |
WindowsGPIBDriver()
|
Method Summary | |
void |
clearDevice(int _descr)
Clears a specific device |
be.ac.ulb.gpib.GPIBDevice |
getDevice(int address)
returns a GPIB device using its GPIB address. |
void |
initialize()
initialize() will be called by the GPIBDeviceIdentifier's static initializer. |
int |
openDevice(int _address)
Opens a device and returns a descriptor integer that can be used internally later |
java.lang.String |
sendCommand(java.lang.String command,
int address)
sends a valid GPIB command to the device. |
void |
writeCommand(java.lang.String command,
int address)
sends a valid GPIB command to the device. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WindowsGPIBDriver()
Method Detail |
public void initialize()
GPIBDriver
initialize
in interface GPIBDriver
public be.ac.ulb.gpib.GPIBDevice getDevice(int address)
GPIBDriver
getDevice
in interface GPIBDriver
address
- the GPIB address (from 0 to 31)public void clearDevice(int _descr) throws java.io.IOException
GPIBDriver
clearDevice
in interface GPIBDriver
_descr
- an unique integer referecing the device internally. It is not necessarely the GPIB address.
java.io.IOException
public int openDevice(int _address) throws java.io.IOException
openDevice
in interface GPIBDriver
_address
- the GPIB address of the device.
java.io.IOException
public java.lang.String sendCommand(java.lang.String command, int address) throws java.io.IOException
GPIBDriver
sendCommand
in interface GPIBDriver
java.io.IOException
public void writeCommand(java.lang.String command, int address) throws java.io.IOException
GPIBDriver
writeCommand
in interface GPIBDriver
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |