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

Method getSamplingRate

nodejs_package/brainflow/board_shim.ts:454–464  ·  view source on GitHub ↗
(
        boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)

Source from the content-addressed store, hash-verified

452 }
453
454 public static getSamplingRate(
455 boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number
456 {
457 const samplingRate = [0];
458 const res = BoardControllerDLL.getInstance().getSamplingRate(boardId, preset, samplingRate);
459 if (res !== BrainFlowExitCodes.STATUS_OK)
460 {
461 throw new BrainFlowError (res, 'Could not get sampling rate');
462 }
463 return samplingRate[0];
464 }
465
466 public static getEegChannels(
467 boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[]

Callers 4

runExampleFunction · 0.80
runExampleFunction · 0.80
runExampleFunction · 0.80
runExampleFunction · 0.80

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected