miraacq_Init
Initialize the camera acquisition environment.
makernel* miraacq_Init(const char* path)
Input: Path to a directory with a license file
Output: Runtime environment pointer.
Description:
The miraacq_Init function initializes the camera acquisition environment. It returns a pointer used for any other API function that interacts with the library. We refer to this pointer a "runtime pointer" in the acuisition library reference. Please note this is referring to "acquitision runtime" which differs from "processing runtime" of perClass Mira. The processing runtime is initialized by mira_Init function. Its API is described here.
The acquisition runtime exposes data acquisition from a camera via specific acquisition plugins. Each acquisition plugin name starts, by convention, with miraacq_ string followed by the plugin type and version number. For example, the plugin exposing Headwall MV.C VNIR camera based on Ximea API is named miraacq_ximea_1.6.0.dll
The input is a path to a directory where a license file with .lic extension can be found. Pass "." for the current directory.
After initialization, miraacq_GetErrorMsg provides welcome string listing software version or error message.
Example:
makernel* pma=miraacq_Init(".");
printf("Init: %s", miraacq_GetErrorMsg(pma));
if( pma==NULL ) return;