Sets the specified device to master. And the output contents are set as synchronous signals.
Ret = DioDmSetMaster ( Id , ExtSig1 , ExtSig2 , ExtSig3 , MasterHalt , SlaveHalt )
Id
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify the device ID retrieved from DioInit.
ExtSig1
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
ExtSig2 [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python:
ctypes.c_short ]
ExtSig3 [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python:
ctypes.c_short ]
Specify the output signals to the signal lines from ExtSig1 to ExtSig3.
Input
Definition |
Value [Dec] |
Description |
DIODM_EXT_START_SOFT_IN |
1 |
Software start (Pattern input) |
DIODM_EXT_STOP_SOFT_IN |
2 |
Software stop (Pattern input) |
DIODM_EXT_CLOCK_IN |
3 |
Internal clock (Pattern input) |
DIODM_EXT_EXT_TRG_IN |
4 |
External clock (Pattern input) |
DIODM_EXT_START_EXT_RISE_IN |
5 |
Rising edge of external start trigger (Pattern input) |
DIODM_EXT_START_EXT_FALL_IN |
6 |
Falling edge of external start trigger (Pattern input) |
DIODM_EXT_START_PATTERN_IN |
7 |
Pattern matching (Pattern input) |
DIODM_EXT_STOP_EXT_RISE_IN |
8 |
Rising edge of external stop trigger (Pattern input) |
DIODM_EXT_STOP_EXT_FALL_IN |
9 |
Falling edge of external stop trigger (Pattern input) |
DIODM_EXT_CLOCK_ERROR_IN |
10 |
Clock error (Pattern input) |
DIODM_EXT_HANDSHAKE_IN |
11 |
handshake (Pattern input) |
Output
Definition |
Value [Dec] |
Description |
DIODM_EXT_START_SOFT_OUT |
101 |
Software start (Pattern output) |
DIODM_EXT_STOP_SOFT_OUT |
102 |
Software stop (Pattern output) |
DIODM_EXT_CLOCK_OUT |
103 |
Internal clock (Pattern output) |
DIODM_EXT_EXT_TRG_OUT |
104 |
External clock (Pattern output) |
DIODM_EXT_START_EXT_RISE_OUT |
105 |
Rising edge of external start trigger (Pattern output) |
DIODM_EXT_START_EXT_FALL_OUT |
106 |
Falling edge of external start trigger (Pattern output) |
DIODM_EXT_STOP_EXT_RISE_OUT |
107 |
Rising edge of external stop trigger (Pattern output) |
DIODM_EXT_STOP_EXT_FALL_OUT |
108 |
Falling edge of external stop trigger (Pattern output) |
DIODM_EXT_CLOCK_ERROR_OUT |
109 |
Clock error (Pattern output) |
DIODM_EXT_HANDSHAKE_OUT |
110 |
Handshake (Pattern output) |
MasterHalt
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
1: Fixed (Valid)
SlaveHalt
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
1: Fixed (Valid)
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
Definition |
Value [Dec] |
Description |
DIO_ERR_SUCCESS |
0 |
Normal completed. |
DIO_ERR_SYS_RECOVERED_FROM_STANDBY |
7 |
Execute DioResetDevice function because the device has recovered from standby mode. |
DIO_ERR_DLL_INVALID_ID |
10001 |
Invalid ID specified. |
DIO_ERR_DLL_CALL_DRIVER |
10002 |
Not call the driver (Failure on DEVICE I/O CONTROL). |
DIO_ERR_SYS_NOT_SUPPORTED |
20001 |
This board couldn't use this function. |
DIO_ERR_SYS_SIGNAL |
21000 |
Signal is outside the setting range. |
The others (See also: Details of Error Code)
The default is stand-alone among stand-alone, master and slave.
It is necessary to set the device to one mode among stand-alone, master and slave to make the application operation regular.
The master is used in this case, when two or more boards are synchronously operated with a synchronous control connector (SC connector), the board that outputs the synchronously signal is specified to master.
Sets ExtSig1, ExtSig2, ExtSig3 to Internal clock (Pattern input), Software start (Pattern input), Software stop (Pattern input).
|
|
VB.NET |
Dim Ret As Integer |
C, C++ |
long Ret; |
C# |
int Ret; |
Python |
Ret = ctypes.c_long() |
DioDmSetStandAlone DioDmSetSlave