imgClose

NI IMAQ Function

imgClose

Usage

rval imgClose(uInt32 void_id, uInt32 freeResources);

Purpose

Closes a session or interface and releases all associated resources.

Parameters

Name Type Direction
void_id uInt32 input
freeResources uInt32 input
rval Int32 output

Parameter Discussion

void_id: valid SESSION_ID or INTERFACE_ID

freeResources: if freeResources is non-zero, the function releases all buffers and buffer lists associated with the session or interface. If freeResources is 0, the function performs no buffer cleanup.

Return Value

This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imgShowError.