EV3 and threading

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

EV3 and threading

Postby ruperty » Sun Jul 13, 2014 1:14 pm

I have an application to run on the EV3 which will continuously access multiple sensors and motors, and I am wondering if I need to consider running different threads for them, rather than my current scheme of accessing them serially. That is, in each iteration I may be reading 3 sensors, reading 4 motors and writing 4 motors, do any of the methods take much significant time to return?

Any thoughts?
Active User
Posts: 114
Joined: Sun Oct 14, 2007 11:21 am

Re: EV3 and threading

Postby gloomyandy » Sun Jul 13, 2014 3:04 pm

Why not just try it and see? Without knowing what sensor you are trying to use, and what particular motor operations it really is not possible to make any useful comment. Obviously you will need to avoid the blocking versions of the motor calls. I would always do things serially unless you find a problem, people are not good at writing multi-threaded code.
User avatar
leJOS Team Member
Posts: 4077
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Return to EV3 Software

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff