Package jisa.control

Class MotorController

    • Constructor Detail

      • MotorController

        public MotorController​(Returnable<java.lang.Double> frequency,
                               SetGettable<java.lang.Double> voltage,
                               SetGettable<java.lang.Boolean> power)
    • Method Detail

      • calibrate

        public void calibrate​(double minV,
                              double maxV,
                              long maxPeriod)
                       throws java.io.IOException,
                              DeviceException,
                              java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • setFrequency

        public void setFrequency​(double frequency)
                          throws java.io.IOException,
                                 DeviceException
        Throws:
        java.io.IOException
        DeviceException
      • waitForFrequency

        public void waitForFrequency​(double f,
                                     double pctMargin)
                              throws java.io.IOException,
                                     DeviceException,
                                     java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • waitForFrequency

        public void waitForFrequency​(double f)
                              throws java.io.IOException,
                                     DeviceException,
                                     java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • setFrequencyAndWait

        public void setFrequencyAndWait​(double f,
                                        double pctMargin)
                                 throws java.io.IOException,
                                        DeviceException,
                                        java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • setFrequencyAndWait

        public void setFrequencyAndWait​(double f)
                                 throws java.io.IOException,
                                        DeviceException,
                                        java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException