LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set USB 3.0 Camera attributes problems

Hi!

I'm trying to configure a new web camera (USB 3.0).

Everything goes well till I'm trying to configure some attributes through LabView.

The problem is that it says it can't set some specific attributes, but when I'm using NI-MAX I can change these attributes(!), and when I'm using the camera SDK it says that these attributes are write-able!

Other attributes as 'ExposureTime' I'm able to set...

So what am I doing wrong?

 

Some specific details:

Camera: Flir Blackfly-s

Attributes: PixelFormat, BinningHorizontal, BinningVertical and some more...

 

This is my first post here, if I'm missing any details I would love to add them, just let me know [:

Thanks!

Barak

0 Kudos
Message 1 of 7
(608 Views)

Hello, Barak.

 

There are many camera manufacturers out there, and many types of cameras, all with different APIs, different Attributes, etc.  NI does a pretty good job tracking the more common specifications, but they are, in some sense, playing "Catch Up", chasing after the ever-changing and evolving specifications from the Manufacturers and their various models.

 

I've also seen instances where an attribute might be "visible" and modifiable in MAX, yet not appear to be present in the IMAQdx properties for the Camera.  I admit that I would naively have thought that both MAX and the LabVIEW Development System would both be using the Vision Development Module and Camera Drivers for both MAX and LabVIEW, but there may be some "magic" behind the scenes that I don't understand.

 

If noone on the Forum has a better suggestion for you (wait a few days -- the Forum Users are pretty good!), consider contacting Support.NI.Com and asking the NI Application Engineers for help.

 

Bob Schor

0 Kudos
Message 2 of 7
(578 Views)

Hi Barak,

 

When you try to set these properties, is the camera capturing images? Some properties can only be set when the camera is not capturing images.



CLA // LabVIEW 2016 // BALUG // GCentral.org // Unofficial Forum Rules and Guidelines

www.gcentral.org
0 Kudos
Message 3 of 7
(577 Views)

Hi! 

Bob_Schor:

Let's hope we'll find a solution [:

gregoryj:

Nope, I'm trying to set the attributes before starting the snap or grab functions in IMAQdx.

Basically I'm just opening the camera and trying to change the attribute...

 

Thanks,

Barak

0 Kudos
Message 4 of 7
(564 Views)

No one?

0 Kudos
Message 5 of 7
(531 Views)

Barak,

 

I looked around and found other people who had issues setting PixelFormat on a variety of cameras. Have you seen the forum below?

 

Can't set PixelFormat on PointGrey Flea3 using IMAXdx
https://forums.ni.com/t5/Machine-Vision/Can-t-set-PixelFormat-on-PointGrey-Flea3-using-IMAXdx/td-p/3...

 

A quick summary:

  • some properties can't be set while an acquisition is running. The ones you're trying to configure may be in that set.
  • Try using the Vision Acquisition Express VI to generate code.
0 Kudos
Message 6 of 7
(514 Views)

Hi Reyquaza!

Thanks for the reply!

So I can do it using the Vision Acquisition Express but that's only fixes the problem with attributes I need to set at the startup of the camera.

But it seems a little bit of walk-around if I'm tying to change other attributes like 'Binning horizontal' that I'm changing all the time... I can write "if cases" and do it, but it's a little bit of walk-around... especially if I don't need to take a picture after changing that attribute (And not taking about setting all the other attributes again....).

 

So... That helped a lot for the initial stuff, but is there any solution for attributes like 'Binning' and etc?

Thanks again!

Barak

0 Kudos
Message 7 of 7
(501 Views)