Machine Vision

取消
显示结果 
搜索替代 
您的意思是: 

Configure a camera

已解决!
转到解答

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 项奖励
1 条消息(共 4 条)
2,311 次查看
解答
已被主题作者 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.

2 条消息(共 4 条)
2,264 次查看

Thanks, it's very helpful.

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

0 项奖励
3 条消息(共 4 条)
2,253 次查看
解答
已被主题作者 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

4 条消息(共 4 条)
2,243 次查看