Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQdx obtain camera properties

Solved!
Go to solution

Hello all,

 

I would like to read some properties of the camera I am using. 

I am using IMAQdx Enumerate Attributes to obtain the list of what the camera can return, and the list contains 

 

 

CameraAttributes::DeviceControl::DeviceTemperature
CameraAttributes::ImageFormatControl::SensorWidth
CameraAttributes::ImageFormatControl::SensorHeight

 

These three properties are said to be Readable, returned as I64 for the sensor and Double for the temperature.

How do you access these values?

 

As crazy as it sounds, I have found how to write an attribute (using property node on the IMAQdx session with ActiveAttribute and Value, both as write), but not how to simply read it. 

 

I have tried to link a property node ActiveAttribute in write, then another property node value in read. No success so far.

 

 

Configuration : Labview and Vision 2016, IMAQdx 2016-09 and a Basler acA1920-155um

0 Kudos
Message 1 of 5
(4,111 Views)

Edit: I misread your issue at first.

 

What error do you get? Can you show a screenshot of your code? Have you looked at the basic attribute examples included via Example finder?

 

Eric

0 Kudos
Message 2 of 5
(4,072 Views)

Hi andm,

 

As Bluecheese mentioned, the "Grab and basic attributes.vi" and the "Grab and attributes setup.vi" are good starting point for using these nodes to retreieve the camera attributes.

 

Regards,

Daniel C.

Message 3 of 5
(4,060 Views)

Here is an example of what I am trying to do.

The top code would work. It is actually a stripped down version of what I do, and it works.

 

The bottom one is what I am trying to achieve but I get an error, property not supported by device, while I am certain the camera can (it is listed as readable and Basler indicates it on their website).

 

I always forget about examples though, I will have a look, it sounds promising.

 

code.png

0 Kudos
Message 4 of 5
(4,054 Views)
Solution
Accepted by topic author MF0088

You will get an error if you have a blank ActiveAttribute in your property node before you read out the value.

 

You need to write the ActiveAttribute in the same property node as you read the value from.  You can right-click the property node variable and select "Change to Read" or "Change to Write".

attribute_write.png

Message 5 of 5
(4,026 Views)