()
| 6 | } |
| 7 | |
| 8 | async function runExample (): Promise<void> |
| 9 | { |
| 10 | const boardId = BoardIds.SYNTHETIC_BOARD; |
| 11 | const board = new BoardShim (boardId, {}); |
| 12 | board.prepareSession(); |
| 13 | board.startStream(); |
| 14 | await sleep (4000); |
| 15 | board.stopStream(); |
| 16 | const data = board.getBoardData(); |
| 17 | board.releaseSession() |
| 18 | const eegChannels = BoardShim.getEegChannels(boardId); |
| 19 | const samplingRate = BoardShim.getSamplingRate(boardId); |
| 20 | const bandPowers = |
| 21 | DataFilter.getAvgBandPowers(data, [eegChannels[0], eegChannels[1]], samplingRate) |
| 22 | console.info(bandPowers); |
| 23 | } |
| 24 | |
| 25 | runExample (); |
no test coverage detected