Custom Programming Using a Serial Connection
Appendix
F
2) Image, and 3) Report. The colored labels below the buttons show total cycles
and passed and failed counters as obtained by querying the DeviceInfo.
When first started, only the DeviceInfo is hooked, and, therefore, the colored
counters will be updated. By selecting various choices in the "Options" menu,
you can hook Images or Results, as well as turn off the DeviceInfo hook. You can
also select different image compression amounts. A progress bar appears at the
bottom of the window during upload of Reports or Images.
Code Walkthrough
Project References:
•
HawkEye Reader Object Type Library
Project Components:
•
Microsoft Windows Common Controls 6.0
•
HawkEye Reader ActiveX Library
•
ReadRunner ActiveX Library
The code consists of a single form called frmMain. On this form, the following
items are placed:
•
The COM "buttons" are a control array of checkboxes whose Style property
is set to Graphical so that they appear as buttons. This is an easy way of
making buttons that stay depressed when you press them. In the sample, they
are named btnConnect(index).
•
Three labels called m_countTotal, m_countPassed, and m_countFailed.
These will be updated using the Device Info.
•
A TabStrip control named m_tabstrip, with the Placement property set to
tabPlacementBottom.
•
On top of the TabStrip are placed a Terminal control (m_terminal), an
MiImageView control (m_image) and a ReportGrid (m_report)
•
A timer control called SerialHook
•
A progress bar called m_progress
F-2
HawkEye™ 1500 Series User Manual
v2.4.1, Nov 2008
Need help?
Do you have a question about the HawkEye HE1510-M and is the answer not in the manual?