Owner manual

WaveForms™ SDK Reference Manual
Page 10 of 85
4 Device Control
FDwfDeviceOpen(int idxDevice, HDWF *phdwf)
Parameters:
- idxDevice Zero based index of the enumerated device.
- phdwf Pointer to HDWF variable to receive opened interface handle by reference.
The function above opens a device identified by the enumeration index and retrieves a handle. To automatically
enumerate all connected devices and open the first discovered device, use index -1.
FDwfDeviceConfigOpen(int idxDevice, int idxCfg, HDWF *phdwf)
Parameters:
- idxDevice Index of the enumerated device.
- idxCfg Index of the device configuration.
- phdwf Pointer to HDWF variable to receive opened interface handle by reference.
The function above opens a device identified by the enumeration index with the selected configuration and
retrieves a handle.
FDwfDeviceClose(HDWF hdwf)
Parameters:
- hdwf Interface handle to be closed.
The function above is used to close an interface handle when access to the device is no longer needed. Once the
function above has returned, the specified interface handle can no longer be used to access the device.
FDwfDeviceCloseAll()
Parameters: None.
The function above is used to close all opened devices by the calling process. It does not close all devices across all
processes.