/// <summary> /// get number of rows in returned by get_board_data() 2d array /// </summary> /// <param name="board_id"></param> /// <returns>number of rows in 2d array</returns> /// <exception cref="BrainFlowException">If this board has no such data exit code is UNSUPPORTED_BOARD_ERROR</exception> public static int get_num_rows (int board_id) { int[] val = new int[1]; int res = BoardControllerLibrary.get_num_rows (board_id, val); if (res != (int)CustomExitCodes.STATUS_OK) { throw new BrainFlowException (res); } return val[0]; }