openimu_test.py Logs Blank csv Files

18 Feb 2020, 03:55

Hello, I am using Ubuntu 18.04

I am able to run the python webserver and connect to the Aceinna developers site: https://developers.aceinna.com/. The OpenIMU outputs data and graphs beautifully!

I am wanting to run the openimu_test.py script on Ubuntu.
I cloned the github repository locally. When I run the openimu_test.py, the log file ends up empty.

Is there a method to logging non-empty files?

Thank you

Log in to reply
18 Feb 2020, 04:32

Hello. What is openimu_test.py? I seems not included in our official release of the python driver.
If you want to log data into a file, you cna just click this button on https://developers.aceinna.com/devices/record-next
无标题.jpg

18 Feb 2020, 04:37
This post is deleted!
18 Feb 2020, 04:40

Here is a link, the image did not seem to post: https://github.com/Aceinna/python-openimu/tree/master/samples

Is there a python sample for getting the heading from the imu, I would like to put into custom program not using the aceinna developers site.

18 Feb 2020, 04:41

Please always use the master branch or executables.
The image cannot be uploaded successuflly on my computer. However, you can easily find this button beside the "start to play" button.

18 Feb 2020, 04:41

pls try to use master or bugfix branch.
or you can you executable program directly, download: https://developers.aceinna.com/devices/connect. operating and record:https://developers.aceinna.com/devices/record-next

18 Feb 2020, 04:42

This file is for developers to test some function. You should always use webserver.py

18 Feb 2020, 04:45

Does samples/openimu_test.py no longer work?

18 Feb 2020, 04:48

I never use that file. I always use webserver.py

18 Feb 2020, 18:34

Is there an example of a WebSocket or client that would not rely on the https://developers.aceinna.com/devices/connect?

I will not have access to the aceinna website in my project.

19 Feb 2020, 03:27

Actually, it is very easy to modify the source code of the python driver to meet your need. You can find the decoded data in openimu_unpack_output_packet() in openimu.py. Then you can do everything with the data.

However, I believe it is a bug for the driver not logging the data. It will get fixed.

Thank you for your feedback.

Dong

19 Feb 2020, 03:35

Thank you, I will try this next. I look forward to testing !

19 Feb 2020, 04:04

A quick workaround would be to replace the following line in openimiu.py:

with open('app_config/IMU/openimu.json') as json_data:

with

with open('app_config/INS/openimu.json') as json_data:
Log in to reply