How to test a filter created from Fdatool on matlab ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,442
Guys,

I have created a filter from FDAtool and want to test it on Simulink but I didn't see any response on the Scope

I used discrete impulse as input What can I do to see the output ?

Thanks

I get this warning :

Warning: The model 'FIRFilterTest' does not have continuous states, hence using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog.
 

Attachments

  • FIR test.jpg
    65 KB · Views: 64
  • FIR test2.jpg
    171.4 KB · Views: 60
  • FIR test3.jpg
    300.6 KB · Views: 58
Last edited:

Which filter did you make? Low pass high pass? Depending on that take a signal which has a frequency lying in pass band of that filter and another frequency outside of it. And then take fft of output to see whether the frequency outside of the passband has been eliminated.
 

Your filter takes continuous time data. Chirp is from continuous library. Replase it with digital source or insert Zero-Order Hold unit at fiter input with 1/800 sample time.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…