37
4.3 LCIC-WIM ActiveX
Unless otherwise specified, a function returns a
Boolean: True for success, or False for failure.
4.3.1 Start/Stop Communication
Is_LCIC_WIM_Port(
CommPortNumber
)
Returns:
0 if the port does not respond.
1 if the port responds but not as an LCIC-WIM.
2 if the port responds as an LCIC-WIM.
CommPortNumber
(Integer): Number of communication port.
OpenLCIC_WIM(
CommPortNumber, Baud_Rate
)
Opens the specified port.
CommPortNumber
(Integer): Number of communication port.
Baud_Rate
(Integer): Required Baud Rate (110, 300, 1200,
2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600,
115200, 230400, 460800 or 921600).
(Refer also to sections 3.3.1.2 & D.2.)
Note: Using USB, all these values of
Baud_Rate
are
relevant (even though usually 921600 is used). However,
upon using serial communication, board’s possible b/r
values are limited to the range 19200-115200; please refer
to section 3.3.1.2.
CloseLCIC_WIM()
Closes the open port.
Get_First_Free_LCIC_WIM_PortNumber()
Returns the number of the first port (from COM1 to COM16)
that responds as an LCIC-WIM board.
If none is detected, 0 is returned.