Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Camera attribute read in

With LV6i; NI-IMAQ 2.2.1, I try to create an
information frame (subVI) which shows the available attributes of a camera (similar to the
"properties"-menu in the "Measurement&Automation Explorer").
This subVI should provide the attribute-read-in of different cameras.
I tried to use the according file of the "NI-IMAQ/DATA"-folder and
seperate the attributes by LV-string-functions. But this ends at least
in a desaster..... a lot of attributes containing sub-attributes or
sub-sub-attributes or what ever.

Is there a possibility or a existing VI to solve my problem ?
0 Kudos
Message 1 of 3
(3,083 Views)
One way as you already tried is parsing the camera .icd file. To programmatically get/set attribs you can use the IMAQ Get Camera Attribute VI or property nodes...

Here's an example that accesses the registry to get the camera name,
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3D7A356A4E034080020E74861&p_node=DZ52486&p_submitted=N&p_rank=&p_answer=&p_source=External

On a side note you should upgrade your software and driver from, http://digital.ni.com/softlib.nsf/MainPage?ReadForm&node=132010_US. The current version for IMAQ is 2.5.5 and there's an update for LV 6.0i
0 Kudos
Message 2 of 3
(3,083 Views)
Thanks so long.
I have already knewn the example and I have another one which shows common attributes (like ROI or pixel depth).
But I would need a subVI which read ALL available camera attributes out of a camera .icd file with all values and sub-attributes.
0 Kudos
Message 3 of 3
(3,083 Views)