|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: LabView and Vex. Are they compatable?
Quote:
|
|
#2
|
||||
|
||||
|
Re: LabView and Vex. Are they compatable?
Quote:
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. |
|
#3
|
|||||
|
|||||
|
Re: LabView and Vex. Are they compatable?
Quote:
LabVIEW for FRC targets the cRIO's CPU directly and the resulting code is run under the vxworks OS. |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |