72
• CAN_Open.vi
Description
Opens a channel to the device.
Input
o ComPort: The COM port to establish a connection with.
o szBitrate: The speed at which the connection is to be made, with preset
values of 10, 20, 50, 100, 125, 250, 500, 800, 100
o acceptance_code: Used for filtering CAN messages. To be used with the
acceptance mask.
o acceptance_mask: Used for filtering CAN messages. To be used with the
acceptance code.
o Flags: Whether or not the timestamp function should be enabled.
o Mode: The mode at which the device should operate at, with choices being
Normal, Listen Only and Loopback
Output
o Return: Handle to the device. A positive value indicates success in opening
the channel, while -2 represents error when opening channel and -3
represents error in input parameters