USBIO24 ELEXOL, USBIO24 Datasheet - Page 12
![DIGITAL I/O MODULE, USB TO 24 I/O](/photos/24/39/243949/114604206-40_sml.jpg)
USBIO24
Manufacturer Part Number
USBIO24
Description
DIGITAL I/O MODULE, USB TO 24 I/O
Manufacturer
ELEXOL
Type
USB I/O Moduler
Datasheet
1.USBIO24.pdf
(17 pages)
Specifications of USBIO24
Development Tool Type
Digital I/O Module
Tool / Board Application
Digital Signal Transfer
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Reading from the Ports
To Read the Input Pins is a bit more complicated as we must request the data from the module, wait
for it to arrive and then retrieve the data from the port. The following example reads the value from
port A.
MSComm1.Output = "a" ‘ Request data from port A
T = Timer ‘ Use the Timer to allow the program to continue if there is an error
If MSComm1.InBufferCount <> 1 Then
Dim TempBuffer As Variant
Dim ByteBuffer() As Byte
TempBuffer = MSComm1.Input
ByteBuffer = TempBuffer
PortAVal = ByteBuffer(0)
Elexol Pty Ltd
While Timer < T + 0.4 And MSComm1.InBufferCount < 1
Wend
Call MsgBox("Read Timeout", vbInformation, "USBIO24 VERSION 3 Error")
Exit Sub
End If
Version 1.1
Page 12
USB I/O 24 R Datasheet
http://www.elexol.com