Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MAX14720 MAX30205 USBDevice
MedicalChartHelper Class Reference
MedicalChartHelper class, an invisible "helper" class, helps manage an existing standard chart object. More...
Public Types | |
| enum | DataFormats { FormatUnsigned, Format16bit2sComplement } |
Public Member Functions | |
| MedicalChartHelper (System.Windows.Forms.DataVisualization.Charting.Chart chart, string chartArea1Name="ChartArea1Red", string series1Name="SeriesRed", string chartArea1AxisYTitle="Red ADC Code", string chartArea2Name="ChartArea2IR", string series2Name="SeriesIR", string chartArea2AxisYTitle="IR ADC Code", string chartArea3Name="ChartArea3Green", string series3Name="SeriesGreen", string chartArea3AxisYTitle="Green ADC Code", DataFormats dataFormat=DataFormats.FormatUnsigned) | |
| Constructor. | |
| void | Clear () |
| Clear chart data, reset _xCount, reset _plotPointsToSkip. | |
| void | AppendDataChartArea1 (int[] rawIntArrayYData, int firstNewXIndex, int lastXIndex) |
| Append data to chart area 1 series 1 (Optical: Red. | |
| void | AppendDataChartArea2 (int[] rawIntArrayYData, int firstNewXIndex, int lastXIndex) |
| Append data to chart area 2 series 2 (Optical: IR. | |
| void | AppendDataChartArea3 (int[] rawIntArrayYData, int firstNewXIndex, int lastXIndex) |
| Append data to chart area 3 series 3 (Optical: Green. | |
Data Fields | |
| int | _plotPoints = 500 |
| The actual number of points on the plot (<= _maxPlotPoints). | |
| DataFormats | DataFormat = DataFormats.FormatUnsigned |
| Raw data format. | |
Properties | |
| bool | plotXAxisNoLabels [get, set] |
| Replacement for plotXAxisNoLabelsToolStripMenuItem.Checked. | |
| bool | plotXAxisTime [get, set] |
| Replacement for plotXAxisTimeToolStripMenuItem.Checked. | |
| int | SampleRate_Hz [get, set] |
| Sample rate. | |
| int | SampleAverage_n [get, set] |
| Replacement for myMAX30101.SampleAverage_n. | |
Detailed Description
MedicalChartHelper class, an invisible "helper" class, helps manage an existing standard chart object.
Initializes the standard System.Windows.Forms.DataVisualization.Charting.Chart chart with a maximum of 3 chart areas vertically aligned with each other.
When data is appended to the chart, the chart series data is initially aligned with the left. Once the X axis reaches the right side of the screen, the chart begins scrolling so that newest data is aligned to the right edge.
Definition at line 28 of file MedicalChartHelper.cs.
Member Enumeration Documentation
| enum DataFormats |
- Enumerator:
FormatUnsigned Interpret raw data as unsigned values.
Format16bit2sComplement Interpret raw data as 16-bit, signed 2's complement values.
Definition at line 690 of file MedicalChartHelper.cs.
Constructor & Destructor Documentation
| MedicalChartHelper | ( | System.Windows.Forms.DataVisualization.Charting.Chart | chart, |
| string | chartArea1Name = "ChartArea1Red", |
||
| string | series1Name = "SeriesRed", |
||
| string | chartArea1AxisYTitle = "Red ADC Code", |
||
| string | chartArea2Name = "ChartArea2IR", |
||
| string | series2Name = "SeriesIR", |
||
| string | chartArea2AxisYTitle = "IR ADC Code", |
||
| string | chartArea3Name = "ChartArea3Green", |
||
| string | series3Name = "SeriesGreen", |
||
| string | chartArea3AxisYTitle = "Green ADC Code", |
||
| DataFormats | dataFormat = DataFormats.FormatUnsigned |
||
| ) |
Constructor.
- Parameters:
-
chart chartArea1Name series1Name chartArea1AxisYTitle chartArea2Name series2Name chartArea2AxisYTitle chartArea3Name series3Name chartArea3AxisYTitle
Definition at line 54 of file MedicalChartHelper.cs.
Member Function Documentation
| void AppendDataChartArea1 | ( | int[] | rawIntArrayYData, |
| int | firstNewXIndex, | ||
| int | lastXIndex | ||
| ) |
Append data to chart area 1 series 1 (Optical: Red.
Accelerometer: X)
- Postcondition:
- _xCount1 is updated
- Parameters:
-
rawIntArrayYData firstNewXIndex lastXIndex
Definition at line 295 of file MedicalChartHelper.cs.
| void AppendDataChartArea2 | ( | int[] | rawIntArrayYData, |
| int | firstNewXIndex, | ||
| int | lastXIndex | ||
| ) |
Append data to chart area 2 series 2 (Optical: IR.
Accelerometer: Y)
- Postcondition:
- _xCount2 is updated
- Parameters:
-
rawIntArrayYData firstNewXIndex lastXIndex
Definition at line 340 of file MedicalChartHelper.cs.
| void AppendDataChartArea3 | ( | int[] | rawIntArrayYData, |
| int | firstNewXIndex, | ||
| int | lastXIndex | ||
| ) |
Append data to chart area 3 series 3 (Optical: Green.
Accelerometer: Z)
- Postcondition:
- _xCount3 is updated
- Parameters:
-
rawIntArrayYData firstNewXIndex lastXIndex
Definition at line 384 of file MedicalChartHelper.cs.
| void Clear | ( | ) |
Clear chart data, reset _xCount, reset _plotPointsToSkip.
Definition at line 118 of file MedicalChartHelper.cs.
Field Documentation
| int _plotPoints = 500 |
The actual number of points on the plot (<= _maxPlotPoints).
The actual number of points may be less than _maxPlotPoints in order to maintain ~numPlotTime.Value of plotted data
Definition at line 221 of file MedicalChartHelper.cs.
| DataFormats DataFormat = DataFormats.FormatUnsigned |
Raw data format.
Definition at line 688 of file MedicalChartHelper.cs.
Property Documentation
bool plotXAxisNoLabels [get, set] |
Replacement for plotXAxisNoLabelsToolStripMenuItem.Checked.
Definition at line 141 of file MedicalChartHelper.cs.
bool plotXAxisTime [get, set] |
Replacement for plotXAxisTimeToolStripMenuItem.Checked.
Definition at line 157 of file MedicalChartHelper.cs.
int SampleAverage_n [get, set] |
Replacement for myMAX30101.SampleAverage_n.
Definition at line 195 of file MedicalChartHelper.cs.
int SampleRate_Hz [get, set] |
Sample rate.
Replacement for int.Parse(cboSampleRate.Text)
Definition at line 171 of file MedicalChartHelper.cs.
Generated on Thu Jul 28 2022 18:07:16 by
1.7.2