You are here

How can we log all the real time data like motor current, battery current,etc to analyze them later?

21 posts / 0 new
Last post
vimi94
Offline
Last seen: 3 weeks 1 day ago
Joined: 2019-04-26 16:24
Posts: 18
How can we log all the real time data like motor current, battery current,etc to analyze them later?

Hi, can anyone tell me if there is a way to log all the real-time data in excel file or something like it so that I can analyze them later?

 

wilsonliang777
Offline
Last seen: 7 months 1 week ago
VESC Free
Joined: 2018-11-17 09:45
Posts: 1

I have been trying to figuring that out too.  One way is to used another app.   

vimi94
Offline
Last seen: 3 weeks 1 day ago
Joined: 2019-04-26 16:24
Posts: 18

Please let me know if you figure out something. I don't want to use another app

benjamin
Offline
Last seen: 6 days 20 hours ago
Joined: 2016-12-26 15:20
Posts: 357

Logging to CSV is now implemented in the latest version of VESC Tool. It also works in the android version if you want to log data on the go.

I also made a quite boring screen capture of the implementation process:

 

charper
Offline
Last seen: 2 months 1 week ago
VESC Free
Joined: 2018-11-15 01:10
Posts: 4

I've been trying to figure out the logging but cannot seem to find the file I created. Using the android app. Can someone explain how it works? I saved a .CSV file on the SD card and go to file:///sdcard and nothing is there . 

Chris Harper

vimi94
Offline
Last seen: 3 weeks 1 day ago
Joined: 2019-04-26 16:24
Posts: 18

Thanks alott Benjamin for the video and updating the vesc tool with logging feature.!!

mad_engineer
Offline
Last seen: 2 months 2 weeks ago
VESC Free
Joined: 2019-04-18 11:26
Posts: 1

I tried the RT logging function today and after some initial problems (had to set memory access manually on my A5 2016), I got it to work. I chose the folder "documents" which can be found in the explorer easily.

But somehow it does not log mostly of the time and just creates a 0B file. It worked only once out of 10 times, but tbh I don't know anymore what I did differently there.

My usual workflow was:
- connect, switch folder, start logging by applying the checkbox
- swap to realtime data window
- ride
- stop logging by swapping to developer window and removing the check in the checkbox
- disconnect

What triggers the saving process? Should I not swap the window to another but "Developer"?

I am aware that this is still deep beta, but a legend and a unit row would improve the readability of the .csv file - maybe Benjamin can include some sort of header there?

charper
Offline
Last seen: 2 months 1 week ago
VESC Free
Joined: 2018-11-15 01:10
Posts: 4

Hey thanks for the tip on the storage permissions. I don't any errors now and it creates a log file. I'll give it a real test later

 

Chris Harper

vimi94
Offline
Last seen: 3 weeks 1 day ago
Joined: 2019-04-26 16:24
Posts: 18

Hey Benjamin, 

Is there a way to log the current for all three phases? Also, How does the VESC tool calculate the phase currents for digital filtering?

benjamin
Offline
Last seen: 6 days 20 hours ago
Joined: 2016-12-26 15:20
Posts: 357

The latest version has some updates on the logging, and a help text with what the rows mean. It should also work from any tab now, not just the rt tab. I'm also working on a setting to keep the screen on.

Logging the phase currents in real time is not possible, as the required bandwidth would be way too high. The current implementation in sampled data stores them in a RAM buffer on the VESC, and sends that buffer when it is full.

vimi94
Offline
Last seen: 3 weeks 1 day ago
Joined: 2019-04-26 16:24
Posts: 18

So, is there any other way to obtain and log the values of phase currents? or reconstruct or calculate the values of phase currents from available data? 

Since the values of Id and Iq are logged in from real-time tab, I am confused why logging of phase currents would be a problem. I mean the values Id and Iq are derived from phase currents using Clarks's and Park's transformation. 

 

 

 

benjamin
Offline
Last seen: 6 days 20 hours ago
Joined: 2016-12-26 15:20
Posts: 357

id and iq are aligned with the rotor and only change slowly. The phase currents rotate at the electrical frequency, and the motor can rotate several electrical revolutions between two samples with the RT sample rate.

vimi94
Offline
Last seen: 3 weeks 1 day ago
Joined: 2019-04-26 16:24
Posts: 18

okay, now I understand. Is there any way to calculate or obtain the values of phase currents?

benjamin
Offline
Last seen: 6 days 20 hours ago
Joined: 2016-12-26 15:20
Posts: 357

You can use the sampled data to analyze a couple of milliseconds at a time (which can be really useful), but there is no way to stream the data in real time on any port as there is too much of it. Do you need to export the sampled data, even if it is just a few revolutions?

vimi94
Offline
Last seen: 3 weeks 1 day ago
Joined: 2019-04-26 16:24
Posts: 18

Dear Benjamin,

Yes, I need to export sampled data, even if it is for a few milliseconds.

benjamin
Offline
Last seen: 6 days 20 hours ago
Joined: 2016-12-26 15:20
Posts: 357

I have added a button to the sampled data page to save it as a CSV file (was an easy fix). VESC tool is building now, so if you download it around 20 minutes after this reply it should be there.

vimi94
Offline
Last seen: 3 weeks 1 day ago
Joined: 2019-04-26 16:24
Posts: 18

Dear Benjamin,

Thank you so much for adding that feature, I am really grateful for your help.

Kind Regards,

 

 

jungaocqu
Offline
Last seen: 4 days 18 hours ago
VESC Free
Joined: 2019-02-07 15:32
Posts: 2

ERROR on windows 7 VESC tool V1.16

Can you please help to check this error when trying to log data on windows 7, "Could not open file for writing"

ampinto
Offline
Last seen: 3 weeks 23 hours ago
VESC Free
Joined: 2018-07-04 16:09
Posts: 2

Hi jungaocqu,

I got the same issue with VESC TOOL V1.25  "Could not open file for writing" on WIN7 and WIN10, tried various PC and got always the same message .

The LOG directory is under the vesc_tool.exe same location as required.

If the data logging is really functional on Windows, can someone point to a solution for this issue? I really need to use this great functionality.

Thanks

dk-odense
Offline
Last seen: 18 hours 10 min ago
VESC Free
Joined: 2017-09-06 08:01
Posts: 6

SAME ISSUE HERE!

"Could not open file for writing" on WIN7 and WIN10"

FRANK - Benjamin. Come on guys?

 

benjamin
Offline
Last seen: 6 days 20 hours ago
Joined: 2016-12-26 15:20
Posts: 357

I had a quick look, and apparently you cannot have colons in filenames on windows. This will be fixed in the next version of vesc tool.