
Documentation Number UD128A8D4602 Manual Chapter 5 41
B&B Electronics Mfg Co – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104
B&B Electronics Ltd – Westlink Comm. Pk. – Oranmore, Galway, Ireland – Ph 353-91-792444 – Fax 353-91-792445
I/O Point Group Configurations
'\**Digital I/O Point Group possible
configurations
Public Const DIGITAL_INPUT As Long = &H20000003
Public Const DIGITAL_OUTPUT As Long = &H20000004
Public Const DO_NORMAL As Long = &H80000004
'\**Analog Input Endpoint possible configurations
Public Const AD_12BIT_SE As Long = &H40000002
Public Const AD_12BIT_DIFF As Long = &H40000003
'\**Analog Output Endpoint possible configurations
Public Const DA_10BIT As Long = &HC0000005
‘ \ ** Flag for Invalid Data in Timed Samples
Public Const BDAQ_INVALID_DATA_VALUE As Long _
= &H80000000
5. Create an instance of BBDaqEnum and set it to your variable.
Set Connected = CreateObject("BDaq.BBDaqEnum")
‘ \ Connected is your variable - This should be done only once in
‘ \ the program, probably when the startup form loads. This
‘ \ enumerator must exist while any device is open.
Finding UD Devices
6. Next see if any UD devices are available
If Connected.Devices.Count > 0 then
‘ \ 7. Set your device variables equal to each connected device.
‘ \ By the order they were connected:
Set Device1 = Connected.Devices(1)
‘ \ Or By Name: - The named device must be attached
Set Device1 = Connected.Devices(“DAQ1”)
Komentarze do niniejszej Instrukcji