Fills the list of computational devices available


int miraacq_ScanDevices(makernel *pma)


Input: 

  • Runtime environment pointer pma


Output: Result: MIRA_OK or error code


Description:

miraacq_ScanDevices searches for acquisition devices available. After calling miraacq_ScanDevices, one can get device count using miraacq_GetDeviceCount and names with miraacq_GetDeviceName.


Example: 

    MIRAACQ_CHECK( miraacq_ScanDevices(pma) );

    const int devCount=miraacq_GetDeviceCount(pma);

    printf("\n%d devices:\n",devCount);

    for(int i=0;i<devCount;i++) {

        printf("%d : %s\n",i, miraacq_GetDeviceName(pma,i));

    }


The MIRAACQ_CHECK macro checks the output result. If error occurs, the program flow is terminated. See miraacq.h definition.