LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prosilica GX1920

Hi,

 

I'm trying to write my first camera program and I'm having a lot of trouble making progress.  I mainly want to be able to set gain and exposure time in real-time as well as framerate, once I get a better understanding of those parts I want to move on to selecting ROI's within the view window for higher framerates.  I have a very simple program right now that simply can take a video or a snapshot but I'm having a lot of trouble moving forward.  Any help or examply VI's would be very much appreciated.

 

Thanks and Happy Holidays!

 

Bejan Hakimi

0 Kudos
Message 1 of 4
(2,437 Views)

Hi Bejan,

 

You can use IMAQdx Property Nodes to access the camera and acquisition attributes programmatically. You can create a property node with two methods:

 

1) Right-click on the Session wire (such as the one that comes out of the top-right node of IMAQdx Open Camera. In the right-click menu, select Create >> Property for IMAQdx Class, and this will give you access to all the properties you can modify for your camera.

 

2) In the Functions Palette, go to Vision and Motion >> NI-IMAQdx >> Property Node. You can place the property node on the block diagram, then wire in the Session. Then click on Property and select which property you want to modify.

 

To modify multiple properties, you can simply drag the bottom of the property down to expose more properties. 

 

The Example Finder is a great place to find example programs in the future. In LabVIEW, just go to Help >> Find Examples, and it will open up the Example Finder. Here you can find many examples for all types of applications. Also, if you go to ni.com/community you can search user-made examples.

 

The discussion forums are a great resource, but I would encourage you to make future forum posts a little more specific. You will get much better answers if you post about a specific problem (i.e. a specific error), include your existing code, and include screenshots of any errors you are getting. For example, once you are able to set your gain and exposure time in LabVIEW, it would probably be best for you to create a new discussion for any problems you have with selecting ROIs. I say this as just a little tip for your future reference, because it will be helpful for you and will also help others who are searching the forums with problems similar to yours.

 

Please let me know if the information about the Property Nodes is unclear, or if you need more assistance with them.

Regards,

Daniel H. 

 

 

Daniel Hays | Test Software Business Manager
0 Kudos
Message 2 of 4
(2,416 Views)

Thanks, I was simply posting because I was having trouble finding examples for camera programming that pertained to ethernet cameras in the example finder.

 

Bejan

0 Kudos
Message 3 of 4
(2,402 Views)

Hi Bejan,

 

All of the IMAQdx examples should work with the ethernet camera. The IMAQdx drivers are for FireWire, ethernet (GigE Vision), IP, and USB cameras. So even if it doesn't explicitly say "ethernet" or "GigE," you should still be able to use the IMAQdx examples in the Example Finder. Does that make sense? So, in the example finder, if you expand the folders to get to Hardware Input and Output >> IMAQdx, then all of those ought to work with your GigE camera. They'll be a good place to get started.

 

Regards,

Daniel H. 

Daniel Hays | Test Software Business Manager
0 Kudos
Message 4 of 4
(2,399 Views)