© 2016 Thorlabs Scientific Imaging
4 Programming (SDK)
171
IS_DEVICE_FEATURE_CMD_GET_MEMORY_MODE_E
NABLE_DEFAULT
Returns the default setting (Example 4).
IS_DEVICE_FEATURE_CMD_GET_MEMORY_MODE_E
NABLE_SUPPORTED
Returns if the internal image memory is supported
(Example 1).
Pointer to a function parameter, whose function
depends on nCommand.
Size (in bytes) of the memory area to which
pParam refers.
Status flags from DEVICE_FEATURE_MODE_CAPS
IS_DEVICE_FEATURE_CAP_MEMORY_MODE
Internal image memory is supported.
Related functions
Querying the temperature state
is_EnableEvent()
is_EnableMessage()
Example 1
// Is using the image memory supported?
// Via camera handle
int nMemoryMode;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_MEMORY_MODE_ENABLE_SUPPORTED, &nMemoryMode, sizeof(nMemoryMode));
if (nMemoryMode == IS_MEMORY_MODE_ON)
{
// is supported...
}
// Is using the image memory supported?
// Via device ID
int nMemoryMode;
nRet = is_DeviceFeature(nDevID | IS_USE_DEVICE_ID, IS_DEVICE_FEATURE_CMD_GET_MEMORY_MODE_ENABLE_SUPPORTED, &nMemoryMode, sizeof(nMemoryMode));
if (nMemoryMode == IS_MEMORY_MODE_ON)
{
// is supported...
}
Example 2
// Enable memory mode, device ID must be used for this purpose
UINT nEnable = IS_MEMORY_MODE_ON;
INT nRet = is_DeviceFeature(nDevID | IS_USE_DEVICE_ID, IS_DEVICE_FEATURE_CMD_SET_MEMORY_MODE_ENABLE, (void*)&nEnable, sizeof(nEnable));
Example 3
// Query the status of the image memory via camera handle
int nMemoryMode;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_MEMORY_MODE_ENABLE, &nMemoryMode, sizeof(nMemoryMode));
if (nMemoryMode == IS_MEMORY_MODE_ON)
{
…
}
// Query the status of the image memory via device ID
int nMemoryMode;
nRet = is_DeviceFeature(nDevID | IS_USE_DEVICE_ID, IS_DEVICE_FEATURE_CMD_GET_MEMORY_MODE_ENABLE, &nMemoryMode, sizeof(nMemoryMode));
if (nMemoryMode == IS_MEMORY_MODE_ON)
{
…
}