I have been struggling with this for days. Since I have been teaching myself Visual Studios [VS2012 C# Desktop] , I am still in the very newbie category.
I am creating a Test Application for a USB connected device. All is relatively simple Buttons and Message Boxes.
I have some Analog-To-Digital [ADC] converters that produce a hexadecimal value from 0x0000 to 0x03FF [decimal 0-1024]. I issue a command and receive the response and update the Buttons with the response values. With each command issued and data received, all the buttons configured are updated as expected.
I want to add a Bar Chart that will rise and fall as the values of the ADC rise and fall.
I added the Chart from the Tool Box, and configured the series / other related chart items associated with how it looks and have the chart looking as I want it to look. I can put in a set YValue and when I run my project, I see it in the chart.
I have the following lines that when I set a break point on an instruction after them, I can see in the watch window that the initial values that were originally placed on the chart have new values in the watch window, but the chart has not been updated.
// Emitter / Detector Chartthis.IR_DetectorChart.Series["IR_Detectors"].Points[0].YValues[0] = Convert.ToDouble(ADC_Left_Detector);
this.IR_DetectorChart.Series["IR_Detectors"].Points[1].YValues[0] = Convert.ToDouble(ADC_Right_Detector);
Can some one show me how to get the Chart on the UI to get updated with the new data.
Thanks for contributing to my knowledge.