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.