NXT: wires and sensors

 alt.comp.lego-mindstorms    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
NXT: wires and sensors Adam Aulick 10-04-2006
Posted by Adam Aulick on October 4, 2006, 4:25 pm
Please log in for more thread options
In the NXT graphical programming environment, a source block (such as a
motor rotation sensor) and a sink block (such as a variable write)
connected by a wire can be in very different places in the program.

Which value will be used when the sink block using the information is
executed -- the value of the source block at the time that block was
executed, or the value of the source block at the time the sink block
asks for it?

Since the software won't let me run a wire backwards in time from a
source block to an earlier sink on the same thread of execution, I
suspect that we read the sensor only once when the sensor block is
executed, rather than repeatedly each time a block asks for input from
the wire.

But if that's the case, what happens when a wire connects a sink block
on one thread, with a source block on a different thread, and the sink
is executed before the source?

Similar ThreadsPosted
auct: 1 Gb SD cards & Lego Real Robotics RCX 2.0 ($49) Sensors, Motors, cables September 19, 2005, 11:20 pm
just posted $0.99 Lego Sensors, RCX, IR Tower, Motors, Lamp, etc auction ends sunday August 26, 2005, 2:25 pm
opinion on Large lot of Lego sensors, NXT stuff Ultrasonik sensor, Train, Electronic Lego pieces, mini motor July 19, 2007, 9:17 pm

The site map in XML format XML site map
other useful resources:
Official Robosapien Website
Lego Mindstorms Website

Contact Us | Privacy Policy