Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure a camera

Solved!
Go to solution

danielll99_0-1635790802077.png

Can anybody explain me how works configuration of the camera? It seems like the ActiveAtribute tell what we want to change, in this case it's a HardwareRequeueBufferListThreshold, and next we give the parameters which we want to change in the atribute given before? Am I understand it right?

Where can I find the full list of the Attributes and values I can change in them? I've only find in the documentation the list below but there's nothing about the HardwareRequeueBufferListThreshold for example.

danielll99_1-1635791084473.png

 

I've also read that there is posibility to print the list of parameters for my camera using block enumerateAttributes but I really don't know how to do this

0 Kudos
Message 1 of 4
(254 Views)
Solution
Accepted by topic author danielll99

Here is some code that will list the camera attributes.  You will need to go into the VI to change the camera name to match yours.

 

In my experience some camera vendors will show attributes that don't actually work.  It's an expensive lesson, and I tend to stick with vendors that have a working attribute list..

 

This should get you the list, in any event.

 

Good luck.

Message 2 of 4
(207 Views)

Thanks, it's very helpful.

Could you also tell me where can I find name of parameters which are defined as enum?

0 Kudos
Message 3 of 4
(196 Views)
Solution
Accepted by topic author danielll99

Yah, that bit is annoying, figuring out the proper input..  I don't recall how I used to do it, but modified the code to give you the enum values, they can be either numerical or text.. A sometimes when you hook up a control it will automatically populate the control with a ring that give you the choices.

 

I'm too lazy to generate a program that extracts all the enums, but you can run the program, copy and paste an attribute, and turn the program again, and it will display the enum values.

 

Hope it helps..

 

Cheers

 


Robert

Message 4 of 4
(186 Views)