Performs the initialization.
Ret = TimInit(DeviceName, ProductName)
DeviceName [ VB.NET: String ] [ C, C++: char * ] [ C#: out string ]
Specify the base address of the buffer to store the device name string. The maximum length of the string is 256 characters.
When the empty string is specified, the device to be used is decided automatically.
When you want to use the specific device's onboard system timer, please specify the device name.
When the onboard system timer can be used, the device name of the device to be used is stored in this parameter.
ProductName [ VB.NET: String ] [ C, C++: char * ] [ C#: out string ]
Specify the base address of the buffer to store the product name string. The maximum length of the string is 256 characters.
When using onboard system timer, the board name or card name is stored in this parameter.
When using system timer, "SYSTEM TIMER" is returned.
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ]
Definition |
Value |
Description |
TIM_ERR_SUCCESS |
0 |
Normal completed |
TIM_ERR_DLL_BUFF_ADDRESS |
10100 |
Invalid data buffer address. The buffer address is NULL(0). Please confirm the source code of the application. |
TIM_ERR_DLL_CALL_DRIVER |
10002 |
Not call the driver (Failure on DEVICE I/O CONTROL). |
TIM_ERR_DLL_NOT_FIND_DEVICE |
10051 |
Not find the available device. |
TIM_ERR_SYS_NOT_SUPPORTED |
20001 |
This board couldn't use this function. |
The others (See also:Details of Error Code)
None
After TimInit completed normally, and before TimExit is called, every function can be used.