Package mcc.mccjna

Class MCCJNA

java.lang.Object
mcc.mccjna.MCCJNA

public class MCCJNA extends Object
JNA interface for Measurement Computing acquisition boards.

Implements C functions documented at https://www.mccdaq.com/pdfs/manuals/Mcculw_WebHelp/ULStart.htm

Author:
Doug Gillespie
  • Constructor Details

    • MCCJNA

      public MCCJNA()
  • Method Details

    • getJnaLoadError

      public static String getJnaLoadError()
      Get the error string returned if the UL fails to load (will probably be because the library couldn't be found on the system, but may occur if the library changes are we try to load functions that no longer exist).
      Returns:
    • getBoardInformation

      public static ArrayList<MCCBoardInfo> getBoardInformation()
      Returns:
      a list of information on all installed boards. Returns null if no MCC library is available
    • getErrorMessage

      public static String getErrorMessage(int errCode)
      Get an error message in a string format.
      Parameters:
      errCode - error code
      Returns:
      Error string
    • getMccLibrary

      public static MCCJNA.MCCLibrary getMccLibrary()
      Returns:
      the mccLibrary
    • getLoadNanos

      public static long getLoadNanos()
      Returns:
      the loadNanos