Page 1 of 1

Exemple QEI without Index, DsPic33FJ256MC710

Posted: Thu Oct 23, 2008 5:53 pm
by Ender
.
Inspired from the Malife topic, I did a QIE model on the DsPic33FJ256MC710 .

But the intializing function _QEIInt_ run more than one time, in spite of the C call function step time is "inf" :cry:
Exemple, If you remove the comment to set available the line :
__ // POSCNT = 0x8000; // Set Current Position to 8000 does't work, reset and speed effect ???__*
The counter is set any time at 0x8000

Could you help me Lunbin :?:

Re: Exemple QEI without Index, DsPic33FJ256MC710

Posted: Thu Oct 23, 2008 8:04 pm
by LubinKerhuel
Hi Ender.

This version should works.
Only 2 changes in the simulink configuration options :
Simulation ==> Configuration Parameters ==> Optimization ==>
- Check Inline parameters
- Then, check Inline Invariant signals
( This is the exact name with matlab 2008a)

Regards
Lubin

Re: Exemple QEI without Index, DsPic33FJ256MC710

Posted: Fri Oct 24, 2008 6:01 pm
by Ender
Yes, It works, Thanks a lot.