nType | (Long) Specifies transmissions in this object whose number we want to get.
Number of transfers since data receive and data send:
0 - The number of all transfers (successul and failed) since application launch (= GetCount(1) + GetCount(2))
1 - The number of all successful transfers since application launch (= GetCount(11) + GetCount(21)).
2 - The number of all failed transfers since application launch (= GetCount(12) + GetCount(22)).
3 - The number of latest failed transfers. This number is set to 0 after every successful transmission. (= GetCount(13) + GetCount(23)).
Number of transfers since data receive:
10 - similarly to 0 (= GetCount(11) + GetCount(12))
11 - similarly to 1
12 - similarly to 2
13 - similarly to 3
Number of transfers since data send:
20 - similarly to 0 (= GetCount(21) + GetCount(22))
21 - similarly to 1
22 - similarly to 2
23 - similarly to 3 |
---|
var oCommGroup = pMe.Pm("/Comm/Group1");
if (oCommGroup.GetCount(3) > 5)
{
// The action for warning the non-functional communication
}