Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Manual Camera Control

Hi,

 

I'm connecting a CMOS camera to the computer using a cat 5 cable. The function of the camera is to capture IR light for data processing. While measurement & automation allow me to define exposure, gain and fps (the parameters I need), I was wondering is it possible to set up a user control for these parameters within the vi itself? 

I'll really appreciate if someone could point me in the direction of how to do this/ referance.

 

Thank you,

 

 

0 Kudos
Message 1 of 8
(4,182 Views)

The property node in the NI-IMAQdx palette gives you programmatic access to the camera properties.

 

Take a look at the following example that shows how to set attributes <LabVIEW>\examples\IMAQ\IMAQdx Examples.llb\Grab and Basic Attributes.vi

 

Hope this helps.

 

Best regards,

 

Christophe

Message 2 of 8
(4,175 Views)

Hi Christophe,

 

That's great. How can I delete attributes from that list? I want to leave only the ones that I need. I've tried to modify CameraAttributes and IMAQdx but it didn't work....

0 Kudos
Message 3 of 8
(4,168 Views)

In that specific example, the name of the attribute appearing in the list is directly passed to the property node, so you can just edit the list (right click on the control, choose Edit Items and delete the properties you don't want).

If you want to use more user-friendly string like "Gain", "Frame Rate" in your pulldown, then you need to implement a lookup.

See attached VI for an example on how to do that.

 

Christophe.

0 Kudos
Message 4 of 8
(4,154 Views)

Everytime after I delete the attributes from "Attribute name," as you suggested, and run the program the list goes back to its initial length.

0 Kudos
Message 5 of 8
(4,143 Views)

What am I doing wrong?

0 Kudos
Message 6 of 8
(4,136 Views)

The example enumerates the attributes and initializes the ring with the list of attributes. Delete the Attribute Name property node at the top left of the example to not initialize the dropdown list.

0 Kudos
Message 7 of 8
(4,122 Views)

I'f tried to delete all of the property nodes (at different times of course), specially the one on the top left, but the program didnt work in general. When I deleted the one in the top left outside of the first loop the ring stopped and I wasn't able to move the attributes at all.

0 Kudos
Message 8 of 8
(4,110 Views)