Hi and I was wondering if there was a way I could have a graph (line graph) that will plot a value over time and where is slowly scrolls as it goes? I have my PLC outputting my voltage at N7:1 and I have spent many days and nights looking for a way. any help would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A trending chart is fairly easy to create. Here are the basic steps:
1) Add a Chart from the Data group in the Toolbox
2) In the Chart properties, go into the series collection by clicking in the property,then clicking the button with the elipsis
3) From the pop up window, change the ChartType to Line
4) Click OK
5) Add a timer from the All Windows Forms group in the ToolBox
6) Set the timer Interval to the sample time you want in milliseconds
7) Set the Enabled property to True
8) Double click the timer in the component tray to go to the Tick event handler
9) Add this code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim Value As Integer
Try
Value = EthernetIPforCLXCom1.ReadSynchronous("MyTag", 1)(0)
Catch ex As Exception
Exit Sub
End Try
'* Add the next point to the chart
Chart1.Series(0).Points.Add(Value)
'* Do not let more than 100 point be on the chart
If Chart1.Series.Count > 100 Then
Chart1.Series(0).Points.RemoveAt(0)
End If
End Sub
NOTE: Depending on which driver you use, the driver name will change.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From: Archie
Sent: Tuesday, 23 July 2013 15:29
To: [advancedhmi:discussion]
A trending chart is fairly easy to create. Here are the basic steps:
1) Add a Chart from the Data group in the Toolbox
2) In the Chart properties, go into the series collection by clicking in the property,then clicking the button with the elipsis
3) From the pop up window, change the ChartType to Line
4) Click OK
5) Add a timer from the All Windows Forms group in the ToolBox
6) Set the timer Interval to the sample time you want in milliseconds
7) Set the Enabled property to True
8) Double click the timer in the component tray to go to the Tick event handler
9) Add this code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim Value As Integer
Try
Value = EthernetIPforCLXCom1.ReadSynchronous("MyTag", 1)(0)
Catch ex As Exception
Exit Sub
End Try
'* Add the next point to the chart
Chart1.Series(0).Points.Add(Value)
'* Do not let more than 100 point be on the chart
If Chart1.Series.Count > 100 Then
Chart1.Series(0).Points.RemoveAt(0)
End If
End Sub
NOTE: Depending on which driver you use, the driver name will change.
Would it be possible for you tomemail me amquickmone liner how tomadd the current time to the y axis as it scrolls.
Great job.
Thanks
Sent from Windows Mail
From: Archie
Sent: Tuesday, 23 July 2013 15:29
To: [advancedhmi:discussion]
A trending chart is fairly easy to create. Here are the basic steps:
1) Add a Chart from the Data group in the Toolbox
2) In the Chart properties, go into the series collection by clicking in the property,then clicking the button with the elipsis
3) From the pop up window, change the ChartType to Line
4) Click OK
5) Add a timer from the All Windows Forms group in the ToolBox
6) Set the timer Interval to the sample time you want in milliseconds
7) Set the Enabled property to True
8) Double click the timer in the component tray to go to the Tick event handler
9) Add this code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim Value As Integer
Try
Value = EthernetIPforCLXCom1.ReadSynchronous("MyTag", 1)(0)
Catch ex As Exception
Exit Sub
End Try
'* Add the next point to the chart
Chart1.Series(0).Points.Add(Value)
'* Do not let more than 100 point be on the chart
If Chart1.Series.Count > 100 Then
Chart1.Series(0).Points.RemoveAt(0)
End If
End Sub
NOTE: Depending on which driver you use, the driver name will change.
Hi and I was wondering if there was a way I could have a graph (line graph) that will plot a value over time and where is slowly scrolls as it goes? I have my PLC outputting my voltage at N7:1 and I have spent many days and nights looking for a way. any help would be appreciated.
A trending chart is fairly easy to create. Here are the basic steps:
1) Add a Chart from the Data group in the Toolbox
2) In the Chart properties, go into the series collection by clicking in the property,then clicking the button with the elipsis
3) From the pop up window, change the ChartType to Line
4) Click OK
5) Add a timer from the All Windows Forms group in the ToolBox
6) Set the timer Interval to the sample time you want in milliseconds
7) Set the Enabled property to True
8) Double click the timer in the component tray to go to the Tick event handler
9) Add this code:
NOTE: Depending on which driver you use, the driver name will change.
Hello
This did not work for me.
Ian
Sent from Windows Mail
From: Archie
Sent: Tuesday, 23 July 2013 15:29
To: [advancedhmi:discussion]
A trending chart is fairly easy to create. Here are the basic steps:
1) Add a Chart from the Data group in the Toolbox
2) In the Chart properties, go into the series collection by clicking in the property,then clicking the button with the elipsis
3) From the pop up window, change the ChartType to Line
4) Click OK
5) Add a timer from the All Windows Forms group in the ToolBox
6) Set the timer Interval to the sample time you want in milliseconds
7) Set the Enabled property to True
8) Double click the timer in the component tray to go to the Tick event handler
9) Add this code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim Value As Integer
Try
Value = EthernetIPforCLXCom1.ReadSynchronous("MyTag", 1)(0)
Catch ex As Exception
Exit Sub
End Try
End Sub
NOTE: Depending on which driver you use, the driver name will change.
graphing over time
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/advancedhmi/discussion/875091/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Hello
I got it working afternyour guidance.
Would it be possible for you tomemail me amquickmone liner how tomadd the current time to the y axis as it scrolls.
Great job.
Thanks
Sent from Windows Mail
From: Archie
Sent: Tuesday, 23 July 2013 15:29
To: [advancedhmi:discussion]
A trending chart is fairly easy to create. Here are the basic steps:
1) Add a Chart from the Data group in the Toolbox
2) In the Chart properties, go into the series collection by clicking in the property,then clicking the button with the elipsis
3) From the pop up window, change the ChartType to Line
4) Click OK
5) Add a timer from the All Windows Forms group in the ToolBox
6) Set the timer Interval to the sample time you want in milliseconds
7) Set the Enabled property to True
8) Double click the timer in the component tray to go to the Tick event handler
9) Add this code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim Value As Integer
Try
Value = EthernetIPforCLXCom1.ReadSynchronous("MyTag", 1)(0)
Catch ex As Exception
Exit Sub
End Try
End Sub
NOTE: Depending on which driver you use, the driver name will change.
graphing over time
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/advancedhmi/discussion/875091/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
HI
I did so
chart
chart is at 100 points
How Can I solve this problem?
thanks
best regard
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim Value As Integer
Last edit: RODYan00 2018-05-08