🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to change Radix point bits of ePWM block, cos and sin functions

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Submitted by Mala Gowda on Fri, 01/04/2013 - 17:29 

Hello:

How do i change the number of radix point bits of ePWM blocks, cos and sin functions. i find it to be 1 radix point bit. why can't we change it and how do i know if over flow exists in run time.

Regards, MALA

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Submitted by Anders89 on Fri, 01/04/2013 - 22:24.

    The ePWM block will accept inputs from 1.16 to 8.16 and do the right thing. fxSin and fxCos are constrained to produce 1.16 outputs if they are connected to 1.16 values, or 1.32 if connected to 1.32 values.

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Submitted by Mala Gowda on Tue, 01/08/2013 - 13:18.

    When i drag ePWM block from piccolo block set, i get ePWM block with 1.16 precision, how could i change this.

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Submitted by Anders89 on Wed, 01/09/2013 - 03:39.

    Yes, the block inputs do say 1.16, but they will accept 2.16 with no problem.