Python SDK - metawear board initialization parameters

In the C++ documentation the function "libmetawear.mbl_mw_metawearboard_initialize" has three parameters and in the has two parameters.
When I'm trying to execute the example (using Python SDK), I'm getting error message below:

root@debian:/home/user/Downloads/MetaWear-SDK-Python# python XX:XX:XX:XX:XX:XX
error 1537656591.703993: Error on line: 296 (src/ Operation now in progress
Traceback (most recent call last):
File "", line 17, in <module>
libmetawear.mbl_mw_metawearboard_initialize(device.board, init_handler)
TypeError: this function takes at least 3 arguments (2 given)

Why the function has only two parameters here?



  • edited September 23

    Just for explanation what I'm trying to do with Python-SDK. I want to:
    1. connect to multiple boards and get data from multiple sensors
    2. I want to start logging at all boards at once and
    - 2.1. pause logging
    - 2.2. resume logging
    - 2.3. pause logging
    - 2.4. resume logging
    - 2.5. pause logging
    - 2.6. resume logging
    3. stop logging
    4. Then I want to download the raw data in my computer.

    Using the example I was able to connect to multiple sensors, stream accelerometer data only and save the data in realtime in .csv and .txt format (haven't paused and resumed the streaming yet).
    As I mentioned above, I need this in logging mode and therefore something to start with.
    Any help or example on logging in python will be highly appreciated.


  • Actually will open new thread topic re. logging with python as I think does not belong here.

  • Use the scripts in the examples folder.

    The file is out of date and will be removed; it does the same thing as

Sign In or Register to comment.