Section 5. Example Applications
43
If Err.Number <> 0 Then
' Process error using Err.Description
' contains error description for the demo,
' we'll just display it
txtInfo.Text = Err.Description
' Reset the error handling
On Error GoTo 0
' exit this sub
Exit Sub
End If
' reset the error handling
On Error GoTo 0
' send the command to get the port number
Put #1, , "/get port_name" + Chr$(10)
' get the response from driver which should contain the
' com port number
Get #1, , buf$
' Expected response:
' (character position in the response string)
'
11111111112222222222
'
12345678901234567890123456789
' e.g. "/get
port_name
COM14"
'+=========================================+
'|| IMPORTANT: CLOSE THE DEVICE DRIVER
||
'||
BEFORE TRYING TO REOPEN IT ||
'+=========================================+
Close #1
' Make sure we got back a valid response.
‘ This checks that we have received a “/get” response and that
‘ “port_name” and “COM” are present and in the right locations.
If Left(buf, 4) = "/get" _
And InStr(buf, "port_name") = 13 _
And InStr(buf, "COM") = 25 Then
' Just for information, display the com port number
txtInfo.Text = "Opening Serial IO on port " & Mid(buf, 25, 5)
' Get the port number value from character position 28
' (and 29 if two digits long) of the response
PortNumber = Val(Mid(buf, 28, 2))
'+------------------------------------+
'| open the driver as a serial device |
'+------------------------------------+
' make sure the on_comm function will be
' triggered by the device driver by setting
' the receive threshold to 1 (one)
MSComm1.RThreshold = 1
Содержание Entuitive 1229L
Страница 1: ......
Страница 11: ...1 6 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Страница 13: ...2 8 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e Product Overview Main Unit Rear View...
Страница 14: ...2 9 Side View Base Bottom View...
Страница 22: ...2 17 Connect one end of the MSR cable to the computer and the other end to the monitor MSR cable...
Страница 43: ...4 38 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Страница 54: ...C 49...
Страница 55: ...C 50 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Страница 59: ...54 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Страница 70: ...vii...
Страница 71: ...Figure 1 1 USB Swipe Reader viii...
Страница 75: ...USB HID Keyboard Emulation Swipe Reader 4...
Страница 79: ...USB HID Keyboard Emulation Swipe Reader 8...
Страница 81: ...USB HID Keyboard Emulation Swipe Reader 10...
Страница 103: ...vi Figure 1 1 Port Powered Swipe Reader...
Страница 107: ...Port Powered Swipe Reader 4 Figure 1 3 Dimensions...
Страница 111: ...Port Powered Swipe Reader 8...
Страница 115: ...Port Powered Swipe Reader 12...
Страница 123: ...viii Figure 1 1 MagTek Devices and Device Drivers for Windows MTD MagTek Device Drivers for Windows...
Страница 151: ...MagTek Device Drivers for Windows 28...
Страница 161: ...MagTek Device Drivers for Windows 38...
Страница 175: ...MagTek Device Drivers for Windows 52...
Страница 197: ...MagTek Device Drivers for Windows 74...
Страница 199: ...MagTek Device Drivers for Windows 76...
Страница 201: ...MagTek Device Drivers for Windows 78...
Страница 220: ...i Customer Displays 2 by 20 character display USER MANUAL Models LD9000 Series...
Страница 249: ......