06-27-2009 01:23 PM
Hello,
I'm new in Labview ARM. I'm using an ek-lm3s8962 board from Keil.
I'd like to know if there is some tutorials and code examples about Communication with peripherals:
How to write tu SD card?
How to use CAN,SPI,I2C and UART?
How to use the oled display?
Is it possible to use FIFOS with labview ARM and how?
Is it possible to target the Daughter Board with Labview, this board include an LM3S2110 processor?
How to communicate between a time critical Vi that runs on ARM processor and non time critical Host Vi that runs on PC?
Thanks alot.
Yours Neil
Solved! Go to Solution.
06-27-2009 09:46 PM
Have a look the following:
Getting Started with the LabVIEW Embedded Module for ARM Microcontrollers (Luminary Micro)
If you have additional questions, post back!
06-28-2009 04:39 AM
Hi,
I have already done this tutorial but it don't answer questions that I asked in my previous post.
06-29-2009 11:05 AM - edited 06-29-2009 11:13 AM
Hi Neil,
How to write tu SD card?
The SD card slot is not currently support in ARM 1.1. The next release of ARM should support this device. Once it is, you can access the SD card using the file I/O primitives.
How to use CAN,SPI,I2C and UART?
I found an example of UART in the NI Example Finder under Toolkits and Modules > ARM > Luminary Micro > Protocol Drivers > Serial Comm.lvproj. I will also attach a project that uses CAN to communicate with the LMS2110. As for SPI/I2C, I suggest experimenting with the VIs for this (located on the ARM > SPI and I2C palette) and consulting other threads about using these VIs or creating another thread.
How to use the oled display?
There is an example of this in the NI Example Finder under Toolkits and Modules > ARM > Luminary Micro > Device Drivers > OLED.lvproj.
Is it possible to use FIFOS with labview ARM and how?
FIFOs on ARM are very similar to desktop. These VIs are located at Data Communication > Synchronization > Real-Time FIFO palette. There are several examples on how to use these FIFOs on ni.com.
Is it possible to target the Daughter Board with Labview, this board include an LM3S2110 processor?
You can communicate to this board with CAN as shown in the attached project.
How to communicate between a time critical Vi that runs on ARM processor and non time critical Host Vi that runs on PC?
See the linked example. RT FIFO If you use the FIFO VIs I referred to above, you should be able to do something similar. I would suspect the FIFO would be used to communicate between a time critical timed loop and a non-critical while loop. The while loop would then use TCP/Serial (or even network shared vairables) to communicate to the host .
good luck
06-29-2009 12:15 PM
Hi Gmg,
thanks for reply, I will sty all your advices.
About LM3S2110, My question wasn't about communicationwith LM3S8962, but about programming. Is it possible to program it with Labview ARM as it have a JTAG interface?
06-29-2009 03:53 PM
There is no out-of-the-box solution to programming the LM3S2110. However, you could modify the LM3Sxxxx target as described in the linked article: LM3Sxxxx
07-20-2009 02:50 PM
07-23-2009 05:51 AM
Hi,
At the 18th page of this document I read: "The source code on the CD includes example code for reading data from standard FAT-formatted SD cards."
It should be possible to include C code in labview, isn't that?
The problem is that I found no source about SD card07-27-2009 02:54 AM
neil,
Here i am attaching the Lmuinary LM3S8962 SD Card example sorce code. I hope it will help u.