DateTime axisX in seconds
|
04-25-2015, 01:46 AM
Post: #7
|
|||
|
|||
RE: DateTime axisX in seconds
(04-20-2015 09:54 AM)manutek Wrote: and I can not find the cause of the problem. :-( Hi Manutek, Thank you! I am sorry for the late reply, I got caught between the 7.6 release and some system problems in the last few days :-( . The problem is that your time period is too small and is getting rounded. If you multiply it by 1000 as example it will work. You may need to reformat the date printing accordingly: private void timer1_Tick(object sender, EventArgs e) { m_Date = m_Date.AddHours(1); scope1.Channels[0].Data.AddXYPoint(m_Date.ToBinary() * 1000, m_RandomGen.NextDouble() * 2000 - 1000); } private void scope1_XAxis_CustomLabel(object sender, Mitov.PlotLab.CustomAxisLabelEventArgs Args) { Args.AxisLabel = System.DateTime.FromBinary((long)Math.Round(Args.SampleValue / 1000 )).ToString("HH:mm:ss"); } |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
DateTime axisX in seconds - Rashit - 06-24-2014, 02:41 PM
RE: DateTime axisX in seconds - Rashit - 06-24-2014, 06:49 PM
RE: DateTime axisX in seconds - Dave - 04-03-2015, 10:18 PM
RE: DateTime axisX in seconds - manutek - 04-06-2015, 09:50 AM
RE: DateTime axisX in seconds - Dave - 04-20-2015, 02:30 AM
RE: DateTime axisX in seconds - manutek - 04-20-2015, 09:54 AM
RE: DateTime axisX in seconds - mitov - 04-25-2015 01:46 AM
RE: DateTime axisX in seconds - manutek - 04-26-2015, 08:21 AM
RE: DateTime axisX in seconds - michal - 03-14-2017, 09:23 AM
|
User(s) browsing this thread: 1 Guest(s)