Wait for event.

Post your EV3 projects, project ideas, etc here!

Moderators: roger, gloomyandy, skoehler

Wait for event.

Postby gwozdziu » Sun Nov 03, 2013 11:10 am

Hi,
Is it possible to wait for some event (like IR buttons or luminosity change by given threshold), in similar way that original labview software does it?
I can endlessly ask for values in a loop, but this is not the best approach here, I believe.
Could you point me to any class and/or example that may be helpful?

Thanks
gwozdziu
New User
 
Posts: 3
Joined: Sat Oct 05, 2013 6:13 pm

Re: Wait for event.

Postby gloomyandy » Sun Nov 03, 2013 9:13 pm

No sorry no way to do that, unless you do it yourself by having another thread poll the sensor (which is in effect what the labview/Lego software is doing). At least if you do it yourself you get to choose how often you poll the sensor...
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3642
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK


Return to EV3 Projects

Who is online

Users browsing this forum: No registered users and 0 guests

more stuff