Log in

View Full Version : Labview Help


katsauga
19-01-2013, 09:45
could someone post a sample VI for a four CIM motor system? We need it in tank drive, but i dont know where to start:]

katsauga
19-01-2013, 09:47
it uses talons, four of them

Mark McLeod
19-01-2013, 10:12
Here's one:

katsauga
19-01-2013, 10:45
which VI do i build this in?

Mark McLeod
19-01-2013, 11:09
You should have created a default robot project, and there will be default code already in the vi's. The vi's you want to modify are under the CompactRIO Target -> Team Code

There are three parts:

The code labeled Begin.vi goes in Begin.vi
The code labeled Teleop.vi goes in Teleop.vi
The code labeled Finish,vi goes in Finish.viYou also have to add a second Joystick 2 in Begin.vi, but you can highlight and copy/paste the default code for Joystick 1, then change the USB and the name.

For the drive code there will be conflicting default code, so remove that or at least make sure the PWMs referenced in Begin.vi are different than the ones you are using.

katsauga
19-01-2013, 11:14
which template is the default robot project? when i go in, in asks what architecture i want. i dont remember that last year

Mark McLeod
19-01-2013, 11:30
That's new this year.

I'd suggest choosing Arcade Drive Robot - hardware or simulation