D-22, Daqformaterror, Daqgetdevicecount – Measurement Computing WaveBook rev.3.0 User Manual
Page 218: Daqgetdevicelist
![background image](https://www.manualsdir.com/files/797847/content/doc218.png)
D-22 daqX API - Command Reference,
6-24-99
WaveBook 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)
daqError
Daq* Enhanced API error code
Parameters
msg
Pointer to a string to return the error text
Returns
DerrNoError
No error (see the API Error Codes table at the end of this chapter).
See Also
daqSetDefaultErrorHandler, daqSetErrorHandler, daqProcessError, daqGetLastError,
daqDefaultErrorHandler
Program References
None
Used With
All devices
Description
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 at end of this chapter.
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 (see the API Error Codes table at the end of this chapter).
See Also
daqGetDeviceList, daqGetDeviceProperties
Program References
None
Used With
All devices
Description
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)
deviceList
Pointer to memory location to which the device list is to be returned
Parameters
deviceCount
Number of devices returned in the device list
Returns
DerrNoError
No error (see the API Error Codes table at the end of this chapter).
See Also
daqGetDeviceCount, daqGetDeviceProperties, daqOpen,
Program References
None
Used With
All devices
Description
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.