Return new spectral data from sensor


int miraacq_GetFrame(makernel* pma, void* pBuf,size_t* pFrameID,int timeOut );


Input: 

  • Runtime environment pointer
  • Pointer to external buffer with raw spectral frame data
  • Pointer to size_t value to store frame id of the returned frame
  • Integer timeout


Output: Result code (MIRA_OK or error)


Description:

miraacq_GetFrame returns new data from spectral camera. The function can be only called after acquisition is initialized and started. The provided buffer pointed to by pBuf needs to hold at least number of bytes returned by miraacq_GetFrameSize. The content of pFrameID is set to the ID of a returned frame. On systems that support internal frameID, this value can be used for dropped frame detection. 


MV.C VNIR:

The timeout value needs to be non-zero.