📄 readpagefrm.frm
字号:
Caption = "循环读"
Height = 375
Left = -69600
TabIndex = 18
Top = 4800
Width = 1095
End
Begin VB.ComboBox cbTagAddr
Height = 300
Left = -74160
TabIndex = 17
Text = "Combo1"
Top = 5010
Width = 975
End
Begin VB.ComboBox cbTimer
Height = 300
ItemData = "ReadPageFrm.frx":9C99
Left = -71040
List = "ReadPageFrm.frx":9CAC
TabIndex = 16
Text = "Combo1"
Top = 4920
Width = 975
End
Begin VB.CommandButton BtnCycleEnd
Caption = "结束"
Height = 375
Left = -69600
TabIndex = 15
Top = 5280
Width = 1095
End
Begin MSComctlLib.ListView ListView1
Height = 3855
Left = -74760
TabIndex = 14
Top = 600
Width = 6495
_ExtentX = 11456
_ExtentY = 6800
View = 3
LabelWrap = -1 'True
HideSelection = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "黑体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 3
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Key = "id"
Text = "序号"
Object.Width = 1764
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Key = "tag"
Text = "标签数据"
Object.Width = 7761
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "天线"
Object.Width = 1940
EndProperty
End
Begin VB.CommandButton btnReadTag
Caption = "单标签读"
Height = 375
Left = -73080
TabIndex = 1
Top = 4920
Width = 1095
End
Begin VB.Frame Frame1
Caption = "多标签读"
Height = 1215
Left = -71760
TabIndex = 19
Top = 4560
Width = 3495
Begin VB.Label Label7
Caption = "ms"
Height = 255
Left = 1800
TabIndex = 21
Top = 480
Width = 255
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "间隔"
Height = 180
Left = 240
TabIndex = 20
Top = 480
Width = 360
End
End
Begin VB.Frame Frame5
Caption = "天线"
Height = 1215
Left = -73920
TabIndex = 36
Top = 3120
Width = 4815
Begin VB.CommandButton BtnAntennaSet
Caption = "设置"
Height = 375
Left = 2160
TabIndex = 45
Top = 480
Width = 855
End
Begin VB.CommandButton btnAntennaQuery
Caption = "查询"
Height = 375
Left = 3240
TabIndex = 44
Top = 480
Width = 855
End
Begin VB.ComboBox cbAntenna
Height = 300
Left = 720
TabIndex = 43
Text = "Combo1"
Top = 480
Width = 975
End
Begin VB.ComboBox Combo2
Height = 300
Left = 600
TabIndex = 42
Text = "Combo1"
Top = 3165
Width = 975
End
Begin VB.CommandButton Command4
Caption = "查询"
Height = 375
Left = 2880
TabIndex = 41
Top = 3045
Width = 855
End
Begin VB.CommandButton Command3
Caption = "设置"
Height = 375
Left = 1920
TabIndex = 40
Top = 3045
Width = 855
End
End
Begin VB.Frame Frame6
Caption = "单标签读"
Height = 1215
Left = -74760
TabIndex = 47
Top = 4560
Width = 3015
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "地址"
Height = 255
Left = 120
TabIndex = 48
Top = 480
Width = 375
End
End
Begin VB.Label Label14
AutoSize = -1 'True
Caption = "尝试次数:"
Height = 180
Left = 1800
TabIndex = 49
Top = 3180
Width = 900
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "深圳市先施科技有限公司"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 435
Left = -73800
TabIndex = 34
Top = 840
Width = 4950
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = $"ReadPageFrm.frx":9CCA
ForeColor = &H00FF0000&
Height = 225
Left = -73920
TabIndex = 33
Top = 4200
Width = 4320
End
Begin VB.Label Label12
AutoSize = -1 'True
Caption = "Tel: 86-0755-88833238 Fax: 86-0755-82924433"
ForeColor = &H00FF0000&
Height = 180
Left = -73920
TabIndex = 32
Top = 4680
Width = 4410
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "网址:http://www.sense-hk.com Email: info@sense-hk.com "
ForeColor = &H00FF0000&
Height = 180
Left = -73920
TabIndex = 31
Top = 5160
Width = 5490
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "数 据:"
Height = 180
Left = 1800
TabIndex = 23
Top = 2685
Width = 900
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "地 址:"
Height = 180
Left = 1800
TabIndex = 22
Top = 2220
Width = 900
End
End
Begin MSComctlLib.ListView ListView2
Height = 1815
Left = 0
TabIndex = 46
Top = 5880
Width = 9375
_ExtentX = 16536
_ExtentY = 3201
View = 3
LabelWrap = -1 'True
HideSelection = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 0
NumItems = 2
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "时间"
Object.Width = 3528
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "信息"
Object.Width = 14111
EndProperty
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "深圳先施科技有限公司"
ForeColor = &H00FF0000&
Height = 180
Left = 240
TabIndex = 12
Top = 1680
Width = 1800
End
End
Attribute VB_Name = "mainFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim bcycle As Boolean
Private Sub btnAntennaQuery_Click()
Dim AntID As Byte
status = Sense18K_SysRFCurrentAntennaQuery(g_hCom, g_RAddr, AntID)
If status = ERR_NONE Then
cbAntenna.ListIndex = AntID
ShowInfo ("查询当前工作成功! 为天线" & (AntID + 1))
Else
ShowInfo ("查询当前工作天线失败! 0x" & status)
End If
End Sub
Private Sub BtnAntennaSet_Click()
Dim AntID As Byte
AntID = cbAntenna.ListIndex
status = Sense18K_SysRFCurrentAntennaSet(g_hCom, g_RAddr, AntID)
If status = ERR_NONE Then
ShowInfo ("选择天线" & (AntID + 1) & "成功!")
Else
ShowInfo ("选择天线失败! 0x" & status)
End If
End Sub
Private Sub btnConnect_Click()
Dim sComport As String
sComport = UCase(Trim(cbComport.Text))
If g_hCom <> 0 Then
g_Status = MsgBox("串口已经被打开!", vbOKOnly, "提示")
StatusBar1.Panels.Item(8).Text = "串口已经被打开!"
ShowInfo ("串口已经被打开!")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -