01-31-2009 03:49 PM
02-02-2009 09:45 AM
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
02-02-2009 10:57 AM
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.