Go to Post so this is going to sound really dumb but remember that i am a mechanical guy. - Greg Needel [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 03-12-2008, 11:57
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
LabVIEW vs C/C++

A lot of e-mails my teams advisor has been getting are saying that LabVIEW is going to be pretty much the only supported way to program the robots this year. Weren't we told that we can use C/C++? I personally prefer to write my code then to use a graphical interface, but I'll definitly use LabVIEW for debugging and diagnostics and whatnot, but are there any teams out there going with the standard code-writing method? Can you even still write the code, or is LabVIEW the only way this year? If you can write it, is there anyway to mix LabVIEW generated code or whatever with your written code to use simultaneously?
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
  #2   Spotlight this post!  
Unread 03-12-2008, 12:10
Francis-134's Avatar
Francis-134 Francis-134 is offline
Lifer
FRC #0190 (Gompei and the Herd)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Worcester, MA
Posts: 602
Francis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond reputeFrancis-134 has a reputation beyond repute
Re: LabVIEW vs C/C++

LabView is most assuredly not your only option. You will most CERTIANLY be allowed to use C/C++ with the WPI Library this year. For more info, visit the Resources page of the WPI FIRST website.
__________________

Email | Twitter | Facebook | YouTube | Twitch
iTunes Podcast | Snapchat

A proud alumnus of teams 134 and 40 || Mentor of Team 190 || Director of Fun for BattleCry@WPI
  #3   Spotlight this post!  
Unread 03-12-2008, 13:34
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: LabVIEW vs C/C++

C/C++ is supported through the WPI Library, as Francis said. It's important to note, though, the C++ support is lagging Labview in some areas. Also, Labview has a vision assistant wizard to help you set up your vision processing algorithms, which you can then directly copy into a Labview program.

Finally, the Labview and C++ environments aren't compatible. If you write code in C++, you won't be able to directly debug it in Labview, and vice versa. You CAN use C++ library calls in Labview to a limited extent, but I would recommend against trying a hybrid approach where you do most of your coding in C++ and call it from a Labview wrapper.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #4   Spotlight this post!  
Unread 03-12-2008, 22:37
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabVIEW vs C/C++

I'm not sure where the emails are coming from. As the beta teams have shown, LV and C++ and in fact C will all be supported. All three use the same libraries developed jointly by FIRST, WPI, NI, and others. All three are fully capable of making a great robot.

If your advisors need further input, please visit the first forums and perhaps look at the C++ code, specifically doxygen formatted docs.

Greg McKaskle
  #5   Spotlight this post!  
Unread 04-12-2008, 10:16
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: LabVIEW vs C/C++

Quote:
Originally Posted by Kevin Sevcik View Post
C/C++ is supported through the WPI Library, as Francis said. It's important to note, though, the C++ support is lagging Labview in some areas.
Will this be fixed by kickoff? Our team definately plans to use C++, and it would be unfortunate to be forced to use LabVIEW due to lacking C++ support. I'm not saying that there's anything wrong with LabVIEW, but shouldn't both platforms be equally supported?
__________________
  #6   Spotlight this post!  
Unread 04-12-2008, 12:25
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: LabVIEW vs C/C++

"Lagging" may not be the right word. As Greg mentioned, the Beta teams were very successful in using C and C++ and there is plenty of software written and tested.

LabVIEW for cRIO has been around a LOT longer than C/C++ for cRIO. In that sense, C/C++ will always be lagging.

But that doesn't mean that the tools, functionality and tech support that teams receive over the next few months will be any different. From what I can tell, NI has provided as much or more support for the C/C++ tools as for their flagship LabVIEW tools. WPI, FIRST and others are, of course, "all over" both tools.

Russ
  #7   Spotlight this post!  
Unread 04-12-2008, 14:51
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: LabVIEW vs C/C++

Lagging, in the sense that some of the features that aren't as in demand might not be in the C++ libraries. For instance, SPI is very basically implemented in Labview, but isn't implemented at all in the C++ libraries. Or not yet, at any rate.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #8   Spotlight this post!  
Unread 04-12-2008, 18:21
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: LabVIEW vs C/C++

Quote:
Originally Posted by Kevin Sevcik View Post
Lagging, in the sense that some of the features that aren't as in demand might not be in the C++ libraries. For instance, SPI is very basically implemented in Labview, but isn't implemented at all in the C++ libraries. Or not yet, at any rate.
When the beta teams received the software, the C++ version of the WPI Robotics library was more complete then the LabVIEW version. Especially with the WPI Robotics Library, they want both environments to be the same, but they won't withhold a feature that is ready in one environment but not the other. It's really a matter of which developer is available when (and not that features will always be available first in a certain language)

Once a feature is implemented in one environment, it shouldn't be too hard to implement it in the other one. Since a lot of the WPI Robotics library is built around the FPGA, once you know the right FPGA calls (which you get from the other environment), it's not hard at all.
  #9   Spotlight this post!  
Unread 04-12-2008, 20:32
David Doerr's Avatar
David Doerr David Doerr is offline
Registered User
FRC #4478 (Materia Oscura)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Milford, Michigan, USA
Posts: 75
David Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud of
Re: LabVIEW vs C/C++

We expect to be using C++ this season, but while developing our software we intend to use LabVIEW features not available in C++. One is the Vision Assistant already mentioned. Another -- LabVIEW has an impressive set of PID tools -- automatic and Ziegler-Nichols tuning. Joe Ross has worked with those and he can tell you lots more about them than I can.

My opinion is that C++ support does lag behind LabVIEW. I think there is still no dashboard support. I mentioned the PID tools -- those have caught up a little since the beginning of beta testing. But we did find the WindRiver Workbench C++ tools very capable and a lot of fun to work with, and we expect them to serve us well. Writing, building, downloading and running programs in C++ is very fast once you spend a short amount of time learning the process.
  #10   Spotlight this post!  
Unread 04-12-2008, 20:42
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: LabVIEW vs C/C++

Quote:
Originally Posted by DaveD View Post
I think there is still no dashboard support.
Correct, there are currently no provisions to write a dashboard in C++. However, a robot running C++ code can use a dashboard written in LabVIEW. Also, I don't think there is anything preventing people from writing a dashboard in *insert language here*.
  #11   Spotlight this post!  
Unread 05-12-2008, 08:10
David Doerr's Avatar
David Doerr David Doerr is offline
Registered User
FRC #4478 (Materia Oscura)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Milford, Michigan, USA
Posts: 75
David Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud of
Re: LabVIEW vs C/C++

Quote:
Originally Posted by EricVanWyk View Post
However, a robot running C++ code can use a dashboard written in LabVIEW.
I don't believe C++ programmers can currently send data from the robot to display on the dashboard -- including either basic I/O data or user data -- but I've been told on the beta test discussion forum that work is being done to add that capability.
  #12   Spotlight this post!  
Unread 05-12-2008, 09:14
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: LabVIEW vs C/C++

Quote:
Originally Posted by DaveD View Post
I don't believe C++ programmers can currently send data from the robot to display on the dashboard -- including either basic I/O data or user data -- but I've been told on the beta test discussion forum that work is being done to add that capability.
You can set the Digital Outs in C++, at least. I can see where the user bytes go, but there aren't any accessor functions implemented yet. I suspect the problem is coming up with a reasonably clean way to serialize the data teams want to send, such that a Labview dashboard has decent odds of appropriately deserializing it on the other end.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
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
Labview Training joechow National Instruments LabVIEW and Data Acquisition 1 10-09-2008 20:16
Labview tseres Programming 2 23-05-2007 00:27
LabView Dashboard brummer_13 LabView and Data Acquisition 7 08-02-2006 21:43
Labview Phreakuency LabView and Data Acquisition 6 14-01-2006 01:14
LabVIEW FAQ Danny Diaz LabView and Data Acquisition 0 21-11-2005 01:11


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

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