56
9.6.2
CAN_Close
CAN_Close(Handle)
Function:
Closes the channel with the specified handle.
Parameters:
•
Handle
o
Type: Integer
o
The handle of the CAN channel to be closed.
o
Format: A numeric value provided by the return value of CAN_Open
o
Example: 2508
•
Return value:
o
Type: Integer
o
Code indicating result of CAN_Close.
o
Result:
1, CAN_Close is successful
-1, error communicating with COM port
-4, error: CAN channel is not open
Sample Command:
CAN_Close(2508)
Closes device connected to channel with the handle 2508.
Содержание USB-2CAN-M
Страница 1: ...Titan Electronics Inc Web www titan tw USB 2CAN M USB CAN SI M USER S MANUAL 2019 Edition ...
Страница 5: ...4 9 6 13 Using the API in Python 70 9 6 14 Using the API in LabVIEW 71 ...
Страница 36: ...35 Connected to XXX kbits s firmware version VXXXX and operation mode at the bottom of the main panel ...
Страница 43: ...42 ...
Страница 62: ...61 Sample Command CAN_Status 2508 Checks the status bits of device connected to channel with the handle 2508 ...
Страница 66: ...65 break Status CAN_Close Handle printf Test finish n return 0 ...