AdvancedHMI Real time graph

Michal_dk

Member
Join Date
Oct 2007
Location
Vejen
Posts
153
Hi Guys!

I'm doing a small setup where I plan to show some motor current data as a real time graph in AdvancedHMI.

I have a CompactLogix PLC running EthernetIP.

I have zoomed in and the Zedgraph graphical, but I have a limited knowledge of VBA (am using studio express 2012) and I can't see my way through this.

I have not been able to find any tutorials on how to get this set up, does anyone have experience with this?

Perhaps a different kind of display than the zedgraph?

Michal
 
I would recommend using the chart component that is part of Visual Studio under the Data group.

Add a chart and a timer to the form. Set the timer Interval of the Timer(in ms) to how fast you want to sample and set the Enabled to true. Double click the timer to get back to the code and add this code:

Code:
        Dim value As String = EthernetIPforCLXCom1.Read("MyTag")
        Chart1.Series(0).Points.Add(value)
        If Chart1.Series(0).Points.Count > 1000 Then
            Chart1.Series(0).Points.RemoveAt(0)
        End If
 
Thanks Archie!

That was as simple as I needed it :)

Now to play with getting the timestamps of each sample.

Best regards,

Michal
 

Similar Topics

I would like to temporarily install AdvancedHMI on the same computer as FactoryTalk View SE. I am waiting for another contractor to finish the FTV...
Replies
3
Views
564
Hi all, just wanna ask if anyone has used an M221 controller and successfully connected to AdvancedHMI
Replies
1
Views
1,322
MessageDisplayByValue question is there a way to embed a tag value in the messages of the MessageDisplayByValue function ??? Similar to what is...
Replies
10
Views
2,849
Hi All I have been switching between 2017 and 2019, all depending on which one i found more stable, at the moment I use 2019 I was just...
Replies
1
Views
1,484
I tried to use AdvancedHMI as a Modubius Client and it does poll the data from a Modbus server. But I am unable to use AdvancedHMI as a server...
Replies
10
Views
3,060
Back
Top Bottom