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.
Code
Def filter_source()
INI
ptp $pos_act
;Signal
ret=st_source(hsrc,0,rsiunit_no)
ret=st_setparam(hsrc,1,1) ;sine
ret=st_setparam(hsrc,2,0) ; no offset
ret=st_setparam(hsrc,3,1) ;amplitude 1
ret=st_setparam(hsrc,4,1) ;frequency 1
;Filter: low pass, Butterworth, order2, cutoff freq=2Hz
ret=st_iirfilter(hfilter,0,hsrc,1,0,1,2,2)
Display More
When run it I get the error "RSI: Error in function <ST_IIRFILTER>"
Can someone spot the problem? Thanks.