LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

labview ARM code examples

Solved!
Go to solution

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

0 Kudos
Message 1 of 9
(11,066 Views)

Have a look the following:

Getting Started with the LabVIEW Embedded Module for ARM Microcontrollers (Luminary Micro)

 

If you have additional questions, post back!

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 9
(11,063 Views)

Hi,

I have already done this tutorial but it don't answer questions that I asked in my previous post.

0 Kudos
Message 3 of 9
(11,055 Views)
Solution
Accepted by topic author neil84

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

 

 

Message Edited by Gmg on 06-29-2009 11:07 AM
Message Edited by Gmg on 06-29-2009 11:13 AM
Message 4 of 9
(11,041 Views)

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?

0 Kudos
Message 5 of 9
(11,033 Views)

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

 

 

Message 6 of 9
(11,018 Views)
To follow up on the SD slot, is there any way to use it currently, or do we need to wait for the next release to have that feature?
0 Kudos
Message 7 of 9
(10,822 Views)

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 card
0 Kudos
Message 8 of 9
(10,778 Views)

neil, 
      Here i am attaching the Lmuinary LM3S8962 SD Card example sorce code. I hope it will help u.

Sivaraj M.S
CLA
0 Kudos
Message 9 of 9
(10,734 Views)