General Category > Support Questions
ChartBySampling and display time
bachphi:
I am using 3.99a and wanted to use Time on X axis, so I changed XValueType to Time, but it only display 12:00AM over and over. How do I fix this? Thanks in advance.
Joe Matkowski:
http://advancedhmi.com/forum/index.php?topic=828.0
Here is a thread on how to get the time to display correctly, I changed the code in the chart to this
line 226
MyBase.Series(index).Points.AddXY(Now.ToLongTimeString, CDbl(m_PLCAddressItems(index).GetScaledValue(e.PLCComEventArgs.Values(0))))
Jody
bachphi:
Yes, I did check the thread. Did you really have it working? On my system it was line 225, it compiled w/o error , but running the app will get an exception:
************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
Joe Matkowski:
I just commented out line 225 and copy paste which became line 226. that is the exact code I used. copied from my app what version of studio are you using I am using community 2015
jody
bachphi:
I am using VS Community 2015 & AAHMI399a
Navigation
[0] Message Index
[#] Next page
Go to full version