© 2016 Thorlabs Scientific Imaging
4 Programming (SDK)
313
One of the submitted parameters is outside the
valid range or is not supported for this sensor or
is not available in this mode.
The camera model used here does not support
this function or setting.
Function executed successfully
Related functions
is_GetFramesPerSecond()
is_GetFrameTimeRange()
is_Exposure()
is_SetOptimalCameraTiming()
is_SetFrameRate()
is_SetAutoParameter()
is_SetBinning()
is_SetSubSampling()
is_AOI()
Example 1
UINT nNumberOfSupportedPixelClocks = 0;
INT nRet = is_PixelClock(hCam, IS_PIXELCLOCK_CMD_GET_NUMBER,
(void*)&nNumberOfSupportedPixelClocks,
sizeof(nNumberOfSupportedPixelClocks));
if ((nRet == IS_SUCCESS) && (m_nNumberOfSupportedPixelClocks > 0))
{
// No camera has more than 150 different pixel clocks.
// Of course, the list can be allocated dynamically
UINT nPixelClockList[150];
ZeroMemory(&nPixelClockList, sizeof(nPixelClockList));
nRet = is_PixelClock(hCam, IS_PIXELCLOCK_CMD_GET_LIST,
(void*)nPixelClockList,
nNumberOfSupportedPixelClocks * sizeof(UINT));
}
Example 2
UINT nRange[3];
ZeroMemory(nRange, sizeof(nRange));
// Get pixel clock range
INT nRet = is_PixelClock(hCam, IS_PIXELCLOCK_CMD_GET_RANGE, (void*)nRange, sizeof(nRange));
if (nRet == IS_SUCCESS)
{
UINT nMin = nRange[0];
UINT nMax = nRange[1];
UINT nInc = nRange[2];
}
Example 3
UINT nPixelClock;
// Get current pixel clock
nRet = is_PixelClock(hCam, IS_PIXELCLOCK_CMD_GET, (void*)&nPixelClock, sizeof(nPixelClock));