Take the 2-minute tour ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

I recently got back into NXT stuff (keep in mind I have a NXT 1.0). My screen was broken,but got that fixed. The software works,but I think the programming doesnt. I made it so If I push a button,the motor moves. I download it,and then all it does is jiggle the motor. I tried making a text block,that didnt work,it just said "Run,Done" in a matter of a split second.

Help me! I really want to program stuff on my computer,and not just a 5 move thing on the NXT it self!

share|improve this question
    
Could you please give us a picture of the program you tried? If you can't embed it in your post yet, please provide a link, we'll edit it in. –  Joubarc Aug 11 '13 at 9:21
    
For a Text Block, which displays text or images on the LCD panel, it is important the add a Wait Block after the Text Block, to give time to view the LCD panel before the program ends. Wait for 10 seconds should help. –  dfrevert Nov 28 '13 at 15:51
add comment

1 Answer 1

From your description, it seems you use a motor block which just tells the motor to start running. This works, but since your program then comes at an end, all motor activities are stopped immediately.

To solve this, you have to make sure your program doesn't terminate immediately. You could either use a wait block, with a fixed timer after which the program (and motors) will stop, or maybe a block to wait for another condition to happen (button pressed, sensor activated, number of rotations reached,...).

Another solution would be to change your motor block and use a "move" block - which instructs a motor to move for a certain time (the block wait for that time to be completed).

Keep in mind this is all from memory though, I may be wrong on the particulars; but in essence I'm confident your problem is due to your program terminating immediately.

share|improve this answer
    
It is the terminating which causes the problem. The easiest solution, which is not included in your answer, is to check the box "Wait till Completion" in the motor block. –  Timtech Aug 30 '13 at 15:26
    
Right, I didn't have access to the program so I forgot about that possibility –  Joubarc Aug 31 '13 at 6:01
    
Glad to be of assistance :) –  Timtech Sep 1 '13 at 11:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.