Omega OMB-DAQ-54 User Manual page 156

Usb data acquisition modules
Table of Contents

Advertisement

DLL Function
daqIOReadBit(DaqHandleT handle, daqIODeviceType devType, daqIODevicePort devPort,
DWORD whichDevice, daqIOExpansionPort whichExpPort, DWORD bitNum, PBOOL bitValue);
daqIOReadBit(DaqHandleT handle, DaqIODeviceType devType, DaqIODevicePort devPort,
C
DWORD whichDevice, DaqIOExpansionPort whichExpPort, DWORD bitNum, PBOOL bitValue);
Visual BASIC
VBdaqIOReadBit&(ByVal handle&, ByVal devType&, ByVal devPort&, ByVal whichDevice&,
ByVal whichExpPort&, ByVal bitNum&, bitValue&)
Delphi
daqIOReadBit(handle:DaqHandleT; devType:daqIODeviceType; dvPort:daqIODevicePort;
whichDevice:DWORD; whichExpPort:daqIOExpansionPort; bitNum:DWORD; var
bitValue:longbool)
Parameters
handle
devType
devPort
whichDevice
whichExpPort
bitNum
bitValue
Returns
DerrNoError
daqIORead, daqIOWrite, daqIOWriteBit
See Also
DIGEX1.C, DAQEX.FRM (VB), DAQEX.PAS (Delphi)
Program References
Used With
All devices except Personal Daq/54
Description
daqIOReadBit allows you to read a specified bit on the selected device and port. The read operation will return the current state of the
selected bit in the bitValue parameter. The selected bit (specified by the bitNum parameter) corresponds to the IO channel on the port
which is to be read. The bitValue will be TRUE indicating a high state or FALSE indicating a low state.
daqIOWrite(DaqHandleT handle, daqIODeviceType devType, daqIODevicePort devPort,
DLL Function
DWORD whichDevice, daqIOExpansionPort whichExpPort, DWORD value);
C
daqIOWrite(DaqHandleT handle, DaqIODeviceType devType, DaqIODevicePort devPort,
DWORD whichDevice, DaqIOExpansionPort whichExpPort, DWORD value);
Visual BASIC
VBdaqIOWrite&(ByVal handle&, ByVal devType&, ByVal devPort&, ByVal whichDevice&,
ByVal whichExpPort&, ByVal value&)
daqIOWrite(handle:DaqHandleT; devType:daqIODeviceType; dvPort:daqIODevicePort;
Delphi
whichDevice:DWORD; whichExpPort:daqIOExpansionPort; value:DWORD);
handle
Parameters
devType
devPort
whichDevice
whichExpPort
value
Returns
DerrNoError
See Also
daqIORead, daqIOWriteBit, daqIOReadBit
DIGEX1.C, DAQEX.FRM (VB), DAQEX.PAS (Delphi)
Program References
All devices except Personal Daq/54
Used With
Description
daqIOWrite allows you to write to the specified port on the selected device. The write operation will write the settings indicated in the
value parameter to the selected port. The value written will depend on the width of the selected port. Normally, for byte-wide ports, only
the low-order byte of the value parameter will be written. The IO channels for the port correspond to each bit within the value written. If the
channel is to be driven to a high state, then the corresponding bit should be set. Likewise, if the channel is to be driven to a low state, then
the corresponding bit should not be set.
Personal Daq User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
daqIOReadBit
Handle to the device from which to perform the IO
IO Device type
IO device port selection
IO device selection
IO expansion port address
IO port bit location to read
IO port bit value (TRUE - high, FALSE - low)
No error
daqIOWrite
Handle of the device to perform an IO write operation
IO device type
IO device port selection
IO device selection
IO device expansion port address
Value to write
No error
Appendix B,
887095
API Commands
B-23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-daq-55Omb-daq-56

Table of Contents