jGpibEnet
Class GpibEnetDriver

java.lang.Object
  extended by jGpibEnet.GpibEnetDriver

public class GpibEnetDriver
extends java.lang.Object


Constructor Summary
GpibEnetDriver()
          Constructor For This Class.
GpibEnetDriver(ControllerType type, java.lang.String ipAddress)
          Constructor For This Class.
GpibEnetDriver(java.lang.String ipAddress)
          Constructor For This Class.
 
Method Summary
 void clear()
          Clear Device
 void closeDevice()
          Close Communication With Device
 java.lang.Integer getCommTimeoutParam()
           
 ControllerType getControllerType()
           
 java.util.logging.Level getDebugLevel()
           
 java.lang.String getIpAddress()
           
 void openDevice(int gpibAddr, int timeOutms)
          Open Device To Prepare It For Communication
 java.lang.String read(int size)
          Read Data From Instrument - If Communication Timeout (not GPIB) has been exceeded Then This Method Will Re-Establish Communication First.
 void setCommTimeoutParam(java.lang.Integer commTimeoutParam)
          This Needs To Be Set Before Calling openDevice
 void setControllerType(ControllerType controllerType)
           
 void setDebugLevel(java.util.logging.Level debugLevel)
           
 void setIpAddress(java.lang.String ipAddress)
           
 void write(java.lang.String data)
          Write Data To Device - If Communication Timeout (not GPIB) has been exceeded Then This Method Will Re-Establish Communication First.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpibEnetDriver

public GpibEnetDriver()
Constructor For This Class. Ip Address Must Be Set Before Calling openDevice() Assumes That The Controller Type is an ICS 8065.

Parameters:
ipAddress - Ip Address Of Controller

GpibEnetDriver

public GpibEnetDriver(java.lang.String ipAddress)
Constructor For This Class. Takes Only Ip Address And Assumes That The Controller Type is an ICS 8065.

Parameters:
ipAddress - Ip Address Of Controller

GpibEnetDriver

public GpibEnetDriver(ControllerType type,
                      java.lang.String ipAddress)
Constructor For This Class.

Parameters:
type - Controller Type
ipAddress - Ip Address Of Controller
Method Detail

openDevice

public void openDevice(int gpibAddr,
                       int timeOutms)
                throws GpibEnetException
Open Device To Prepare It For Communication

Parameters:
gpibAddr - Gpib Address Of Instrument You Wish To Talk To.
timeOutms - Gpib Timeout In milliseconds
Throws:
GpibEnetException

closeDevice

public void closeDevice()
Close Communication With Device


write

public void write(java.lang.String data)
           throws GpibEnetException
Write Data To Device - If Communication Timeout (not GPIB) has been exceeded Then This Method Will Re-Establish Communication First.

Parameters:
data - The Data You Wish To Write To The Device
Throws:
GpibEnetException

read

public java.lang.String read(int size)
                      throws GpibEnetException
Read Data From Instrument - If Communication Timeout (not GPIB) has been exceeded Then This Method Will Re-Establish Communication First.

Parameters:
size - The Size In Bytes - Does not need to be exact but must be at lest the minimum size. This Method Used For Backward Compatibility With Most GPIB Interfaces.
Returns:
Data Read From The Instrument
Throws:
GpibEnetException

clear

public void clear()
           throws GpibEnetException
Clear Device

Throws:
GpibEnetException

getDebugLevel

public java.util.logging.Level getDebugLevel()

setDebugLevel

public void setDebugLevel(java.util.logging.Level debugLevel)

getCommTimeoutParam

public java.lang.Integer getCommTimeoutParam()

setCommTimeoutParam

public void setCommTimeoutParam(java.lang.Integer commTimeoutParam)
This Needs To Be Set Before Calling openDevice

Parameters:
commTimeoutParam - Set Network Timeout in Seconds. If it is null, no value will be set.

getControllerType

public ControllerType getControllerType()

setControllerType

public void setControllerType(ControllerType controllerType)

getIpAddress

public java.lang.String getIpAddress()

setIpAddress

public void setIpAddress(java.lang.String ipAddress)