Library | Building | Programming | Quick Guides Home | Quick Guides to Building | Quick Guides to Programming | LVEE | WeDo
Sending and Recieving Mail
Details for Sending and Recieving Mail
PropertyValue
NameSending and Recieving Mail
Description

Two RCX's can be programmed to communicate with each other using the mail function. Mail represents the passing of integer values between separate RCX's using the IR port. In this example, the same code is used for both the receiver and the sender, so that you may interchange the roles of two RCX's without having to re-program them.

The top half of the first split is the receiving algorithm. Each RCX will wait to receive mail from the other. Once this happens, the integer value received will be placed into the red container. The value is then displayed and the RCX beeps a corresponding number of times. The RCX then waits for mail again.

The bottom half of the first split is the sending algorithm. The user can enter in a mail value to send by pressing touch sensor 1 the desired number of times. For example, if number 3 was to be sent, touch sensor 1 would be pressed 3 times. Once this value is programmed, pressing touch sensor 2 will send the mail out. In general, mail is a useful way for RCX's to pass information to one another. It can be used to trigger responses, send positions, or pass container values.

 

Filenametelephone.vi
Filesize94.96 kB
Filetypevi (Mime Type: application/octet-stream)
Creatormu579
Created On: 05/26/2006 10:43
ViewersEverybody
Maintained byEditor
Hits2406 Hits
Last updated on 05/26/2006 10:44
Homepage
CRC Checksum
MD5 Checksum
Home | About Us | Contact Us
© 2012 Center for Engineering Educational Outreach, Tufts University
© 2012 The LEGO Group. All rights reserved.