This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What determines maximum bandwidth?

Hi,

I'm curious what determines the maximum possible value of gMotorVars.SpinTAC.PosCtlBw_radps before gMotorVars.SpinTAC.PosCtlErrorID reports saturation? I'm asking because I have projects on different machines (same motor and hardware) and one allows approximately double the bandwidth before saturating, and I can figure out why this is happening.

Thanks,

Steve

  • Steve,

    The maximum bandwidth is based primarily on the sample time.  

    For velocity control systems the maximum bandwidth is determined by this expression (from spintac_velocity.h):

    (0.2) / (ST_SAMPLE_TIME)

    For position control systems the maximum bandwidth is determines by this expression (from spintac_position.h):

    (0.1) / (ST_SAMPLE_TIME)

    So velocity control systems can have the bandwidth set twice as high as position control systems.  Are you using different projects on these different machines?

  • Thanks Adam, this is what I needed to know. I had different values for USER_PWM_FREQ_kHz between the two systems.

    -Steve