LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

inline C node QEI lm3s8962

I'm trying to get the QEI modules to work on the LM3S8962 board and I understand that there is no LabVIEW VIs for it. I'm trying to use inline C to get everything working but I keep running into an unexpected interrupt when I look at Keil. I have enabled the QEI module and enabled the QEI Interrupt, but I still get stuck in an infinite loop. Has anybody gotten this to work or has some knowledge on the subject. I'm pretty new to LabVIEW and QEI so I apologize in advance.

 

Thanks for any help.

0 Kudos
Message 1 of 4
(7,266 Views)
be sure to power the QEI module before you try to modify any of the QEI registers. This can be done by modifying the 'run mode clock gating control' register (or RCGC1 for short).
0 Kudos
Message 2 of 4
(7,260 Views)
Hi,
I have problem to make the QEI work on my LM3S8962 evaluation board. I am new in uVision as well. I posted my problem, but it seems there are not too many people interested in QEI module. if you make the QEI work on your board, do you mind if help me out? I am trying to use the inline C node to configure and read the QEI but I am getting lots of error. I dont know which header file to include in my C program. For example one of the errors I am getting is : "error: #20: identifier "tBoolean" is undefined" .
I appreciate your help in advance
thanks for your help
0 Kudos
Message 3 of 4
(7,091 Views)

Hi,

 

I have never used the QEI module but I can recommend a process to create a driver for LabVIEW embedded for ARM:

First try with a simple c program, for this:

Go to this folder: C:\Keil\ARM\Boards\Luminary\ek-lm3s8962\ 

Copy and paste the LCD_Blinky folder and rename it to LCD_QEI for example.

Open the Blinky project in the LCD_QEI folder.   Now try to do a small driver for QEI in this project.

For example create two files QEI.c and QEI.h with two functions: QEI_init, QEI_ReadPos .

 

Add these two functions in the main program and display the QEI position in the onboard display.  

 

When the QEI driver works fine on a simple Keil µVision project, you can add the driver in LabVIEW.

Please let me know when you are at this point.

 

Best regards

Yann C.

France

0 Kudos
Message 4 of 4
(7,062 Views)