.

Capture.IsGlobalTrigger

Determines whether the global trigger bit is determined from the capture trigger state. See diagram below.

//Needs edits

Version History

Introduced in MPX 2.0.

Type

Boolean

Common Exceptions

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

Visual Basic

Syntax

Property IsGlobalTrigger As Boolean

Sample Code

 
Dim capture0 As Mpx.Capture = controller.Axis(0).Capture(0)
Dim capture1 As Mpx.Capture = controller.Axis(1).Capture(0) 

' capture1 will produce the global trigger signal
capture1.ConfigurationReset()
capture1.SourceEnable(Mpx.CaptureSource.Index) = True
capture1.SourceLevel(Mpx.CaptureSource.Index) = True
capture1.IsGlobalTrigger = True
capture1.Edge = Mpx.CaptureEdge.Transition
capture1.Arm()
 
' capture2 will use the global trigger signal as a source
capture2.ConfigurationReset()
capture2.SourceEnable(Mpx.CaptureSource.Home) = True
capture2.SourceLevel(Mpx.CaptureSource.Home) = False
capture2.SourceEnable(Mpx.CaptureSource.Global) = True
capture2.SourceLevel(Mpx.CaptureSource.Global) = True
capture2.Edge = Mpx.CaptureEdge.Rising
capture2.Arm()


Sample Application

Home1

C#

Syntax

bool IsGlobalTrigger;

Sample Code

 
Mpx.Capture capture0 = controller.Axis[0].Capture[0];
Mpx.Capture capture1 = controller.Axis[1].Capture[0];


// capture1 will produce the global trigger signal
capture1.ConfigurationReset();
capture1.SourceEnable[Mpx.CaptureSource.Index] = true;
capture1.SourceLevel[Mpx.CaptureSource.Index] = true;
capture1.IsGlobalTrigger = true;
capture1.Edge = Mpx.CaptureEdge.Transition;
capture1.Arm();

// capture2 will use the global trigger signal as a source
capture2.ConfigurationReset();
capture2.SourceEnable[Mpx.CaptureSource.Home] = true;
capture2.SourceLevel[Mpx.CaptureSource.Home] = false;
capture2.SourceEnable[Mpx.CaptureSource.Global] = true;
capture2.SourceLevel[Mpx.CaptureSource.Global] = true;
capture2.Edge = Mpx.CaptureEdge.Rising;
capture2.Arm();

Sample Application

Home1

See Also

Capture Object

 

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