ADVANCED

Icon & Quick Hints Example
Begin RCX Hints: Use this icon when you want to send a program to a specific tower (if you have multiple towers) on your computer and an RCX is in front of that tower. This piece of code would send the program to the default port specified.
Begin LASM Hints: Use this icon when you want to initiate the LASM interface (text based program representation) before downloading. This piece of code would launch the LASM interface with these commands.
Begin direct mode Hints: Use this icon to send direct mode commands to a specific tower (if you have multiple towers) on your computer and an RCX is in front of that tower. This piece of code would run motor A for 1 second in direct mode (RCX in front of tower).
Generate LASM command Hints: Use this icon to send direct mode commands to a specific tower (if you have multiple towers) on your computer and an RCX is in front of that tower. This piece of code would send the command Plays 5 to the RCX.
Set modifier value Hints: Use this to change the value of any modifier to any value you want. This piece of code waits for a random amount of time, then sets the blue container to the value of the yellow timer. It then turns on motor A and waits for the value of the blue container. It then turns off motor A.
Set System Parameter Hints: Use this to set the value of any control source to any value you want. To choose the System Parameter, right click (control-click for Mac users) and choose create constant to access the drop down menu. If there is an n before the parameter, the value should be a number. If there is a b before the parameter, the value should be a boolean (true or false). For more information on the control sources, go to Hardware Settings in Detective. (Access Detective in the Projects menu.) This command is for advanced users; use with caution. This program sets the value of the clock to 15 minutes.
Get System Parameter Hints: To use this command, you must be in direct mode. Use this to access the value of any control source. To choose the System Parameter, right click (control-click for Mac users) and choose create constant to access the drop down menu. If there is an n before the parameter, the value should be a number. If there is a b before the parameter, the value should be a boolean (true or false). For more information on the control sources, go to Hardware Settings in Detective. (Access Detective in the Projects menu.) This command is for advanced users; use with caution. To run this example, you must be in direct mode.This code gets the value of the sensor refresh rate and displays it on ROBOLAB's front panel. To create the Value indicator, right click (control-click for Mac users) on the middle right of the icon and choose create indicator.
RCX Direct Global Variable Container Hints: This modifier is used in the same way as the Generic Container. It allows you to access all 255 global variables. This command is for advanced users; USE WITH CAUTION. This program places the value of the rotation sensor in direct global variable container 3. This value is then multiplied by 16 and displayed of the RCX for 2 seconds.
Value of Direct Global Variable Container Hints: This modifier is used in the same way as the Value of Generic Container. It allows you to access the value of all 255 global variables. This command is for advanced users; USE WITH CAUTION. This program places the value of the rotation sensor in direct global variable container 3. This value is then multiplied by 16 and displayed of the RCX for 2 seconds.
RCX Generic Parameter Container This modifier is used in the same way as the Generic Container. It allows you to access any control source. To choose the source, right click (control-click for Mac users) and choose create constant to access the drop down menu. If there is an n before the parameter, the value should be a number. If there is a b before the parameter, the value should be a boolean (true or false). For more information on the control sources, go to Hardware Settings in Detective. (Access Detective in the Projects menu.) This command is for very advanced users; USE WITH EXTREME CAUTION. This program places the value of the rotation sensor in a generic parameter container called variable 0 (the red container). This value is then multiplied by 16 and displayed of the RCX for 2 seconds.
Value of Generic Parameter Container Hints: This modifier is used in the same way as the Value of Generic Container. It allows you to access the value of any control source. To choose the source, right click (control-click for Mac users) and choose create constant to access the drop down menu. If there is an n before the parameter, the value should be a number. If there is a b before the parameter, the value should be a boolean (true or false). For more information on the control sources, go to Hardware Settings in Detective. (Access Detective in the Projects menu.) This command is for very advanced users; USE WITH EXTREME CAUTION. This program places the value of the rotation sensor in a generic parameter container called variable 0 (the red container). This value is then multiplied by 16 and displayed of the RCX for 2 seconds.
Optimize RCX Hints: This command to optimize performance of the RCX. It maximizes the sensor refresh rate, freezes the LCD display (will not update), removes motor transition delays, and brakes the motor between PWM pulses to achieve linear motor behavior. This command should ONLY be used for programs that require EXTREMELY rapid response. This program uses the Optimize RCX command before the Stay Still behavior. It will allow a single motor RCX car with a rotation sensor to remain in place and return to its place after it is pushed.