LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you find MotorControlDevRef?

We have been working on programming all day, and have made some decent progress (considering this is our first year using LabVIEW), and we are trying to program a couple of motors using the jaguars, and apparently we need a MotorControlDevRef to do any of this, and after extensive searching, our programmers have come up frustrated and empty-handed. Can you tell us what we need to do?
0 Kudos
Message 1 of 3
(2,512 Views)

Betabot,

 

For all FRC related support questions please post them in the forums at www.ni.com/FIRST.  These forums are moderated by NI engineers with special FRC training.  Alternatively you can call in for phone support between 1pm-7pm CST Call (866) 511-628.

 

Cheers,

Mark

Mark
NI App Software R&D
0 Kudos
Message 2 of 3
(2,479 Views)

While the NI FIRST forum is a better place to post this question, as a quick attempt to help:

 

If you're controlling the motors directly (not through the Arcade or Tank drive), you get a motor reference from the Open Motor VI.  Try using the search function to find it in the palette (right click in the block diagram, then click the magnifying glass icon in the palette).

 

If you're controlling the motors through a drive (Arcade or Tank), you have a drive reference.  Use Unbundle By Name in the Cluster palette to get access to the Motors element.  You'll have an array of Motor references, where index 0 is the first motor, index 1 is the second motor, etc.  You can use Index Array to get the specific motor reference you need.

0 Kudos
Message 3 of 3
(2,472 Views)