Here is a list of tips on NXT-G:
Wait For Given Time -A tip for how to make the robot wait a specified time using an input. (Feature not available in the normal wait block)
My Blocks -A guide or more of a lesson on how my blocks are more efficient than repasted code.
There are several ways on how to make your robot wait for a specified time using an input. This might be useful for some robot aplications.
1st Way

The variable can be replaced with anything that has a number output. The input should be in miliseconds. It should be in the formula:
Seconds x 1000=Input Number
If your number ends as a decimal, round it to the nearest intiger since the NXT can't do "floating point" numbers or decimal numbers.
Ex.
3.4 Sec x 1000=3400
Now you can put the number 3400 in the variable.
Anther Ex.
6.98823 x 1000= 6988.23
That is a "floating point" number and the NXT can't accept that number, so you will have to round it but it will make it more inacurate as it will only wait for 6.988 seconds instead of 6.98823.
2nd Way

The variable can be replaced with anything that has a number output. This is much simpler than the first step and probably less memory consuming. The input should be in miliseconds. It should be in the formula:
Seconds x 1000=Input Number
If your number ends as a decimal, round it to the nearest intiger since the NXT can't do "floating point" numbers or decimal numbers.
Ex.
3.4 Sec x 1000=3400
Now you can put the number 3400 in the variable.
Anther Ex.
6.98823 x 1000= 6988.23
That is a "floating point" number and the NXT can't accept that number, so you will have to round it but it will make it more inacurate as it will only wait for 6.988 seconds instead of 6.98823.
Create a free website at Webs.com