This example demonstrates how to use the Dual Channel Spectral Measurement Express VI to analyze the frequency response of a bandpass digital filter by comparing the input signal (Pre-Filtered) to the output signal (Filtered). This example also demonstrates how to compare the frequency response to arbitrary specifications to determine whether the digital filter meets your requirements. Various filter design parameters, such as topology and order, changed from the block diagram to successfully design the filter. This example uses a white noise signal as the stimulus of the filter, measures the frequency response between this stimulus and the response of the filter, and then tests if the result falls within some arbitrary limits.
Instructions:
1. Run the VI
2. See the Filter response along with the Upper and Lower Limits (set by Mask and Limit Testing Express VI) and see whether the calculated Filter response is within the specifications. Also notice the Simulated Signal (pre-filtered), Filtered Signal, and Filter Frequency Response (Magnitude).
3. You can also change the Lower and Upper Cut-Off frequencies of the filter to determine the effects.
4. Look at the block diagram for more information.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.