. |
BiQuad Filter Mechaware API Documentation > Filter
OverviewOverviewDescription The BiQuad Filter block implements up to 16 second-order cascaded biquad blocks. Biquad coefficients are stored in a data file and loaded when the block is loaded. The firmware allows for up to 16 additional cascaded sections to be included in the data file, if desired. The update rate is determined by the Subsample Code. Note: BiQuad blocks are often used as alternatives to PID or to supplement an existing PID control loop. Example
The configuration values for this block are as follows:
Text files can be generated using one of the Matlab Utilities. Advanced users can manually write their text file if the coefficients are already known. Reading Text Files Text files can be read by loading with the mdl2mw utility. Single Stage Biquad Example Sample data file for a single stage filter.
Multistage Biquad Example A biquad filter is a second order computational element. The biquad section can be defined by specifying 5 coefficents B0, B1, B2, A1, A2, taken directly from the z-domain transfer function of the biquad. Cascaded Biquad Filters are specified by defining the the 5 coefficents for each of the sections. The mechaware data file contains the coefficents for each of the sections sequentially. Note that the xfer function coefficents A1 and A2 are negated before entering into the file. Matlab/Simulink
C++ API
|
class BIQBlock: public virtual Block { public: // User accessible coefficients long Length; std::vector |
Required Header: mechaware.h |
Description
The BiQuad block implements up to 16 second-order cascaded biquad sections. Biquad coefficients are stored in a data file and loaded when the block is loaded. The firmware allows for up to 16 additional cascaded sections to be included in the data file, if desired.
Parameters
|
Methods
BiQuad Filter with Lookup Coefficients
| | Copyright © 2001-2012 Motion Engineering |