NXJ and maximum sampling time

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

Moderators: 99jonathan, roger, imaqine

NXJ and maximum sampling time

Postby epokh » Wed Apr 25, 2007 3:37 pm

Is there a way to find out the maximum sampling time the lejos vm can reach? I'm implementing a biquadratic filter class in java (I mean already finished). How can i check it?
Thanks.

P.S.
The translated question is: if the vm guarantees a periodic scheduling of a task. So if lejos is preemptive I would set a task with high priority and manage it to be executed periodically.
epokh
Novice
 
Posts: 26
Joined: Wed Feb 21, 2007 5:46 pm

Postby lawrie » Tue May 01, 2007 7:00 pm

lejos NXJ is currently set to preempt the running thread every 2 milliseconds. It uses a 1 millisecond interrupt to generate a tick, and TICKS_PER_TIME_SLICE is set to 2 on the NXT. It was set to 20 on the RCX.
lawrie
leJOS Team Member
 
Posts: 921
Joined: Mon Feb 05, 2007 1:27 pm

Postby epokh » Thu May 03, 2007 1:45 pm

Ah oky this is clear. So I will set a maxium limit of let's say 4 or 6 millisiseconds. Thanks. 8)
epokh
Novice
 
Posts: 26
Joined: Wed Feb 21, 2007 5:46 pm


Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron
more stuff