Your browser does not allow scripts
Please click here to view a static table of contents without scripts
DS1M12_InitDevice
Return to Introduction  Previous page  Next page
This function initailizes the DS1M12.

DS_STATUS
DS1M12_InitDevice
(DS_HANDLE dsHandle)




Parameters

dsHandle
Handle of a DS1M12.




Return Value
Returns DS_SUCCESS if successful, otherwise the return value will be one of the following error codes:

   DS_INVALID_HANDLE
   DS_CALIB_DATA_READ_FAILURE
   DS_IO_ERROR
   
DS_INSUFFICIENT_RESOURCES



Remarks
The initialization routine consits of the following steps:
·reset the device  
·sets the device USB input buffer to 64K bytes, sets the device USB output buffer to 0 bytes  
·purges device USB input and output buffers  
·sets the special characters for the device, disable event and error characters  
·sets the device latency timer to 10ms  
·get the calibration ground and scalar offset values for each programmable gain (i.e. 0.1, 0.2, 0.5, 1, 2, 5, 10mV per bit  
·sets the device read timeout to infinite  
·sets the device write timeout to 5 seconds