Go to Post But I suppose friendly reminders to read the manual are much better than sarcastic ones. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2010, 14:55
VangardMk92 VangardMk92 is offline
Registered User
FRC #3414
 
Join Date: Jan 2010
Location: Farmington
Posts: 2
VangardMk92 is an unknown quantity at this point
Troubles with Labview Code

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.
Attached Files
File Type: zip LabVIEW Data.zip (1.60 MB, 45 views)
  #2   Spotlight this post!  
Unread 04-02-2010, 15:11
ewoodring ewoodring is offline
Registered User
AKA: Eric
FRC #2474 (Excel)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Michigan
Posts: 8
ewoodring is an unknown quantity at this point
Re: Troubles with Labview Code

Are you having trouble getting the code to run, or are you having trouble flashing it to the cRIO?
  #3   Spotlight this post!  
Unread 04-02-2010, 16:38
VangardMk92 VangardMk92 is offline
Registered User
FRC #3414
 
Join Date: Jan 2010
Location: Farmington
Posts: 2
VangardMk92 is an unknown quantity at this point
Unhappy Re: Troubles with Labview Code

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.
  #4   Spotlight this post!  
Unread 04-02-2010, 17:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,855
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Troubles with Labview Code

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 04-02-2010 at 17:30.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trajectory Troubles ::LabView:: dipmeinaluminum NI LabVIEW 2 05-02-2009 15:03
High CPU Usage in LabVIEW even with Basic Code Elliot Swart Programming 5 28-01-2009 08:44
Building self balancing scooter- troubles with Integrating Gyro gohan22 Sensors 8 22-01-2009 23:06
Compiler has troubles with structures? steven114 Programming 1 21-02-2006 18:28
Troubles with Dell? MattK Chit-Chat 19 02-02-2003 20:19


All times are GMT -5. The time now is 21:20.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi