GetTrigger
Gets the details of a trigger.
Syntax
KsError GetTrigger(
int Index,
McTriggerSource* Source
);
Parameters
Index: a trigger index. Indexes are zero based. You can have up to 16 triggers. For example, index 0 uses triggerTime, index 1 uses triggerIoOutput, and index 2 uses triggerMotion.
Source: pointer to a structure that will receive the trigger details. See the McTriggerSource structure.
Return value
If the function succeeds, it returns errNoError, otherwise an error code. For more information about the error code, see the KsError list.
Usable EtherCAT states
ecatOP
Example
N/A
Requirements
| RT | Win32 | |
|---|---|---|
| Minimum supported version | 4.3 | 4.3 |
| Header | ksmotion.h | ksmotion.h |
| Library | KsApi_Rtss.lib | KsApi.lib |
See also