Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

saving video from a GigE camera in TIFF and a few other questions

I'm very new to programming and hence I'm having a little bit of trouble with some of the specifics of Labview. I'm trying to set up a GigE camera to work using ImaQdx. So far I've been using the example VI for "grab" as a template to what I want to setup. Other than just grab the image I want to be able to control the frame rate and save a recorded video as a TIFF format file in a folder of my choosing. I attached the file I've made so far. I've gone through a lot of labview tutorials and exercises but have had a few problems. For one, I used imaq write file 2 however if I use the file dialogue as the file path, it will ask me for a file path for every image, not for a "clip" of the images as a whole. I also tried using a time delay to control the frame rate however it's not exact. Is there a better way to control frame rate? One last thing I was wondering is if theres a way to only record sections of the image, i.e. whats currently showing on the screen instead of the whole image.
Thank you for any help

0 Kudos
Message 1 of 2
(2,979 Views)

Smithers,

 

In regards to saving the grab as a "clip" of TIFF images, you may want to check out this thread: Grab and Basic Attribute for saving TIFF files. You can use the 'buffer number' to rename every frame so that it is saved as a different image in the same location.

 

The frame rate can be programmatically adjusted using property nodes or the IMAQ Set Attributes VI. What attributes actually need to be set will vary from camera to camera, but you can check this by setting these attributes in Measurement and Automation Explorer. Take a look at the following Knowledge Base articles: How Do I Programmatically Set Sub-Attributes for a Digital Camera? and Programmatically Get and Set Attributes with IMAQdx vs. IMAQ.

 

If you want to select only a portion of an image, you will want to extract a Region of Interest (ROI) to a new image. This Create New Image from ROI example shows the basics of how to extract a portion of an image to a new image and should be a good jumping off point for you.

 

I hope those links are helpful for you!

Matt
NI Community Team
National Instruments
Message 2 of 2
(2,963 Views)