LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

joystick and shape detection

System structure: Joystick connected to Arduino Uno. There is communication with CVI. I need the joystick to function instead of the mouse in the gui I created.
In addition, the gui screen has a line, circle and square. The user draws on the screen and should get feedback on how close the shape he drew to the original shape is.
Need help urgently
Thank you

0 Kudos
Message 1 of 2
(1,310 Views)

You didn't say how things were connected but it doesn't really matter. Presumably the Windows machine is in control and can talk to the Arduino when it wants to. If that's the case, I'd have the Arduino sample the joystick position and prepare reports to go back to the Windows machine. Store them up and possibly timestamp them if you like.

 

On a timer in LabWindows (or a communications interrupt if that's appropriate) query the Arduino for any joystick data it has stored up.

0 Kudos
Message 2 of 2
(1,203 Views)