Recent Activity

  • jaf joined.
    Welcome Aboard!
    5:46PM
  • Welcome Aboard!
    July 24
  • Welcome Aboard!
    July 20
  • Ricardojt and Stud1 joined.
    Welcome Aboard!
    July 20
  • Cyril joined.
    Welcome Aboard!
    July 18
  • Jaysla2009 and sardavend joined.
    Welcome Aboard!
    July 17
  • Welcome Aboard!
    July 14
  • RyanM
    Hi Eric,

    In reference to pymetawear logging I am getting this error:

    libmetawear.mbl_mw_logging_download(c.board, 20,pointer(download_handler))
    ctypes.ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected LP_LogDownloadHandler instance instead of LP_LogDownloadHandler

    when I run this:

    from pymetawear.mbientlab.metawear.cbindings import *

    backend = 'pygatt'
    sensor = sys.argv[1]
    c = MetaWearClient(sensor, backend)

    def progress_update_handler(self,entries_left,total_entries):
            self.updates.append(entries_left)

    def unknown_entry_handler(self, id, epoch, data, length):
            data_ptr=cast(data,POINTER(c_uint))

    libmetawear.mbl_mw_logging_start(c.board,1000)
    signal = libmetawear.mbl_mw_acc_get_acceleration_data_signal(c.board)

    c.logger_created = FnVoid_VoidP(c.logger_ready)

    libmetawear.mbl_mw_datasignal_log(signal,c.logger_created)

    time.sleep(5.0)
    libmetawear.mbl_mw_logging_stop(c.board)


    c.progress_update = FnVoid_UInt_UInt(progress_update_handler)
    c.unknown_entry = FnVoid_UByte_Long_UByteP_UByte(unknown_entry_handler)

    download_handler = LogDownloadHandler(received_progress_update =c.progress_upda$

    libmetawear.mbl_mw_logging_download(c.board, 20,pointer(download_handler))

    The following was added to client.py

        def logger_ready(self,pointer):
            self.loggers.append(pointer)


    and 
    self.loggers = [] 
    to __init__


    I suspect it has something to do with the cbindings.py file that I copied over after building the C++ API.

    Would you happen to have any insights on the fix/as to when pymetawear.logging will be up and running?

    Thanks!
    July 14
    • RyanM
      RyanM
      Never mind, I just learned a ton about the Python interpreter and back on some hot leads
  • Welcome Aboard!
    July 13
  • Gallero and TenNoir joined.
    Welcome Aboard!
    July 11
  • katschf74 joined.
    Welcome Aboard!
    July 7
  • Welcome Aboard!
    July 5
  • Welcome Aboard!
    July 4
  • TomAllen


    Hi Eric,


    I am using the MetaWear CPro. I am trying both of the available apps to log my data on an iPad.



     



    I
    have a query related to sampling frequency, which seems to be a common issue. I set the required sampling
    frequency (e.g. 800 Hz) in the app, log and then download the data. However,
    when I check the time spacing in excel, it does not match the frequency which I
    set in the app. In addition, it is often inconsistent changing with time.

    I am trying to use the sensor to obtain the frequency of an oscillated object, such as a pendulum. To do this I load the acceleration data into Matlab and run an fast Fourier transform to obtain the frequency. When I do this I am using a constant sample rate, as set in the app. However, I am concerned that this might not be correct, based on the time stamp I am getting.

    Please can you clarify.

    Tom

    June 30
  • TomAllen joined.
    Welcome Aboard!
    June 30
  • Welcome Aboard!
    June 26
  • pv000980 joined.
    Welcome Aboard!
    June 24
  • camilor joined.
    Welcome Aboard!
    June 22
  • Welcome Aboard!
    June 21
  • malarram joined.
    Welcome Aboard!
    June 20
  • tmalik and Gtracks joined.
    Welcome Aboard!
    June 16
  • vishwanathkr joined.
    Welcome Aboard!
    June 14
  • LulaNord and dho joined.
    Welcome Aboard!
    June 13
  • dlaughon and Zharko joined.
    Welcome Aboard!
    June 10
  • mitp19, jonahk and SSISSI joined.
    Welcome Aboard!
    June 7
  • richardjeo, arad and june6 joined.
    Welcome Aboard!
    June 6
  • rscott joined.
    Welcome Aboard!
    June 3
  • r08y, jhspp and kenyoneda joined.
    Welcome Aboard!
    June 2
  • iXeiv82 and forkan joined.
    Welcome Aboard!
    May 31
  • Welcome Aboard!
    May 30