Go to Post Don't get mad, learn, and get even. - Eric O [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 04-08-2010, 14:13
Rick TYler Rick TYler is offline
A VEX GUy WIth A STicky SHift KEy
VRC #0010 (Exothermic Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Redmond, Washington
Posts: 2,000
Rick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond repute
Re: LabView and Vex. Are they compatable?

Quote:
Originally Posted by kamocat View Post
Sadly, the easiest way might be to translate it into C and then compile it with the MPlab software.
The other option is to buy a 60-day trial of the LabVIEW Embedded module for ARM processors, and work from the ground up with that. However, I don't even know if the VEX platform uses an ARM processor.
The VEX Controller v.5 is based on an 8-bit PIC processor. The two new processors are based on the STMicroelectronics ARM Cortex-M3 and the ARM9 processor. Check the VEX website for details. I have NO idea if you can port LabVIEW to either of these controllers.
__________________
Exothermic Robotics Club, Venturing Crew 2036
VRC 10A, 10B, 10D, 10Q, 10V, 10X, 10Z, and 575
Reply With Quote
  #2   Spotlight this post!  
Unread 04-08-2010, 15:56
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: LabView and Vex. Are they compatable?

Quote:
Originally Posted by Rick TYler View Post
The VEX Controller v.5 is based on an 8-bit PIC processor. The two new processors are based on the STMicroelectronics ARM Cortex-M3 and the ARM9 processor. Check the VEX website for details. I have NO idea if you can port LabVIEW to either of these controllers.
The term "porting labview" is a bit misleading here.
What's typically done with RISC processors is the language is compiled directly for the processor. The cRIO, on the other hand, is actually running an operating system within which your program runs.
__________________
-- Marshal Horn
Reply With Quote
  #3   Spotlight this post!  
Unread 04-08-2010, 16:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabView and Vex. Are they compatable?

Quote:
Originally Posted by kamocat View Post
What's typically done with RISC processors is the language is compiled directly for the processor. The cRIO, on the other hand, is actually running an operating system within which your program runs.
I don't understand what you mean. You seem to imply an either/or situation where one does not exist. What you said is akin to "Most cars have four wheels. However, some cars use diesel fuel."

LabVIEW for FRC targets the cRIO's CPU directly and the resulting code is run under the vxworks OS.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-08-2010, 02:38
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: LabView and Vex. Are they compatable?

Maybe I'm putting too firm a boundary between "program" and "operating system". The program is indeed compiled; the operating system is not an interpreter, and so the program is compiled for the processor. I appologize I do not understand how that works, and I do not mean to be misinforming people by making statements about things I do not know.

In re-reading my post, it seems I mixed up the concept of creating code that will run on the Vex controller, and creating code that will function on the Vex controller. If you can get code to run on the Vex controller, it may still be a huge struggle to turn on a digital output.
__________________
-- Marshal Horn
Reply With Quote
  #5   Spotlight this post!  
Unread 05-08-2010, 07:55
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,748
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 and Vex. Are they compatable?

A LV diagram is always compiled to some lower level form before execution, and over the years several approaches have been added for reaching targets.

LV desktop and LV RT products compile the diagram directly to machine code for the CPU and OS ABI in use. The code is capable of calling binary library code and this is used for vision, memory management, etc.

LV embedded, also called LV PDA is the product that instead compiles the diagram and generates C source code which can be sent through the embedded C compiler of the HW platform being targeted. The runtime libs are provided as C code.

There are a few products developed for LEGO which compile the diagram and produce a VM bytecode which is then interpreted by the virtual machine running on the brick.

The most recent release of LV desktop and RT (LV 2010), compiles the diagram into LLVM bytecode and the LLVM backend tools are used to produce a more optimized machine code for the target processor.

As stated, at this time, the appropriate way to target the VEX HW would be to use the embedded version. Personally, I don't think it will produce a very satisfying result.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 04-09-2010, 19:58
PortugazD.Ace's Avatar
PortugazD.Ace PortugazD.Ace is offline
Registered User
AKA: Timothy Gonzales
FRC #1165 (Team Paradise)
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Arizona
Posts: 46
PortugazD.Ace is an unknown quantity at this point
Re: LabView and Vex. Are they compatable?

This is what I would try:

1. Write the base program in LabView.
2. Write a translation DLL in C or C++
3. Include the DLL in LabView.
4. Download the program into a memory module
5. Hook up the memory module and run.
__________________
Latin:
"Murmure ventus erit parere Tempestatem"
"Noctu teneris vinculis
Nocte illa vincula adimuntur"
Reply With Quote
Reply


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
pic: Morrella and Lavery... who knows what they are discussing (attention, BILLFRED!! Andy Baker Chit-Chat 10 13-07-2006 16:35
Are these wheels available, anf if not are they ever gonna be? Elgin Clock FIRST Tech Challenge 3 12-11-2005 22:27
Where are they now? Wetzel General Forum 4 20-10-2003 11:23


All times are GMT -5. The time now is 04:56.

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