Skip to content

Brainflow does not find the right ANT amplifier when multiple amplifiers are connected to a pc #775

@bdieudonne

Description

@bdieudonne

Describe the bug
Brainflow does not find the right ANT amplifier when multiple amplifiers are connected to a pc

To Reproduce
Connect two different ANT amplifiers to your computer (e.g., one AntNeuroEE411 and one AntNeuroEE511). Then try:

    params = BrainFlowInputParams()
    board_id = BoardIds.ANT_NEURO_EE_411_BOARD  # or BoardIds.ANT_NEURO_EE_511_BOARD
    board = BoardShim(board_id, params)
    board.prepare_session()

One of them will fail with the following error (or the other way around):
[board_logger] [error] No devices found, Board name AntNeuroEE411 does not match board name of connected device AntNeuroEE511

Info

  • Board Id: ANT_NEURO_EE_XXX_BOARD
  • OS running on your PC: any
  • Programming Language and its version: any
  • Architecture(x86, x64, ARM, etc): any
  • Brainflow version: 0.5.18

Suggested solution

  1. Update the function getAmplifier with optional arguments:
    • amplifier type: the function will return the first connected amplifier with given type
    • (optional) amplifier serial number: the function will return the exact amplifier that is asked for
  2. (optional) Update prepare_session to handle params.serial_number

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions