Section 5. Example Applications
127
MSComm1.Output = "/read card" & Chr$(10)
' If the device has check reading capability, then the
' following command would be used to read only the check
' data
' MSComm1.Output = "/read check" & Chr$(10)
' If the device can read only one media type (e.g. a
' card reader) then the read command "/read" command can
' be is issued by itself.
' MSComm1.Output = "/read" & Chr$(10)
' If the device is capable of reading more than one
' media type and the application is capable of accepting
' data from any of the media, then the read command can
' be issued by itself or with the "any" parameter.
(They
' are equivalent.)
' MSComm1.Output = "/read" & Chr$(10)
'
or
' MSComm1.Output = "/read any" & Chr$(10)
' Ask the user to do the read
txtInfo.Text = "Please swipe a card or click on Exit to quit"
' Wait until the card is read.
' In real life, the program can do other things while
' waiting for the data
Do
DoEvents
Loop Until Len(RcvdData$) > 0
' Display the received data
txtInfo.Text = RcvdData$
' Reenable the read button
btnRead.Enabled = True
End Sub
'+----------------+
'| btnStart_Click |
'+----------------+---------------------------------------------------+
'| This function does the following:
|
'|
1) Set up the buttons and display
|
'|
2) Open the device under its "friendly name" as a file
|
'|
3) Retrieve its "unfriendly name" (e.g. "COM12")
|
'|
4) Extract the com port number from the unfriendly name
|
'|
5) Close the device (IMPORTANT: this must be done or you will not |
'|
be able to open the device again, in any mode, without
|
'|
resetting the computer)
|
'|
6) Open the device under its "unfriendly name" as a serial device |
'+--------------------------------------------------------------------+
Private Sub btnStart_Click()
' will hold the fully qualified name of the driver
Dim NewName$
' will be used to get data from the device driver
Dim buf$
Содержание Entuitive 1525L Series
Страница 8: ...2 5 Side View Base Bottom View User Controls ...
Страница 27: ...2 24 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 ...
Страница 31: ...3 28 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 ...
Страница 44: ...C 41 See Detail A Detail A ...
Страница 45: ...C 42 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 ...
Страница 48: ...45 N10051 ...
Страница 49: ...46 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: ...56 Figure 1 1 USB Swipe Reader ...
Страница 63: ...USB Swipe Reader 60 ...
Страница 67: ...USB Swipe Reader 64 ...
Страница 69: ...USB Swipe Reader 66 ...
Страница 89: ...86 Figure 1 1 MagTek Devices and Device Drivers for Windows MTD MagTek Device Drivers for Windows ...
Страница 117: ...MagTek Device Drivers for Windows 114 ...
Страница 127: ...MagTek Device Drivers for Windows 124 ...
Страница 141: ...MagTek Device Drivers for Windows 138 ...
Страница 163: ...MagTek Device Drivers for Windows 160 ...
Страница 165: ...MagTek Device Drivers for Windows 162 ...
Страница 167: ...MagTek Device Drivers for Windows 164 ...