miraacq_OpenDevice
Opens specific acquisition device
int miraacq_OpenDevice(makernel* pma,int devInd)
Input:
- Runtime environment pointer
- Device index
Output: Result code (MIRA_OK or error)
Description:
miraacq_OpenDevice opens the specified acquisition device. The device list needs to be constructed by miraacq_ScanDevices.
Example:
MIRAACQ_CHECK( miraacq_ScanDevices(pma) );
int deviceInd=0; // here we open the device 0
MIRAACQ_CHECK( miraacq_OpenDevice(pma,deviceInd) );
printf("Device opened: %d '%s'\n",deviceInd,miraacq_GetDeviceName(pma,deviceInd));
The MIRAACQ_CHECK macro checks the output result. See the usage example in miraacq_ScanDevices and miraacq.h for details.