.

Controller.SampleCounter

SampleCounter represents the controller’s sample counter, which is the number of servo cycles (samples) that have occurred since the last sample counter reset. Since the sample counter is a signed 32-bit integer, if the sample counter is 2147483647 it will roll over on the next servo cycle to -2147483648.

Version History

Introduced in MPX 2.0.

Units

Samples

Type

Int32 (read only)

Visual Basic

Syntax

Property SampleCounter As Int32

Sample Code

 
Dim currentSample As Int32 = controller.SampleCounter


Sample Application

 

C#

Syntax

int SampleCounter;

Sample Code

 
int x = controller.SampleCounter;
            
 

 

 

See Also

Reset

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering