I try to use GPIO of camera IDS UI-5240-CP-C-HQ and I don't find API or documentation of library ueye for PYTHON. I cann't use the function is_IO() because I dont know how to use the parameter pParam
from pyueye import ueye
import numpy as np
import cv2
import sys
hCam = ueye.HIDS(0)
gpioConfiguration = ueye.IO_GPIO_CONFIGURATION
gpioConfiguration.u32Gpio = ueye.IO_GPIO_1;
gpioConfiguration.u32Configuration = ueye.IS_GPIO_OUTPUT;
gpioConfiguration.u32State = ueye.int(0);
nRet = ueye.is_IO(hCam, ueye.IS_IO_CMD_GPIOS_SET_CONFIGURATION, gpioConfiguration, 8)
ueye.is_IO(HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam) is the same function in C++ from the manual: https://en.ids-imaging.com/manuals/ids-software-suite/ueye-manual/4.94.2/en/is_iogpio.html.
Thanks. [JQ]
i think the problem is that you are not actually constructing the gpio configuration object.
try this (with brackets at end):
Also, if you haven't done it. Before use of hCam in this case you must open the device using ueye.is_InitCamera.
Instead of specifying the size of the parameter use ueye.sizeof(gpioConfiguraiton).