Recording motor amps and battery amps

5 years 3 months ago - 5 years 3 months ago #29533775 by Lyster
Hi.

I have a problem with the SBL2360 controller.
When making a step-response in open loop from the input 300 to 550 and recording the data, I can easily record the setpoint (input) and the encoder RPM (output) with a samplerate of approximately 10 Hz.
I would like to add motor amps to my recording in order to get the parameters of the motor I'm using, but when I record the amps, a lot of the samples are NaN and the samplerate is drastically lowered.
Is there a way to record motor amps at the same rate so I can calculate my parameters?

I am using the most recent firmware version for the SBL2360 (v.1.8d, January 08, 2018)

EDIT: I am only using the Robteq+ software, not Microbasic scripting

// Lyster
Attachments:

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29533776 by Gabriel_Isko
Replied by Gabriel_Isko on topic Recording motor amps and battery amps
It is curious that you are seeing logged NaNs. Our controllers do not currently use any floating point values that are accessible from their query interface, so I imagine that the NaNs are originating in Roborun+ itself.

Post an example log with the NaNs. It will help provide some troubleshooting insight. The key should be finding out where the NaNs are being generated, since it should not be on the controller.

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29533780 by Lyster
Hi Gabriel

I have posted 2 txt files in the first message, one with the NaN's and one without.

When plotting the signals and working with the data, I am using Matlab.

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29533781 by Lyster
I have found and fixed the issue. I am living in Denmark, the data from the motor amps are separated with a comma "1,2" and Matlab can only use periods "1.2".

I just opened the .txt file, changed the commas to periods, and now it works

Please Log in or Create an account to join the conversation.

5 years 3 months ago #29533794 by Gabriel_Isko
Replied by Gabriel_Isko on topic Recording motor amps and battery amps
Haha, yep, I run into decimal confusion all the time. Glad you figured out what was going on!

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.064 seconds