Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SiliconSoftware compatibility broken with MicroEnable V #36

Open
matpelb opened this issue Mar 20, 2023 · 4 comments
Open

SiliconSoftware compatibility broken with MicroEnable V #36

matpelb opened this issue Mar 20, 2023 · 4 comments

Comments

@matpelb
Copy link

matpelb commented Mar 20, 2023

Some attribute names have changed in the SDK from MicroEnable IV to MicroEnable V, which leads to crashes when instantiating a Camera object relying on MicroEnable V:

  • CAMERA_LINK_CAMTYP is named CAMERA_LINK_CAMTYPE in MicroEnable V SDK
  • FG_GLOBAL_ACCESS is not defined for MicroEnable V applets, only in MicroEnable IV

By surrounding the few calls to these attributes with try/catch block (using CAMERA_LINK_CAMTYPE when CAMERA_LINK_CAMTYP fails) I have managed to make my application work with MicroEnable V framegrabber as it did with MicroEnable IV

@AlexShkarin
Copy link
Owner

Thanks for letting me know! It will be fixed in the next release.

@matpelb
Copy link
Author

matpelb commented Mar 21, 2023

Great! My own solution is quite plain and not very smart nor elegant so I doubt there is any value in me providing more details about it, but feel free to ask of course

@Jasondio
Copy link

Hi, I recently had a problem using this software, and my frame grabber is also MicroEnable V. After opening the detect program, it shows that the camera is skipped and the camera is not opened by other software, my camera model is PhotonFocus MV-D1024E. the solution you mentioned I also tried to use, but No problem solved. I look forward to your answer, your answer will be of great help to me, thank you. @matpelb

The following is the message printed by the detect program

Searching for PhotonFocus cameras (might take several minutes)
Checking potential PFRemote interfaces Silicon Software GmbH/board0_port0, Silicon Software GmbH/board0_port1

Checking interface Silicon Software GmbH/board0_port0 ... discovered camera MV1-D1024E-160
Found 1 PhotonFocus camera
Checking PhotonFocus camera idx=0
Port board0_port0, vendor Silicon Software GmbH, model MV1-D1024E-160
Skipping the camera

@matpelb
Copy link
Author

matpelb commented May 22, 2023

Hi @Jasondio
If the camera is not detected/opened by both the PFremote interface and MicroDisplay the problem is most probably not related to pylablib.
Is that what you mean by "the camera is not opened by other software" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants