MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / runExample

Function runExample

nodejs_package/tests/brainflow_get_data.ts:8–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8async function runExample (): Promise<void>
9{
10 const board = new BoardShim (BoardIds.SYNTHETIC_BOARD, {});
11 board.prepareSession();
12 board.startStream();
13 await sleep (3000);
14 board.stopStream();
15 const data = board.getBoardData();
16 board.releaseSession();
17 console.info('Data');
18 console.info(data);
19}
20
21runExample ();

Callers 1

Calls 6

prepareSessionMethod · 0.95
startStreamMethod · 0.95
stopStreamMethod · 0.95
getBoardDataMethod · 0.95
releaseSessionMethod · 0.95
sleepFunction · 0.70

Tested by

no test coverage detected