03-15-2013 12:43 PM
Hi,
I am trying to control the starter kit 2.0 robot using a key board. I have writtern the code (attached). When I press the keys, the slide goes up or down, left or right, but the robot does not move :(. Can anyone have a look at my code and tell me where is wrong?
I think there is a problem with the loops, I don't know how to integrate them, but I am not sure this is the reason.
Thanks in advance!!!
S.
Solved! Go to Solution.
03-15-2013 12:59 PM - edited 03-15-2013 01:00 PM
The bottom event loop is not triggering the top event loop. Replace local variable with Val(sig) of to trigger the other event case (top loop in this case). You can merge those 2 event loops into one also.
03-15-2013 01:16 PM
Thanks for your reply. I tried combining the loops and it didn't work :(. Here is what I have changed like you said, but still does not work. Can you have another look pls.
Many thanks again!!!
03-20-2013 03:26 PM
Hi, sorry for the late response...I think you uploaded the same old version of vi. Attached is screenshot of what I was talking about...
03-21-2013 05:52 AM
Hi,
Thanks again for the reply! I will try it now!
S.