NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
FranklinT
Posts: 9
0 Kudos

how to set the exposure time and the gain of a connected camera with IMAQ USB

A camera was connected to my computer with USB port and we can acquire the image through IMAQ USB.  Now we have to set separately the exposure time and the gain with the camera's driver software provided by the manufacturer.  My question is: how to set directly the exposure time and the gain of this camera in Labview?

Active Participant
Silver_Shaper
Posts: 334
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Hi Frank

Welcome to the forum. Have fun


FranklinT wrote:

My question is: how to set directly the exposure time and the gain of this camera in Labview?


I think its not possible for USB Cameras. 

Previous threads for your ref

http://forums.ni.com/t5/Machine-Vision/How-to-control-property-nodes-for-USB-camera/td-p/970306

http://forums.ni.com/t5/Machine-Vision/imaq-USB-property-page/td-p/926034

Sasi.
Certified LabVIEW Associate Developer
If you can DREAM it, You can DO it - Walt Disney
Member
Kira_T
Posts: 152
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Hi Franklin,

 

Are you using IMAQdx or IMAQ for USB?  Are you able to see the camera in Measurement & Automation Explorer?  Are the exposure time and gain attributes that you can alter in MAX?

 

Regards,

Kira T

Active Participant
Silver_Shaper
Posts: 334
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Hi Kira


Kira T wrote:

Are you using IMAQdx or IMAQ for USB? 


If am not wrong its IMAQ USB as mentioned in the POST TITLE.

Sasi.
Certified LabVIEW Associate Developer
If you can DREAM it, You can DO it - Walt Disney
Member
FranklinT
Posts: 9
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Now, I am using IMAQ USB for the image acquisition.  It seems that we have to set the exposure time and the gain through the separate camera configuration software to set these parameters. However, we do need control directly these two parameters by our LabView Program.  Therefore, I have two questions:

1.  Could these two parameters be controlled by IMAQ USB?

2.  What kind of camera can be controlled directly by IMAQdx?  It seems only cameras that meet either the Gige Standard or the IEEE1394 Standard.

 

Thanks.

 

Franklin  

Member
FranklinT
Posts: 9
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Thank you so much for your reply.

 

Please take a look at my previous reply and confirm the following points:

1.  IMAQdx requires the cameras meet some industrial standards such as Gige Vision.

2.  If the camera meets the standard, the camera's exposure time and the gain can be set by the IMAQdx property node.

 

Thanks,

 

Franklin 

Member
FranklinT
Posts: 9
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Now I finished the activation of the IMAQdx and I can grad the images and control two parameters in Measurement&Automation Explorer.

Please give me a little more information regarding controlling the exposure time and the gain with IMAQdx.

 

Thanks,

 

Franklin

Member
Kira_T
Posts: 152
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Hi Franklin,

 

IMAQdx can also operate with USB cameras that are DirectShow compatible.  To be able to control attributes in LabVIEW, those attributes must be published to DirectShow.  All of these attributes will appear in Meausrement & Automation Explorer as options to change under the Camera Attributes tab.  Do the attributes that you are looking to change appear here?  Thanks.

 

Regards,

Kira T

Member
FranklinT
Posts: 9
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Yes, these attributes appear in Meausrement & Automation Explorer and can be changed under the Camera Attributes tab.  Please give me more detailed information about how to change them by the LABVIEW instead of Meausrement & Automation Explorer.

Active Participant
Silver_Shaper
Posts: 334
0 Kudos

Re: how to set the exposure time and the gain of a connected camera with IMAQ USB

Hi 

 

If its like so, you can use the property node to set your attributes. Found here

 

Sasi.
Certified LabVIEW Associate Developer
If you can DREAM it, You can DO it - Walt Disney
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page