.

Capture.SourceEnable

Enables or disables a particular capture source.
Setting SourceEnable to True enables a capture source.
Setting SourceEnable to False disables a capture source.

Version History

Introduced in MPX 2.0.

Type

Boolean (read only)

Index

 
Index Type Description
Mpx.CaptureSource The capture source that is to be accessed. See CaptureSource.

Common Exceptions

 
Error Occurs when...
CaptureArmed The capture object is currently armed and cannot be configured.

Visual Basic

Syntax

Property SourceEnable As Boolean(index As Mpx.CaptureSource)

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

bool[Mpx.CaptureSource] SourceEnable;

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

Edge
SourceLevel

Enumerations
CaptureSource

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