Library.SetFeatureStatus Method
Sets the configuration of an E-CAT startup feature.
Namespace:
IntervalZero.MaxRT.Ecat.Api.NetApi
Assembly:
IntervalZero.MaxRT.Ecat (in IntervalZero.MaxRT.Ecat.dll) Version: 1.0.0.0 (File version: 1.1.0)
Syntax
public EcatErrorCode SetFeatureStatus(
EcatHandle mainDevice,
EcatFeature feature,
double status
)
Parameters
mainDevice
Type: EcatHandle
A handle to a MainDevice. To retrieve the corresponding handle, use CreateMainDevice or OpenMainDevice.
feature
Type: EcatFeature
The E-CAT feature to be configured.
status
Type: Double
A value to set the feature status.
Return Value
EcatErrorCode is thrown when any of these errors occur:
| Error code | Meaning |
|---|---|
|
ecatErrNoError |
The function succeeded. |
|
ecatErrWrongParameter |
One of the following conditions occurred:
|
|
ecatErrMainDeviceNotReady |
The MainDevice instance does not exist. |
|
ecatErrNoLicense |
One of the following conditions occurred:
|
|
ecatErrWrongEnvironment |
The MainDevice is not stopped. |
|
ecatErrFeatureUnavailable |
Parameter feature is ecatFeatureDcReferenceIndex, which is not currently supported. |
Remarks
SetFeatureStatus is not allowed after Start has succeeded.
See Also: