Go to Post My most distinct memory was watching Tom fix our robot's frame... by whacking it with the hammer. - Jaine Perotti [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 24-01-2009, 10:36
Pneumaticsman's Avatar
Pneumaticsman Pneumaticsman is offline
Registered User
AKA: Mitch guzman
FRC #1566 (Ammoknights)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Idaho
Posts: 69
Pneumaticsman will become famous soon enoughPneumaticsman will become famous soon enough
Send a message via MSN to Pneumaticsman
Question Converting LabView to C/C++?

does anyone know if there is a way to convert LabView code into C or C++ code? I know that you can add in your own custom code from the C/C++ language using the code interface node but I was wondering if there is a way to convert an Entire LabView project into C or C++

Thanks,
Pneumaticsman
__________________


be prepared for the unexpected
  #2   Spotlight this post!  
Unread 24-01-2009, 10:58
BLAQmx's Avatar
BLAQmx BLAQmx is offline
Software Engineer
no team (National Instruments)
Team Role: Engineer
 
Join Date: Sep 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 100
BLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of light
Re: Converting LabView to C/C++?

The LabVIEW Embedded module can compile LabVIEW code into C++, but only for Blackfin, ARM, and a handful of other microprocessors and microcontrollers (eg not the cRIO).
__________________
NI FIRST Community: Where to go for LabVIEW, Wind River, cRIO-FRC, and NXT support.
  #3   Spotlight this post!  
Unread 24-01-2009, 10:59
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,753
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: Converting LabView to C/C++?

While a person can read LV code and translate it to C, C++, or other languages, there is no automated way to do that. LV compiles directly to machine code for the target you are going to execute on, just like a C compiler does.

Greg McKaskle
  #4   Spotlight this post!  
Unread 24-01-2009, 11:02
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: Converting LabView to C/C++?

I only know enough to be dangerous so...

No - there is no way with the LabVIEW FRC version BUT NI's LabVIEW Embedded tools are indeed designed to create C code from LabVIEW code. LabVIEW Embedded can then "finish the job" and port that code to specific processors. Using those tools, you do have access to the LabVIEW-generated C code. I've seen demonstrations but never used the program. It looks like a LOT of work to get it configured and running but, in the end, you can let the systems-type folks program in LabVIEW and then let the hard-core embedded SW folks "wrap it up".

http://www.ni.com/labview/microprocessor_sdk.htm

Russ
  #5   Spotlight this post!  
Unread 24-01-2009, 11:05
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,753
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: Converting LabView to C/C++?

The LV embedded tools will indeed be able to generate C code for a subset of your code, but since they don't know how to map WPI and other crucial libraries, I'm afraid this will be a goose chase.

Greg McKaskle
  #6   Spotlight this post!  
Unread 24-01-2009, 11:06
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: Converting LabView to C/C++?

I recently purchased a LabVIEW for ARM eval kit and am very anxious to try it out. I would love to see teams using such tools for programming Jaguars in 2010.

Russ
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
Converting Data EasyC charlie1218 Programming 4 15-01-2008 21:48
Converting .wmv Jay W. IT / Communications 6 04-05-2005 15:43
Format converting roberthan 3D Animation and Competition 7 16-05-2004 13:42
Converting CAD!? Tton 3D Animation and Competition 3 25-03-2003 17:29
Converting Files Hailfire Programming 9 28-12-2002 18:59


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

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