Go to Post I've always suspected that one could find glimpses of wisdom, setting priorities, and responsibility - and ways to balance them, in the contents of a coffee cup. - JaneYoung [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 05-02-2008, 18:29
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
Red face ROBOT C and the LabVIEW Dashboard

So, we want to use the LabVIEW software to create a dashboard, but our robot is currently coded in ROBOT C. Does anyone know the function call to get the data to the dashboard display?

P.S. When using ROBOT C, we have to load with program mode NOT enabled, otherwise it can't find the RC. In addition, instead of the pressure switch equaling zero for the compressor to turn on, it must NOT equal zero for that to work, even though the switch is giving back the correct values. Any help on these issues would be appreciated as well.
__________________
Really, simpler is better; really, I swear
WHY DON'T YOU BELIEVE ME???
  #2   Spotlight this post!  
Unread 05-02-2008, 21:40
Miner Miner is offline
Registered User
AKA: Jacob Miner
FRC #2077 (Laser Robotics)
Team Role: Leadership
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Dousman, WI
Posts: 85
Miner is on a distinguished road
Re: ROBOT C and the LabVIEW Dashboard

I havent used the LabVIEW dashboard yet, but I have used IFI Dashboard. It is really nice. It tells you everything going on in the RC and the OI. Not at the same time though. Here is the link if you want it.

http://www.ifirobotics.com/dashboard_viewer.shtml

Good luck,
Jacob
__________________
Do what you like... Like what you do!
Jake, the Life Is Good guy
  #3   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)
  #4   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???
  #5   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
  #6   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: 412
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 08:38.

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