Initializes the camera acquisition kernel.


makernel* miraacq_Init(const char* pLicenseDir);


Parameters:

  • pLicenseDir: Path to a directory containing a license file.


Return value:

A pointer to the camera acquisition kernel or NULL if there was an error.


Description:

miraacq_Init initializes the camera acquisition kernel, which can then be used for almost all other perClass Camera API functions to control cameras with. After successful initialization, miraacq_GetErrorMsg will return a welcome string containing the version (miraacq_GetVersion) and type (miraacq_GetRecorderType). The kernel can be deallocated using miraacq_Release.


Example:

  1. makernelpma = miraacq_Init(".");
  2. printf("Init: %s\n", miraacq_GetErrorMsg(pma));


Output:

perClass Acquisition plugin version 4.2 (16-feb-2023) (acq Ximea)