9
LT360 Precision Turntable
DLL Programming Manual
The procedure for opening a link is very easy. First connect an LT360 to
either a serial COM port or USB port on the computer. Then call one of
two functions to open the link:
LONGINT LT360LIB_OpenLinkUSB(void);
LONGINT LT360LIB_OpenLinkCOM(LONGINT ComNum, LONGINT BaudRate);
■ LT360LIB_OpenLinkUSB
This call is used if the turntable is connected to the USB bus. There are no
parameters. Since there may be multiple LT360 units attached to the USB
bus, this function can be called more than once.
The function returns a Handle to each unit found, which is simply a numeric
index. The calling program should maintain and store these handles. If no
more LT360 units are found, then the handle returned is 0.
Note: The USB driver for the LT360 must be installed in the Win32 system.
■ LT360LIB_OpenLinkCOM
This call is used if the turntable is connected to a serial COM port. There
are two parameters: the COM port number (ie. 1,2,3,4...) and the baud rate.
The default baud rate shipped with the LT360 is 9600. You must specify
the COM port number in which the LT360 is connected. The function may
be called multiple times with different com port numbers for LT360 units
attached to the different com ports.
The function returns a Handle to the unit found, which is simply a numeric
index. The calling program should maintain and store these handles. If no
LT360 unit is found, then the handle is 0.
Note: The 9 pin serial cable should be straight-through, not null modem.
■ LT360LIB_CloseLink
To close a link to an LT360, call this function with the handle of the unit.
The return value is True if successful, and false if an error.
LONGBOOL LT360LIB_CloseLink(LONGINT Handle);
1.3 Opening and Closing a Link