RSI IIR Filter Problem

  • Hi,


    I'm running KSS V5.5.14 and RSI V2.1.1, and I'm having an issue with the st_iirfilter command.


    Here is the code I'm using to test it. It just generates an amplitude 1, freq 1 sine wave and runs it through a 2nd order low pass butterworth filter with cutoff frequency 2Hz.



    When run it I get the error "RSI: Error in function <ST_IIRFILTER>"
    Can someone spot the problem? Thanks.

  • where did you get info about IIR filter in RSI? this seem to be implemented in RSI3.x but I cannot find any hint of it in earlier versions.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • message you get tells you that there is an error with calling ST_IIRFILTER function:


    Code
    ret=st_iirfilter(hfilter,0,hsrc,1,0,1,2,2)


    which sets IIR parameters:
    OBJID = hfilter, ; ID of the created RSI object
    CONTID = 0, ; ID of container of the new object
    ID1 = hsrc, ;ID of the object to link to input 1.
    IDX1 = 1, ; Output index of ID1 to link to input 1
    type = 0, ; using Lowpass type filer
    NAME = 1, ; Butterworth
    ORDER = 2, ; 6th order filter
    cutoffFREQ = 2; Cuttoff is 2kHz


    According to function definition:


    I would focus on parameters 2-4...

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

Advertising from our partners