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

Method getAnalogChannels

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

Source from the content-addressed store, hash-verified

605 }
606
607 public static getAnalogChannels(
608 boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[]
609 {
610 const numChannels = [0];
611 const сhannels = [...new Array (512).fill(0)];
612 const res = BoardControllerDLL.getInstance().getAnalogChannels(
613 boardId, preset, сhannels, numChannels);
614 if (res !== BrainFlowExitCodes.STATUS_OK)
615 {
616 throw new BrainFlowError (res, 'Could not get board info');
617 }
618 return сhannels.slice(0, numChannels[0]);
619 }
620
621 public static getGyroChannels(
622 boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number[]

Callers

nothing calls this directly

Calls 2

fillMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected