RtecatStartComponent
RtecatStartComponent starts all configured E-CAT MainDevice instances.
Syntax
BOOL RtecatStartComponent();
Return Values
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code if the function fails.
Possible error codes:
| Error codes | Meaning |
|---|---|
|
RTECAT_ERROR_NO_LICENSE |
The E-CAT component does not have a valid license. |
|
RTNL2_ERROR_XXX |
Failed to start the NL2 due to an NL2_Error-type error. |
|
RT_ERROR_SUBSYSTEM_NOT_STARTED |
The Subsystem or NL2 did not start. |
|
RTECAT_ERROR_STARTED |
All defined instances have already started. |
|
ERROR_ABANDONED_WAIT_0 |
Failed to acquire the synchronization lock. |
|
RTECAT_ERROR_NO_EVENT |
An instance mutex was not created after launching the process. |
|
RTECAT_ERROR_TIMEOUT_STARTING |
Instance failed to start within the 10-second timeout period. |
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtecatComponent.h |
RtecatApi_W64.lib (Windows), RtecatApi.lib (RTSS) |
See Also: