User Manual Part 2

IS-900 User Guide Page 146 of 159
16.4. API
ISD_TRACKER_HANDLE
ISD_OpenTracker( HWND hParent,
DWORD commPort,
Bool infoScreen,
Bool verbose )
hParent Handle to the parent window. This parameter is optional and should
only be used if information screen or tracker configuration tools are to
be used when available in the future releases. All included sample
programs pass NULL.
commPort If this parameter is a number other than 0, program will try to locate
an InterSense tracker on the specified RS232 port. Otherwise it looks
for USB device, then for serial port device on all ports at all baud
rates. Most applications should pass 0 for maximum flexibility. If you
have more than one InterSense device and would like to have a
specific tracker, connected to a known port, initialized first, then enter
the port number instead of 0.
infoScreen This feature has not been implemented. Its purpose is to display an
information window to show the tracker detection progress and
results. Currently DLL writes only to Windows console. Most
applications should pass FALSE.
verbose Pass TRUE if you would like a more detailed report of the DLL activity.
Messages are printed to Windows console.
Bool
ISD_CloseTracker( ISD_TRACKER_HANDLE handle )
This function call de-initializes the tracker, closes communications port and frees
the resources associated with this tracker. If 0 is passed, all currently open trackers
are closed. When last tracker is closed, program frees the DLL. Returns FALSE if
failed for any reason.
handle Handle to the tracking device. This is the handle returned by
ISD_OpenTracker.