ChSetSampleRange Function

Microchip Graphics Library

Microchip Graphics Library
ChSetSampleRange Function
C
void ChSetSampleRange(
    CHART * pCh, 
    WORD start, 
    WORD end
);
Overview

This function sets the sample start and sample end when drawing the chart. Together with the data series' SHOW_DATA flags the different way of displaying the chart data is achieved. 

 

Start & End Value 
The # of Data Series Flag Set 
Chart Description 
Start <= End 
Show the data indicated by Start and End points of the DATASERIES with the flag set 
Start = End 
Show the data indicated by Start or End points of the DATASERIES with the flag set 
Start, End = don't care 
> 1 
Show the data indicated by Start point of the DATASERIES with the flag set. Each samples of all checked data series are grouped together according to sample number. 
Input Parameters
Input Parameters 
Description 
CHART * pCh 
Pointer to the chart object. 
WORD start 
Start point of the data samples to be displayed. 
WORD end 
End point of the data samples to be displayed. 
Returns

none.

Preconditions

none

Side Effects

none.

Example

See ChCreate() example.

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved