User manual
PCI-1680U/1682U User Manual 72
TextBox2.Text = "Accept code = " & Hex(status.acceptance-
code)
TextBox3.Text = "Mask code = " & Hex(status.acceptance-
mask)
TextBox4.Text = "Self recevie = " & status.selfreception
TextBox5.Text = "Read TimeOut = " & status.readtimeout
TextBox6.Text = "Write TimeOut: = " & status.writetimeout
result = CloseHandle(hDevice) 'Close the CAN port
If Not result Then
MsgBox("Failed to close the CAN port!")
End If
End Sub
4.7.4.4 Test application
Run the application, the following result will be displayed.