Thank you for providing this library and the accompanying GUI (camera-control)
I have recently bought PhotonFocus (MV1-D1034E-60-CL) and the frame grabber from basler microEnable 5 marathon ACL.
The ideal case could be using the pylablib-camera-control, but I only get the following in the terminal.
Searching for PhotonFocus cameras (might take several minutes)
Error loading or running the PFCam library: required software (PhotonFocus PFRemote) must be missing
I have PFRemote 2.5 with Basler FramegrabberSDK (5.11) already installed. I can run PFRemote and it can detect the camera, and I can change the camera parameters. I can, also, open MicroDisplayX (Basler), load the applets for DualBaseAreaGrey and start the acquisition.
I have found on the documentation that the library was tested against the SDK version 5.7, but for some reason, with that version PFRemote was not able to detect the camera. In this case, pylablib behaved the same (could not detect the camera)
Any help I can get to get this running will be highly appreciated. I also attach some screenshots for your reference.
Finally, I tried to use the pylablib directly and see if I can load the camera by manually adjusting the path to the dlls for sisofgrab and pfcam.
I have notice that the environment variable has been change in 5.11. In 5.7 after installation, I get SISOAPPLETIMAGESOURCE, SISODIR5, SISODIR5_64 but in 5.11, I get a new variable, BASLER_FG_SDK_DIR. In both case the variables point to the necessary binaries.
After I installed pylablib in a new virtual environment (I used conda not pip) I ran a small script as below:
import pylablib as pll
pll.par["devices/dlls/pfcam"] = r"C:\Program Files\Photonfocus\PFRemote\bin"
pll.par["devices/dlls/sisofgrab"] = r"C:\Program Files\Basler\FramegrabberSDK\bin"
from pylablib.devices import PhotonFocus
cam = PhotonFocus.PhotonFocusSiSoCamera()
In this case I get the following error:
from . import PhotonFocus
File "c:\Users\Ian Liau\Desktop\pylablib\.conda\Lib\site-packages\pylablib\devices\PhotonFocus\PhotonFocus.py", line 5, in <module>
from ..SiliconSoftware.fgrab import SiliconSoftwareFrameGrabber
File "c:\Users\Ian Liau\Desktop\pylablib\.conda\Lib\site-packages\pylablib\devices\SiliconSoftware\__init__.py", line 1, in <module>
from . import fgrab
File "c:\Users\Ian Liau\Desktop\pylablib\.conda\Lib\site-packages\pylablib\devices\SiliconSoftware\fgrab.py", line 12, in <module>
with try_import_cext():
~~~~~~~~~~~~~~~^^
File "c:\Users\Ian Liau\Desktop\pylablib\.conda\Lib\contextlib.py", line 162, in __exit__
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "c:\Users\Ian Liau\Desktop\pylablib\.conda\Lib\site-packages\pylablib\core\utils\cext_tools.py", line 12, in try_import_cext
raise ImportError(pyd_load_error_msg.format(err))
ImportError: could not load C extensions: No module named 'pylablib.devices.SiliconSoftware.utils'
Install the package from the appropriate binary distribution, or install an appropriate C compiler if you use the source distribution
At this point, I don't what else I can try to troubleshoot further.
Thanks in advance for your help and making this program freely available.

Thank you for providing this library and the accompanying GUI (camera-control)
I have recently bought PhotonFocus (MV1-D1034E-60-CL) and the frame grabber from basler microEnable 5 marathon ACL.
The ideal case could be using the pylablib-camera-control, but I only get the following in the terminal.
I have PFRemote 2.5 with Basler FramegrabberSDK (5.11) already installed. I can run PFRemote and it can detect the camera, and I can change the camera parameters. I can, also, open MicroDisplayX (Basler), load the applets for DualBaseAreaGrey and start the acquisition.
I have found on the documentation that the library was tested against the SDK version 5.7, but for some reason, with that version PFRemote was not able to detect the camera. In this case, pylablib behaved the same (could not detect the camera)
Any help I can get to get this running will be highly appreciated. I also attach some screenshots for your reference.
Finally, I tried to use the pylablib directly and see if I can load the camera by manually adjusting the path to the dlls for sisofgrab and pfcam.
I have notice that the environment variable has been change in 5.11. In 5.7 after installation, I get SISOAPPLETIMAGESOURCE, SISODIR5, SISODIR5_64 but in 5.11, I get a new variable, BASLER_FG_SDK_DIR. In both case the variables point to the necessary binaries.
After I installed pylablib in a new virtual environment (I used conda not pip) I ran a small script as below:
In this case I get the following error:
At this point, I don't what else I can try to troubleshoot further.
Thanks in advance for your help and making this program freely available.