Package jisa.visa

Class DDEDevice

  • All Implemented Interfaces:
    Instrument
    Direct Known Subclasses:
    Bruker70v

    public class DDEDevice
    extends java.lang.Object
    implements Instrument
    • Constructor Detail

      • DDEDevice

        public DDEDevice​(LXIAddress address,
                         java.lang.String service,
                         java.lang.String topic,
                         int timeout)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • DDEDevice

        public DDEDevice​(Address address)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getIDN

        public java.lang.String getIDN()
                                throws java.io.IOException,
                                       DeviceException
        Description copied from interface: Instrument
        Returns an identifying String of the instrument.
        Specified by:
        getIDN in interface Instrument
        Returns:
        Identifying String
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getName

        public java.lang.String getName()
        Description copied from interface: Instrument
        Returns the name of the instrument or channel.
        Specified by:
        getName in interface Instrument
        Returns:
        Name
      • close

        public void close()
                   throws java.io.IOException,
                          DeviceException
        Description copied from interface: Instrument
        Closes the connection to the instrument.
        Specified by:
        close in interface Instrument
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getAddress

        public Address getAddress()
        Description copied from interface: Instrument
        Returns any Address object used to connect to this instrument.
        Specified by:
        getAddress in interface Instrument
        Returns:
        Address object, null if none
      • sendRequest

        public java.lang.String sendRequest​(java.lang.String request)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception