Beispiel #1
0
 /// <summary>
 /// get sampling rate for this board id
 /// </summary>
 /// <param name="board_id"></param>
 /// <returns>sampling rate</returns>
 /// <exception cref="BrainFlowException">If this board has no such data exit code is UNSUPPORTED_BOARD_ERROR</exception>
 public static int get_sampling_rate (int board_id)
 {
     int[] val = new int[1];
     int res = BoardControllerLibrary.get_sampling_rate (board_id, val);
     if (res != (int)CustomExitCodes.STATUS_OK)
     {
         throw new BrainFlowException (res);
     }
     return val[0];
 }