.

Capture.Arm

Arms the capture so that it may capture an encoder position.

Version History

Introduced in MPX 2.0.

Result

Void

Common Exceptions

 
Error Occurs when...
CaptureArmed The capture object is already armed.

Visual Basic

Syntax

Sub Arm()

Sample Code

 
Dim capture As Mpx.Capture = controller.Axis(3).Capture(0)
capture.ConfigurationReset()
capture.SourceEnable(Mpx.CaptureSource.Index) = True
capture.SourceLevel(Mpx.CaptureSource.Index) = True
capture.Edge = Mpx.CaptureEdge.Rising
capture.Arm()


Sample Application

Home1

C#

Syntax

void Arm ();

Sample Code

 
Mpx.Capture capture = controller.Axis(3).Capture(0);
capture.ConfigurationReset();
capture.SourceEnable[Mpx.CaptureSource.Index] = true;
capture.SourceLevel[Mpx.CaptureSource.Index] = true;
capture.Edge = Mpx.CaptureEdge.Rising;
capture.Arm();

Sample Application

Home1

See Also

Disarm
State

 

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