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

Function runExample

nodejs_package/tests/markers.ts:8–21  ·  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 (1000);
14 board.insertMarker(1);
15 await sleep (1000);
16 board.stopStream();
17 const data = board.getBoardData();
18 board.releaseSession();
19 console.info('Data');
20 console.info(data);
21}
22
23runExample ();

Callers 1

markers.tsFile · 0.70

Calls 7

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

Tested by

no test coverage detected