Package jisa.control

Class Synch


  • public class Synch
    extends java.lang.Object
    • Constructor Detail

      • Synch

        public Synch()
    • Method Detail

      • waitForCondition

        public static void waitForCondition​(ICondition condition,
                                            int interval)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • waitForParamWithinRange

        public static void waitForParamWithinRange​(DoubleReturn valueToCheck,
                                                   double minValue,
                                                   double maxValue,
                                                   int interval)
                                            throws java.io.IOException,
                                                   DeviceException,
                                                   java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • waitForParamWithinError

        public static void waitForParamWithinError​(DoubleReturn valueToCheck,
                                                   double target,
                                                   double errorPct,
                                                   int interval)
                                            throws java.io.IOException,
                                                   DeviceException,
                                                   java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • waitForParamStable

        public static void waitForParamStable​(DoubleReturn valueToCheck,
                                              double errorPct,
                                              int interval,
                                              long duration)
                                       throws java.io.IOException,
                                              DeviceException,
                                              java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • waitForParamStableMaxTime

        public static void waitForParamStableMaxTime​(DoubleReturn valueToCheck,
                                                     double errorPct,
                                                     int interval,
                                                     long duration,
                                                     long maxTime)
                                              throws java.io.IOException,
                                                     DeviceException,
                                                     java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • waitForStableTarget

        public static void waitForStableTarget​(Returnable<java.lang.Double> valueToCheck,
                                               double target,
                                               double pctMargin,
                                               int interval,
                                               long duration)
                                        throws java.io.IOException,
                                               DeviceException,
                                               java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException
      • waitForStableTargetMaxTime

        public static void waitForStableTargetMaxTime​(Returnable<java.lang.Double> valueToCheck,
                                                      double target,
                                                      double pctMargin,
                                                      int interval,
                                                      long duration,
                                                      long maxtime)
                                               throws java.io.IOException,
                                                      DeviceException,
                                                      java.lang.InterruptedException
        Throws:
        java.io.IOException
        DeviceException
        java.lang.InterruptedException