beautypg.com

Daqformaterror, Daqgetdevicecount, Daqgetdevicelist – Measurement Computing TempBook rev.3.0 User Manual

Page 150

background image

11-26 daqCommand Reference (Enhanced API)

TempBook User’s Manual

daqFormatError

DLL Function

daqCalSelectInputSignal(DaqHandleT handle, DaqCalInputT input);

C

daqCalSelectInputSignal(DaqHandleT handle, DaqCalInputT input);

Visual BASIC

VBdaqCalSelectInputSignal(ByVal handle&, ByVal input as DaqCalInputT )

Delphi

daqCalSelectInputSignal( handle: DaqHandleT; input: DaqCalInputT)

Parameters

daqError

Daq* Enhanced API error code

msg

Pointer to a string to return the error text

Returns

DerrNoError

- No error (also, refer to API Error Codes on page 11-39)

See Also

daqSetDefaultErrorHandler, daqSetErrorHandler, daqProcessError, daqGetLastError,

daqDefaultErrorHandler

Program References

None

Used With

All devices

daqFormatError

returns the text-string equivalent for the specified error condition. The error

condition is specified by the daqError parameter. The error text will be returned in the character
string pointed to by the msg parameter. The character string space must have been previously
allocated by the application before calling this function. The allocated character string should be, at
minimum, 64 bytes in length. For more information on specific error codes refer to the API Error
Codes
on page 11-39.

daqGetDeviceCount

DLL Function

daqGetDeviceCount(PDWORD deviceCount);

C

daqGetDeviceCount(PDWORD deviceCount);

Visual BASIC

VBdaqGetDevice&(deviceCount&)

Delphi

daqGetDeviceCount( var deviceCount:DWORD )

Parameters

deviceCount

Pointer to which the device count is to be returned

Returns

DerrNoError

- No error (also, refer to API Error Codes on page 11-39)

See Also

daqGetDeviceList, daqGetDeviceProperties

Program References

None

Used With

All devices

daqGetDeviceCount

returns the number of currently configured devices. This function will

return the number of devices currently configured in the system. The devices do not need to be
opened for this function to operate properly. If the number returned does not seem appropriate, the
device configuration list should be checked via the Daq* Configuration applet located in the Control
Panel. Refer to the configuration section in your device’s user manual for more details.

daqGetDeviceList

DLL Function

daqGetDeviceList(DaqDeviceListT *deviceList, PDWORD deviceCount);

C

daqGetDeviceList(DaqDeviceListT *deviceList, PDWORD deviceCount);

Visual BASIC

VBdaqGetDeviceList(deviceList as DaqDeviceListT, deviceCount&)

Delphi

daqGetDeviceList( var deviceList: DaqDeviceListT; var deviceCount: DWORD)

Parameters

deviceList

Pointer to memory location to which the device list is to be returned

deviceCount

Number of devices returned in the device list

Returns

DerrNoError

- No error (also, refer to API Error Codes on page 11-39)

See Also

daqGetDeviceCount, daqGetDeviceProperties, daqOpen,

Program References

None

Used With

All devices

daqGetDeviceList

returns a list of currently configured devices. This function will return the

device names in the deviceList parameter for the number of devices returned by the
deviceCount

parameter. Each deviceList entry contains a device name consisting of up to

64 characters. The device name can then be used with the daqOpen function to open the specific
device.

If the number returned does not seem appropriate, the device configuration list should be checked
via the Daq* Configuration applet located in the Control Panel. Refer to the configuration section in
your device’s user manual for more details.