I'm not an analysis expert, so I'm not sure how helpful this response will be.
It looks to me like the Measurement Studio Filtering example does what you are looking for. You might need to modify it to operate on the specific input signal that you are interested in. The Filtering example is installed in the DotNET\Examples\Analysis\Filtering subdirectory of your Measurement Studio directory.
If you get a chance, please let us know if this fits your needs.