キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

ARM CAN Example for LM3S8962

I am just trying LabView 2011 with LM3S8962 board.

 

As I am interested in CAN functionality I tried the CAN communication example that came with the kit.

 

By the way, the block diagram for this project only has the target part, not the daughter board part which receives 1Hz signal from the target and sent the switch press status to target.

 

Does anyone know where is the daughter board side program?

 

Best,

Yonggon

0 件の賞賛
メッセージ1/9
5,481件の閲覧回数

Hi Yonggon,

 

What daughter board are you using and why?

 

The LM3S8962 has a built in port for CAN communication.  The example program is only going to support this interface, not one on a daughter board.

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 件の賞賛
メッセージ2/9
5,462件の閲覧回数

Thanks for reply!

 

But usig the example problem, you can press button on the daughter board to turn on the LED of the front panel.

 

So the target is receiving the button press status of the daughter board to display its status on the fron panel of the labview.

 

Also the target board send out LED on off signal to the daughter board to lit but a physical LED on the daughter board.

 

But the example project include only the target part. And thus I was looking for the code/project for the daughter board.

 

Best

0 件の賞賛
メッセージ3/9
5,458件の閲覧回数

Hi Aozora,

 

Sorry for the confusion.

 

The daughter board can be programmed in LabVIEW, but it is a Tier 2 device, meaning it requires some porting on your part.

By default the daughter board is setup as a test system displaying the behavior described in the example code.

 

NI does not provide example code for programming the daughter board.

 

Have a great day,


Chris

Applications Engineer
National Instruments
0 件の賞賛
メッセージ4/9
5,449件の閲覧回数

Hello Chris,

 

I am also having trouble getting this example to work. I have connected the LM3S8962 board to the CAN device LM3S2110 daughter board specified by the example. However, no CAN communication is occurring (I keep getting timeouts at the read and write blocks). Is the daughter board not set up as the code assumes it is? I haven't modified it at all. Are there any other explanations you can think of?

 

Thanks,

Jared

0 件の賞賛
メッセージ5/9
5,381件の閲覧回数

 我是周立功的LM3S8962开发板,和USB转CAN模块通讯,用周立功的例子通讯正常。用NI的 LM3S8962 CAN例子不能通讯,根据NI的例子,Baud rate=250K,ID=10,DATA=2,是不是我的设置和发送的代码错误,要怎样做才是正确的操作方法?谢谢!

jiangsj

0 件の賞賛
メッセージ6/9
5,339件の閲覧回数

Hey jiangsj,

 

Based on your CAN settings I think it should work, atleast in reference to the Baud. I'm confused by the USB to CAN module that you're referring to though. If you're testing the functionality of the examples. I would recommend trying it with a standard CAN cable and doing a loopback test.

 

Let me know how else I can help!

Tim A.
0 件の賞賛
メッセージ7/9
5,324件の閲覧回数

Hi Tim A.

  谢谢你的及时回复,在例子中怎样设置自收自发?是不是这个例子本身就有问题,需要其他设置才可以通讯?

   jiangsj

0 件の賞賛
メッセージ8/9
5,310件の閲覧回数

Hey jiangsj,

 

If you're looking to find the CAN examples for LabVIEW Embedded for ARM you can find them by clicking (From the LabVIEW load screen or a VI)

 

Help>Find Examples...>Open the "Toolkits and Modules Folder">Open the "ARM" folder

 

If you're working with the LM3S8962 device, choose the "Luminary Micro" folder

OR

If you're working with the MCB2300 or 2400 device, choose the "Keil" folder

 

Next, you'll open the "Protocol Drivers" folder and navigate to the loop back example.

 

CANExample.JPG

 

You'll want to make sure that the baudrate is correct as well. This is the most common source of errors that I have seen.

Tim A.
0 件の賞賛
メッセージ9/9
5,295件の閲覧回数