![]() If you want work with the separate class of sensor you must get the values of data and update your table in your AnalogSensorData class, because after you can assign data and update series, correctly. To achieve it, you must implement methods or functions to get the data and update the table (UpdateTable) in the moment to get the values, to define the fields, after do it, you can already assign the Data to the series. You have to consider that you must define the values of table before populate the series dynamically or using a DataSource. I think is possible, but you need consider some items to implement a correct solution: is it possible?Īs well i am trying to implement your code, i understand your code but i need change some functions according to your code. Is it possible if i have two sensor information getting differently from serial port, i am trying to update both in same table and same chart. I want to update these sensors values also to the same table and in the same chart like previous sensors. What i want to know is, is it possible, I have another type of sensors and they have separate class than "AnalogSensorData " and i am trying to raise event when i have new data from serial port from these sensors. Which is working perfectly with the above code which i have posted previously. Whenever he have new data from serial port he is raising this event and it is updating table as well as chart based on how many sensor i have connected. In the above code i have several sensors response in the class of analogsensordata. Is it possible in the code which i have posted originally , ![]() ![]() I have seen your answer and i am trying to implement like that in my code but i have small doubt here. TChart1.DoubleClick += new EventHandler(tChart1_DoubleClick) ĭataTable TeeDataTable = new DataTable("DataTable"+i.ToString()) ĭataColumn xval = new DataColumn("X", typeof(double)) ĭataColumn yval = new DataColumn("Y", typeof(double)) Īxis axis = new Axis(false, false, tChart1.Chart) Ī = Ī = Īxis.EndPosition = 100 //we cannot set this to 200 as it is a % value.Īxis.RelativePosition = (-4) * ( - 1) Ĭould you please check my code and adapt it, because we can reproduce your problem here to try to find a solution for you? Code: Select all private void InitializeChart() ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |