View Full Version : Troubles with Labview Code
VangardMk92
04-02-2010, 14:55
Hi, our team has been having some trouble with when using labview to "code" for our robot. We are a rookie team, and I was wondering if any of you guys or girls could help us. We have coded exactly as tutorials and guides that were posted on the first website and have watched tutorials regarding labview from their website as well but for some reason it is not working. If anyone could look over our code or even post some troubles you went into when coding from previous years, it would be much appreciated.
ewoodring
04-02-2010, 15:11
Are you having trouble getting the code to run, or are you having trouble flashing it to the cRIO?
VangardMk92
04-02-2010, 16:38
We got the cRIO flash and all the network stuff set up. The acrade drive runs. But anything else that i try to code in does not function. Because the arcade drive runs im assuming that the loop is running and the code that i put in should be functioning.
Mark McLeod
04-02-2010, 17:12
How do you download the new code to your cRIO?
"Build" & "Run as startup"?
I'm looking at 2010 Game Robot Project.
In Teleop.vi you aren't using Servo Set Angle correctly. If you look closely there is a red dot where the wire enters the vi icon. That means you wired the wrong kind of input into Set Angle. For now just right-click on the Servo Set Angle icon and choose Replace -> Servo Palette -> Set Position
You shouldn't have Gyro Close in the Stop case either.Use the Help -> Show Context Help.
If you click on (or hover over) an icon, it will show you what's supposed to be going in and out of it.
Then click on "detailed help" and it will tell you what the valid values and ranges of each input and output are supposed to be.
For Servo Set Angle, it is expecting an integer input in degrees.
The joystick you wired to it only has a floating point value between -1 and 1.
Servo Set Position expects a floating point value just like your joystick produces.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.