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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Algorithms Namespace > AutomatonStateStatistics Class : CurrentActiveDuration Property
The duration of the current active state; zero if not active. In milliseconds.
Syntax
'Declaration
 
<ColumnDisplayAttribute(MaximumWidth=10, RefinementRank=100)>
<DefaultValueAttribute(0)>
<DisplayAttribute(AutoGenerateField=False, 
   Order=0, 
   ShortName="Current Active Duration")>
<PureAttribute()>
<UnitAttribute("ms")>
Public ReadOnly Property CurrentActiveDuration As Long
'Usage
 
Dim instance As AutomatonStateStatistics
Dim value As Long
 
value = instance.CurrentActiveDuration
[ColumnDisplay(MaximumWidth=10, RefinementRank=100)]
[DefaultValue(0)]
[Display(AutoGenerateField=false, 
   Order=0, 
   ShortName="Current Active Duration")]
[Pure()]
[Unit("ms")]
public long CurrentActiveDuration {get;}
[ColumnDisplay(MaximumWidth=10, RefinementRank=100)]
[DefaultValue(0)]
[Display(AutoGenerateField=false, 
   Order=0, 
   ShortName="Current Active Duration")]
[Pure()]
[Unit("ms")]
public:
property int64 CurrentActiveDuration {
   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