DC Remove is a high-pass filter, so does not do what you want.
Is it possible that the Curve Area measurement does what you need? See Cursor menu->Vertical Cursors->Cursor Regions in the online Help for an explanation.
If this is no use to you and you need to subtract a defined mean level from your result view data before you perform your measurement, you can do this with a short script.
In the result view average set cursor 1 and 2 to mark the region to average to form a baseline. The following script will subtract the mean level from the result view:
Code: Select all
var chan% := 1; 'The channel number in the result view
var rh% := View(); 'Get the current view handle
if ViewKind(rh%)<>4 then Message("Make the result view the current view first"); halt endif;
if (Cursor(1) < 0) or (Cursor(2) < 0) then Message("Position cursors 1 and 2 around the baseline area"); halt endif;
if Cursor(2) <= Cursor(1) then Message("Position cursor 1 to the left of cursor 2"); halt endif;
var mean := ChanMeasure(chan%, 2, BinToX(cursor(1)), BinToX(Cursor(2)));
ArrSub(View(rh%,chan%)., mean); 'Remove the mean level
Optimise(chan%); 'Set y axis range to show resulting data
Save this as RemoveMean.s2s. You can associate this with a button by using the Script menu Script Bar list command to Add this script, then display the Script bar. Each time you click the button to run the script, it will remove the DC level for you.What the script does
The script checks that the current view (window) is a result view, then checks that cursors 1 and 2 are visible and in the right order. The chan% variable is the number of the channel to analyse in the result view.
The ChanMeasure(...) command works out the mean level and the ArrSub() command subtracts the mean level from the internal array that holds the channel data, which is accessed with the View(rh%, chan%). syntax.
If you are in doubt as to what something does in the script, click on the word in the script and press the F1 key to bring up the online Help.
You could extend the script to measure the area between two other cursors and print this to the Log view (or a file), should you need to do this.