(
boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)
| 452 | } |
| 453 | |
| 454 | public static getSamplingRate( |
| 455 | boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number |
| 456 | { |
| 457 | const samplingRate = [0]; |
| 458 | const res = BoardControllerDLL.getInstance().getSamplingRate(boardId, preset, samplingRate); |
| 459 | if (res !== BrainFlowExitCodes.STATUS_OK) |
| 460 | { |
| 461 | throw new BrainFlowError (res, 'Could not get sampling rate'); |
| 462 | } |
| 463 | return samplingRate[0]; |
| 464 | } |
| 465 | |
| 466 | public static getEegChannels( |
| 467 | boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[] |
no test coverage detected