LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

starter kit 2.0

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(2,769 Views)

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.

0 Kudos
Message 2 of 5
(2,761 Views)

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!!!

0 Kudos
Message 3 of 5
(2,754 Views)
Solution
Accepted by N3utrin0

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...

 

 

0 Kudos
Message 4 of 5
(2,717 Views)

Hi,

 

Thanks again for the reply! I will try it now!

 

S.

0 Kudos
Message 5 of 5
(2,702 Views)