Package mcc.mccjna
Class MCCJNA
java.lang.Object
mcc.mccjna.MCCJNA
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface to the MCCLibrary JNA calls. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<MCCBoardInfo>
static String
getErrorMessage
(int errCode) Get an error message in a string format.static String
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).static long
static MCCJNA.MCCLibrary
-
Constructor Details
-
MCCJNA
public MCCJNA()
-
-
Method Details
-
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
- Returns:
- a list of information on all installed boards. Returns null if no MCC library is available
-
getErrorMessage
Get an error message in a string format.- Parameters:
errCode
- error code- Returns:
- Error string
-
getMccLibrary
- Returns:
- the mccLibrary
-
getLoadNanos
public static long getLoadNanos()- Returns:
- the loadNanos
-