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 Link icon

    • MCCJNA Link icon

      public MCCJNA()
  • Method Details Link icon

    • getJnaLoadError Link icon

      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 Link icon

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

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

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

      public static long getLoadNanos()
      Returns:
      the loadNanos