06-28-2010 08:22 AM
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,
06-28-2010 09:44 AM
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
06-28-2010 10:42 AM
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....
06-28-2010 11:17 AM
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.
06-28-2010 12:24 PM
Everytime after I delete the attributes from "Attribute name," as you suggested, and run the program the list goes back to its initial length.
06-28-2010 01:03 PM
What am I doing wrong?
06-28-2010 03:12 PM
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.
06-28-2010 06:01 PM
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.