OPC Studio User's Guide and Reference
LastCycleDuration Property (AutomatonStateStatistics)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Algorithms Namespace > AutomatonStateStatistics Class : LastCycleDuration Property
The duration of the last active state (excluding the current active state); -1 if no completed active state. In milliseconds.
Syntax
'Declaration
 
<ColumnDisplayAttribute(MaximumWidth=10, RefinementRank=100)>
<DefaultValueAttribute(-1)>
<DisplayAttribute(AutoGenerateField=False, 
   Order=0, 
   ShortName="Last Cycle Duration")>
<UnitAttribute("ms")>
Public ReadOnly Property LastCycleDuration As Long
'Usage
 
Dim instance As AutomatonStateStatistics
Dim value As Long
 
instance.LastCycleDuration = value
 
value = instance.LastCycleDuration
[ColumnDisplay(MaximumWidth=10, RefinementRank=100)]
[DefaultValue(-1)]
[Display(AutoGenerateField=false, 
   Order=0, 
   ShortName="Last Cycle Duration")]
[Unit("ms")]
public long LastCycleDuration {get;}
[ColumnDisplay(MaximumWidth=10, RefinementRank=100)]
[DefaultValue(-1)]
[Display(AutoGenerateField=false, 
   Order=0, 
   ShortName="Last Cycle Duration")]
[Unit("ms")]
public:
property int64 LastCycleDuration {
   int64 get();
}
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also