#include <cogent.h>
ST_STATUS HI_ClipBuffer(int nvalues, HI_stVALUE* values, double min, double max );
This function clips the Y-value data in a buffer to lie within the range specified. The X-value data is ignored. The buffer is modified in place (i.e., a new buffer is not created, and the old values cannot be recovered). This function is useful during graphing to ensure the data trace does not go outside the desired graph boundaries.
This function corresponds to the Cascade Historian hist_clip_buffer dynamic library function.
Copyright © 1995-2012 by Cogent Real-Time Systems, Inc. All rights reserved.