Insert Marker to Data Stream :param value: value to insert :type value: float :param preset: preset :type preset: int :return: board id :rtype: int
(self, value: float, preset: int = BrainFlowPresets.DEFAULT_PRESET)
| 1405 | return sampling_rate[0] |
| 1406 | |
| 1407 | def insert_marker(self, value: float, preset: int = BrainFlowPresets.DEFAULT_PRESET) -> None: |
| 1408 | """Insert Marker to Data Stream |
| 1409 | |
| 1410 | :param value: value to insert |
| 1411 | :type value: float |
| 1412 | :param preset: preset |
| 1413 | :type preset: int |
| 1414 | :return: board id |
| 1415 | :rtype: int |
| 1416 | """ |
| 1417 | |
| 1418 | res = BoardControllerDLL.get_instance().insert_marker(value, preset, self.board_id, self.input_json) |
| 1419 | if res != BrainFlowExitCodes.STATUS_OK.value: |
| 1420 | raise BrainFlowError('unable to insert marker', res) |
| 1421 | |
| 1422 | def is_prepared(self) -> bool: |
| 1423 | """Check if session is ready or not |
no test coverage detected