Go to Post Redfoo is actually a really awesome guy. He discussed the future of engineering and talked about C programming with our software team. - SM987 [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 07-02-2008, 10:04
timville's Avatar
timville timville is offline
Registered User
AKA: Timothy Friez
FRC #1185 (X-Bots)
Team Role: Alumni
 
Join Date: Mar 2007
Rookie Year: 2003
Location: Pittsburgh
Posts: 18
timville is an unknown quantity at this point
Send a message via AIM to timville
Re: ROBOT C and the LabVIEW Dashboard

As for the dashboard, we have not tested using ROBOTC with the Labview dashboard. I seem to recall it works with the IFI supplied dashboard software.

Please post a link to where I can find the Labview dashboard and I'll take a look at it's ROBOTC compatibility. Do you get the source for the dashboard or just a compiled application?

Per the download: It's not a bug, it's how it was designed. ROBOTC does not send the entire firmware image down every time you load a new program, only when you load the ROBOTC VM firmware. So to make life a little easier than running over to the robot, holding down the PROG button and sending the new program over... you can start/stop programs and send new programs from your computer.

In ROBOTC, a closed digital sensor returns a "1" value, and an open digital sensor returns a "0" value. Hence why you need to use the != when writing your pneumatics shutoff valve code.
__________________
2003 - Rookie All-Stars Awards - #1185 (Pittsburgh)
2004-2008 FIRST Volunteer - Ref/Head Ref (Pittsburgh)
2002-2007 FIRST Lego League Volunteer - Head Ref (Pittsburgh)
  #2   Spotlight this post!  
Unread 18-02-2008, 18:31
robogeek753's Avatar
robogeek753 robogeek753 is offline
Droid Master
AKA: Bradley
FRC #0753 (The High Desert Droids)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Bend Oregon
Posts: 61
robogeek753 is an unknown quantity at this point
Re: ROBOT C and the LabVIEW Dashboard

Even with IFI Dashboard, I can't get an analog input, something I need (pressure sensor). Anyone know how to use a user byte in ROBOT C?
__________________
Really, simpler is better; really, I swear
WHY DON'T YOU BELIEVE ME???
  #3   Spotlight this post!  
Unread 20-02-2008, 09:08
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: ROBOT C and the LabVIEW Dashboard

The pressure sensor from the KOP is a digital input.

AS for sending data to the OI the data you need to send is called a "User Byte"
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #4   Spotlight this post!  
Unread 20-02-2008, 11:30
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 416
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: ROBOT C and the LabVIEW Dashboard

There are 6 user bytes that get sent back to the OI, along with the PWM information for PWM outputs 1-16. A few other things get sent back as well; take a look at the packet spec to get all the details.
To set a user byte, you do something like
Code:
User_Byte_1 = 243;
Look in ifi_aliases.h for the exact names of all the user bytes.
This LabVIEW code is a great place to start:
http://www.chiefdelphi.com/forums/sh...71&postcount=8
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
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
Example LabVIEW Apps - Dashboard, CMUcam2 and Motors DanDon LabView and Data Acquisition 3 29-01-2009 22:13
Example LabVIEW Apps - Dashboard, CMUcam2 and Motors Russ Beavis National Instruments LabVIEW and Data Acquisition 9 21-01-2007 17:19
Where can i download the LabView Dashboard? Zak698 NI LabVIEW 2 11-01-2007 15:57
Labview Dashboard and updated IFI dashboard spec Joe Ross LabView and Data Acquisition 1 04-04-2006 02:04
Labview dashboard and multiple variables Joe Ross LabView and Data Acquisition 2 15-03-2006 21:55


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

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