EasyManua.ls Logo

Titan Electronics USB-2CAN-M - Page 56

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...
55
flags
o Type: IntPtr
o Determines whether or not the timestamp function should be enabled.
o Format:
1 = Timestamp will be enabled
0 = Timestamp will be disabled
o Example: 1
Mode
o Type: Integer
o Determines the mode the USB CAN should operate at.
o Format:
0 = Normal, the device will operate under normal circumstances
1 = Listen only, the device will passively receive CAN messages
2 = Loopback, the device will also receive messages it transmits
o Example: 2
Return value:
o Type: Integer
o Handle to the device.
o Result:
> 0, CAN_Open is successful
-1, error communicating with COM port
-2, error in opening channel, COM port may be already in use
-3, error in parameter settings
o Example: 2508
Sample Command:
CAN_Open(“COM3”, “50”, “00000000”, “00000000”, 1, 2)
Opens a channel to COM3 at 50kbps, with all messages allowed, timestamp enabled
and operating in loopback mode.

Table of Contents