![]() |
|
The di_close
function stops scanning, restores the device to its initial state, frees all opened buffers, and closes the device for communications.
Note: If di_close
is called immediately after di_anout
, the device will close before di_anout
is completed.
int di_close(void);
none
DI_NO_ERR | No error |
DI_OPENED_ERR | Device not opened |
DI_COMM_ERR | Communication error |
none
#include "200sdk.h" |
|
int errcode; |
|
char errstr[255]; |
|
main() |
|
{ |
|
if(errcode = di_open()){ |
/* open the device for comm */ |
di_strerr(errcode,errstr); |
|
printf("%s",errstr); |
|
} |
|
else |
|
printf("Device installed successfully.....\n"); |
|
if(errcode = di_close()){ |
/* close the device */ |
di_strerr(errcode, errstr); |
|
printf("%s",errstr); |
|
} |
|
else |
|
printf("Closed successfully.....\n"); |
|
} |
Copyright © DATAQ Instruments, Inc.