()
| 6 | } |
| 7 | |
| 8 | async 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.getCurrentBoardData(10); |
| 16 | board.releaseSession() |
| 17 | console.info('Data'); |
| 18 | console.info(data); |
| 19 | DataFilter.writeFile(data, 'test.csv', 'w'); |
| 20 | const dataRestored = DataFilter.readFile('test.csv'); |
| 21 | console.info('Data restored'); |
| 22 | console.info(dataRestored); |
| 23 | DataFilter.writeFile(dataRestored, 'test2.csv', 'w'); |
| 24 | } |
| 25 | |
| 26 | runExample (); |
no test coverage detected