LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vex Controller and Labview

Hello there,

 

I would like to configure a Vex Controller with Labview, but I cannot read the controller. Any ideas on how to do this?

0 Kudos
Message 1 of 7
(3,360 Views)

Hello there;

 

Up to this moment there is no instrument driver to be used with the VEX controllers. 

The only way you can access it is via VISA (serial) commands. The commands should appear in the controller's manual, since they are set by the manufacturer. 

 

This tutorial might be helpfull to start using VISA

 

Good luck

Message 2 of 7
(3,324 Views)

I already tried VISA today. It appears the resource name, but I am not able to read any of the comands from the controll, any ideas why this could be?

0 Kudos
Message 3 of 7
(3,315 Views)

Does it respond to the *idn? command??

Have you tried using the tools in MAX?

 

0 Kudos
Message 4 of 7
(3,305 Views)

No, it does not respond to the command. I haven't tried that, I am a begginner in LabView. What MAX tools can I use to make it work?

0 Kudos
Message 5 of 7
(3,301 Views)
What commands are you actually sending? I can't imagine why a idn? query would work since that is a IEEE-488 standard command. You can only send commands that are listed on the manual. You would use MAX to write those commands and read the responses.
0 Kudos
Message 6 of 7
(3,290 Views)

Since a Vex controller seems to be a gamepad, most likely connected to the computer through USB, VISA is most likely not an option (unless you want to program it using the USB Raw interface, which is really not something I would recommend anyone who does not have a deep understanding of low level binary protocols on byte level).

 

Maybe it is recognized by the OS as joystick device then you can use the LabVIEW joystick interface under Connectivity->Input Device Control.

 

Google is also a great resource: LMGTFY which would give you a promising link right in the top rank.

 

However if you want to target the controller directly with LabVIEW then you are out of luck. Creating a LabVIEW backend for a VEX controller to target directly code development on the VEX controller is definitely not something that could be done by people not having very tight connections to LabVIEW R&D itself and since it is using an 8 bit PIC controller probably something which is not even reasonably possible at all.

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 7
(3,270 Views)