« Close

Datasheets and User Guides

App Notes

Software & Driver

 

2.1.4 - CloseAll

Closing all devices will remove all device handles from the LJM library, free all previously open devices to be opened again, and free allocated system resources.

Syntax

LJM_ERROR_RETURN LJM_CloseAll()

Parameters

None

Returns

LJM errorcode or 0 for no error.

Remarks

LJM_CloseAll is useful on program exit. Use LJM_Close to close an individual device handle. 

Examples

[C/C++] Closing all open devices

int LJMError;
LJMError = LJM_CloseAll();