Daqiowritebit, Daqonline – Measurement Computing Personal Daq rev.6.0 User Manual
Page 156

B-24 API Commands
Appendix B,
887095
Personal Daq User’s Manual
daqIOWriteBit
DLL Function
daqIOWriteBit(DaqHandleT handle, daqIODeviceType devType, daqIODevicePort devPort,
DWORD whichDevice, daqIOExpansionPort whichExpPort, DWORD bitNum, BOOL bitValue);
C
daqIOWriteBit(DaqHandleT handle, DaqIODeviceType devType, DaqIODevicePort devPort,
DWORD whichDevice, DaqIOExpansionPort whichExpPort, DWORD bitNum, BOOL bitValue);
Visual BASIC
VBdaqIOWriteBit&(ByVal handle&, ByVal devType&, ByVal devPort&, ByVal whichDevice&,
ByVal whichExpPort&, ByVal bitNum&, ByVal bitValue&)
Delphi
daqIOWriteBit(handle:DaqHandleT; devType:daqIODeviceType; dvPort:daqIODevicePort;
whichDevice:DWORD; whichExpPort:daqIOExpansionPort; bitNum:DWORD;
bitValue:longbool)
handle
Handle of the device to perform an IO write to
devType
IO device type
devPort
IO device port selection
whichDevice
IO device selection
whichExpPort
IO device expansion port address
bitNum
Bit number to write
Parameters
bitValue
Bit value to write (TRUE – high, FALSE - low)
Returns
DerrNoError
No error
See Also
daqIOWrite, daqIORead, daqIOReadBit
Program References
DIGEX1.C, DAQEX.FRM (VB), DAQEX.PAS (Delphi)
Used With
All devices except Personal Daq/54
Description
daqIOWriteBit
allows you to write a specified bit on the selected device and port. The write operation will write the specified bit value to
the bit selected. The selected bit, specified by the bitNum parameter, corresponds to the channel on the port for the IO to be driven. The
bitValue
parameter should be set to TRUE to drive the channel to a high state or FALSE indicating a low state.
daqOnline
DLL Function
daqOnline(DaqHandleT handle, PBOOL online);
C
daqOnline(DaqHandleT handle, PBOOL online);
Visual BASIC
VBdaqOnline&(ByVal handle&, online&)
Delphi
daqOnline(handle: DaqHandleT; var online: longbool)
handle
Handle of the device to test for online
Parameters
online
Boolean indicating whether the device is currently online
Returns
DerrNoError
No error
See Also
daqOpen, daqClose
Program References
None
Used With
All devices
Description
daqOnline
allows you to determine if a device is online. The device handle must be a valid device handle which has been opened using
the daqOpen function. The online parameter indicates the current online state of the device (TRUE - device online; FALSE - device not
online).