Skip to content

Implement Analog data parsing in Python SDK #109

Open
@daniellasry

Description

@daniellasry

This was brought up in issue: OpenBCI/OpenBCI_WIFI#86
When switching to analog mode, no data is streaming from the Cyton. Example code:

from openbci import wifi as bci
shield = bci.OpenBCIWiFi(ip_address = '192.168.1.141', log=True, high_speed=True)
shield.wifi_write('/2')

def printData(sample):
    print(sample.sample_number)
    print(sample.channel_data)

shield.start_streaming(printData)
shield.loop()

This will print a whole bunch of zeroes.

This is because there is no analog data parsing in the Python SDK. See the empty function here: https://github.com/OpenBCI/OpenBCI_Python/blob/069bbcb9167261d687ec37206d1d2f59ace137d8/openbci/utils/parse.py#L140-L141

The implementation should be similar to the one in the NodeJS code. See here, and here

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions