Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

simulation help please!

Status
Not open for further replies.

subseb

Computer
Joined
Dec 5, 2004
Messages
1
Location
GB
I am trying to run a FIR filter using simulink I have my basic algebraic loop and weightings running fine. However the simulation is sample based and I need to increase one of the variables value in the gain amplification block during simulation. Basically it is a goertzel filter and I am trying to increase the fi (frequency of interest) value with respect to time, so as to achieve a frequency sweep when the simulation is run. Does anyone know of an easy way of doing this? I tried using the u +Ts block for weighted time, but this just gave me a constant value.
 
You should be able to use a ramp function block and send its output to the workspace with a given variable name (e.g., fi), then refer to that variable name in the gain amplification block configuration.

xnuke

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top