beautypg.com

Daqiowritebit, Daqonline – Measurement Computing WaveBook rev.3.0 User Manual

Page 222

background image

D-26 daqX API - Command Reference,

6-24-99

WaveBook 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 I/O write to

devType

I/O device type

devPort

I/O device port selection

whichDevice

I/O device selection

whichExpPort

I/O device expansion port address

bitNum

Bit number to write

Parameters

bitValue

Bit value to write (TRUE - high, FALSE - low)

Returns

DerrNoError

No error (see the API Error Codes table at the end of this chapter).

See Also

daqIOWrite, daqIORead, daqIOReadBit

Program References

None

Used With

All devices

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 I/O 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 the API Error Codes table at the end of this chapter).

See Also

daqOpen, daqClose

Program References

ERREX.PAS (Delphi)

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).