Function
Sets the specified device to stand-alone.
Format
Ret = DioDmSetStandAlone ( Id )
Parameters
Id
[C:short] [Python: ctypes.c_short]
Specifies the device ID retrieved from DioInit.
Return Value
Ret [C:long] [Python: ctypes.c_long]
Definition |
Value [Dec] |
Description |
DIO_ERR_SUCCESS |
0 |
Normal complete |
DIO_ERR_DLL_INVALID_ID |
10001 |
Invalid ID is specified. |
DIO_ERR_DLL_CALL_DRIVER |
10002 |
Driver cannot be called (failed in ioctl). |
The other errors: (See also: Error code details)
Initial Value
Stand-alone should be specified from the choice of Stand-Alone, Master, or Slave.
Remarks
One of the settings must be executed from Stand-Alone, Master, or Slave to fix the application operation.
Example
C |
Ret = DioDmSetStandAlone(
Id ); |
Python |
Ret = cdio.DioDmSetStandAlone(
Id ) |
See Also
DioDmSetMasterCfg DioDmSetSlaveCfg