EasyManua.ls Logo

Titan Electronics USB-2CAN-M - Core API Functions

Titan Electronics USB-2CAN-M
76 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
54
9.6.1 CAN_Open
CAN_Open(ComPort, szBitrate, acceptance_code, acceptance_mask, flags, Mode)
Function:
Opens a channel to the device.
Parameters:
ComPort
o Type: String
o The COM port to be opened.
o Format: “COMXXX”
o Example: “COM1, “COM57”, “COM118”
szBitrate
o Type: String
o The bitrate to operate at. Can be one of the standard bitrates or a user-
defined non-standard bitrate.
o Format:
10 = 10Kbps
20 = 20Kbps
50 = 50Kbps
100 = 100Kbps
125 = 125Kbps
250 = 250Kbps
500 = 500Kbps
800 = 800Kbps
1000 = 1000Kbps
XXXXXXXXX, non-standard bitrate
o Example: “50”, “1000”, “000000150”
acceptance_code
o Type: String
o Used in conjunction with the acceptance mask to filter CAN messages. Set
to “00000000” for NULL to allow all messages. Also referred to as
acceptance filter in other parts of the manual.
o Format: “XXXXXXXX”
o Example: “00000700”
acceptance_mask
o Type: String
o Used in conjunction with the acceptance code to filter CAN messages. Set
to “00000000” for NULL to allow all messages.
o Format: “XXXXXXXX”
o Example: “000001FF”

Table of Contents