Class CounterJNI

    • Constructor Detail

      • CounterJNI

        public CounterJNI()
    • Method Detail

      • initializeCounter

        public static int initializeCounter​(int mode,
                                            IntBuffer index)
      • freeCounter

        public static void freeCounter​(int counterHandle)
      • setCounterAverageSize

        public static void setCounterAverageSize​(int counterHandle,
                                                 int size)
      • setCounterUpSource

        public static void setCounterUpSource​(int counterHandle,
                                              int digitalSourceHandle,
                                              int analogTriggerType)
      • setCounterUpSourceEdge

        public static void setCounterUpSourceEdge​(int counterHandle,
                                                  boolean risingEdge,
                                                  boolean fallingEdge)
      • clearCounterUpSource

        public static void clearCounterUpSource​(int counterHandle)
      • setCounterDownSource

        public static void setCounterDownSource​(int counterHandle,
                                                int digitalSourceHandle,
                                                int analogTriggerType)
      • setCounterDownSourceEdge

        public static void setCounterDownSourceEdge​(int counterHandle,
                                                    boolean risingEdge,
                                                    boolean fallingEdge)
      • clearCounterDownSource

        public static void clearCounterDownSource​(int counterHandle)
      • setCounterUpDownMode

        public static void setCounterUpDownMode​(int counterHandle)
      • setCounterExternalDirectionMode

        public static void setCounterExternalDirectionMode​(int counterHandle)
      • setCounterSemiPeriodMode

        public static void setCounterSemiPeriodMode​(int counterHandle,
                                                    boolean highSemiPeriod)
      • setCounterPulseLengthMode

        public static void setCounterPulseLengthMode​(int counterHandle,
                                                     double threshold)
      • getCounterSamplesToAverage

        public static int getCounterSamplesToAverage​(int counterHandle)
      • setCounterSamplesToAverage

        public static void setCounterSamplesToAverage​(int counterHandle,
                                                      int samplesToAverage)
      • resetCounter

        public static void resetCounter​(int counterHandle)
      • getCounter

        public static int getCounter​(int counterHandle)
      • getCounterPeriod

        public static double getCounterPeriod​(int counterHandle)
      • setCounterMaxPeriod

        public static void setCounterMaxPeriod​(int counterHandle,
                                               double maxPeriod)
      • setCounterUpdateWhenEmpty

        public static void setCounterUpdateWhenEmpty​(int counterHandle,
                                                     boolean enabled)
      • getCounterStopped

        public static boolean getCounterStopped​(int counterHandle)
      • getCounterDirection

        public static boolean getCounterDirection​(int counterHandle)
      • setCounterReverseDirection

        public static void setCounterReverseDirection​(int counterHandle,
                                                      boolean reverseDirection)